Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: ash/wm/compact_layout_manager.cc

Issue 9320018: Revert 120092 - Reland 120074 -- Disable animations during aura tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/compact_layout_manager.h ('k') | ash/wm/shelf_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/compact_layout_manager.h" 5 #include "ash/wm/compact_layout_manager.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ShouldAnimateOnEntrance(window)) { 133 ShouldAnimateOnEntrance(window)) {
134 LayoutWindows(current_window_); 134 LayoutWindows(current_window_);
135 current_window_ = window; 135 current_window_ = window;
136 AnimateSlideTo(window->bounds().x()); 136 AnimateSlideTo(window->bounds().x());
137 } 137 }
138 } 138 }
139 139
140 ///////////////////////////////////////////////////////////////////////////// 140 /////////////////////////////////////////////////////////////////////////////
141 // CompactLayoutManager, AnimationDelegate overrides: 141 // CompactLayoutManager, AnimationDelegate overrides:
142 142
143 void CompactLayoutManager::OnImplicitAnimationsCompleted() { 143 void CompactLayoutManager::OnLayerAnimationEnded(
144 const ui::LayerAnimationSequence* animation) {
144 if (!GetDefaultContainerLayer()->GetAnimator()->is_animating()) 145 if (!GetDefaultContainerLayer()->GetAnimator()->is_animating())
145 HideWindows(); 146 HideWindows();
146 } 147 }
147 148
149 void CompactLayoutManager::OnLayerAnimationScheduled(
150 const ui::LayerAnimationSequence* animation) {
151 }
152
153 void CompactLayoutManager::OnLayerAnimationAborted(
154 const ui::LayerAnimationSequence* animation) {
155 }
156
148 ////////////////////////////////////////////////////////////////////////////// 157 //////////////////////////////////////////////////////////////////////////////
149 // CompactLayoutManager, private: 158 // CompactLayoutManager, private:
150 159
151 void CompactLayoutManager::UpdateStatusAreaVisibility() { 160 void CompactLayoutManager::UpdateStatusAreaVisibility() {
152 if (!status_area_widget_) 161 if (!status_area_widget_)
153 return; 162 return;
154 // Full screen windows should hide the status area widget. 163 // Full screen windows should hide the status area widget.
155 bool has_fullscreen = window_util::HasFullscreenWindow(windows()); 164 bool has_fullscreen = window_util::HasFullscreenWindow(windows());
156 bool widget_visible = status_area_widget_->IsVisible(); 165 bool widget_visible = status_area_widget_->IsVisible();
157 if (has_fullscreen && widget_visible) 166 if (has_fullscreen && widget_visible)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 if (windows_list.size() > 1 && const_it != windows_list.end()) { 231 if (windows_list.size() > 1 && const_it != windows_list.end()) {
223 if (++const_it != windows_list.end()) 232 if (++const_it != windows_list.end())
224 return *const_it; 233 return *const_it;
225 return *windows_list.begin(); 234 return *windows_list.begin();
226 } 235 }
227 return NULL; 236 return NULL;
228 } 237 }
229 238
230 } // namespace internal 239 } // namespace internal
231 } // namespace ash 240 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/compact_layout_manager.h ('k') | ash/wm/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698