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

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

Issue 9222018: reland -- 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::OnLayerAnimationEnded( 143 void CompactLayoutManager::OnImplicitAnimationsCompleted() {
144 const ui::LayerAnimationSequence* animation) {
145 if (!GetDefaultContainerLayer()->GetAnimator()->is_animating()) 144 if (!GetDefaultContainerLayer()->GetAnimator()->is_animating())
146 HideWindows(); 145 HideWindows();
147 } 146 }
148 147
149 void CompactLayoutManager::OnLayerAnimationScheduled(
150 const ui::LayerAnimationSequence* animation) {
151 }
152
153 void CompactLayoutManager::OnLayerAnimationAborted(
154 const ui::LayerAnimationSequence* animation) {
155 }
156
157 ////////////////////////////////////////////////////////////////////////////// 148 //////////////////////////////////////////////////////////////////////////////
158 // CompactLayoutManager, private: 149 // CompactLayoutManager, private:
159 150
160 void CompactLayoutManager::UpdateStatusAreaVisibility() { 151 void CompactLayoutManager::UpdateStatusAreaVisibility() {
161 if (!status_area_widget_) 152 if (!status_area_widget_)
162 return; 153 return;
163 // Full screen windows should hide the status area widget. 154 // Full screen windows should hide the status area widget.
164 bool has_fullscreen = window_util::HasFullscreenWindow(windows()); 155 bool has_fullscreen = window_util::HasFullscreenWindow(windows());
165 bool widget_visible = status_area_widget_->IsVisible(); 156 bool widget_visible = status_area_widget_->IsVisible();
166 if (has_fullscreen && widget_visible) 157 if (has_fullscreen && widget_visible)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 if (windows_list.size() > 1 && const_it != windows_list.end()) { 222 if (windows_list.size() > 1 && const_it != windows_list.end()) {
232 if (++const_it != windows_list.end()) 223 if (++const_it != windows_list.end())
233 return *const_it; 224 return *const_it;
234 return *windows_list.begin(); 225 return *windows_list.begin();
235 } 226 }
236 return NULL; 227 return NULL;
237 } 228 }
238 229
239 } // namespace internal 230 } // namespace internal
240 } // namespace ash 231 } // 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