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

Side by Side Diff: ash/shelf/shelf_layout_manager.h

Issue 130983007: Creating multi profile animations for switching users and teleporting of windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 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
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 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 DRAG_SHELF, 160 DRAG_SHELF,
161 DRAG_TRAY 161 DRAG_TRAY
162 }; 162 };
163 // Returns DRAG_SHELF if the gesture should continue to drag the entire shelf. 163 // Returns DRAG_SHELF if the gesture should continue to drag the entire shelf.
164 // Returns DRAG_TRAY if the gesture can start dragging the tray-bubble from 164 // Returns DRAG_TRAY if the gesture can start dragging the tray-bubble from
165 // this point on. 165 // this point on.
166 DragState UpdateGestureDrag(const ui::GestureEvent& gesture); 166 DragState UpdateGestureDrag(const ui::GestureEvent& gesture);
167 void CompleteGestureDrag(const ui::GestureEvent& gesture); 167 void CompleteGestureDrag(const ui::GestureEvent& gesture);
168 void CancelGestureDrag(); 168 void CancelGestureDrag();
169 169
170 // Set an animation duration override for the show / hide animation of the
171 // shelf. Specifying 0 leads to use the default.
172 void SetAnimationDurationOverride(int duration_override_in_ms);
173
170 // Overridden from aura::LayoutManager: 174 // Overridden from aura::LayoutManager:
171 virtual void OnWindowResized() OVERRIDE; 175 virtual void OnWindowResized() OVERRIDE;
172 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 176 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
173 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 177 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
174 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; 178 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
175 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 179 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
176 bool visible) OVERRIDE; 180 bool visible) OVERRIDE;
177 virtual void SetChildBounds(aura::Window* child, 181 virtual void SetChildBounds(aura::Window* child,
178 const gfx::Rect& requested_bounds) OVERRIDE; 182 const gfx::Rect& requested_bounds) OVERRIDE;
179 183
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 405
402 // Used to delay updating shelf background. 406 // Used to delay updating shelf background.
403 UpdateShelfObserver* update_shelf_observer_; 407 UpdateShelfObserver* update_shelf_observer_;
404 408
405 // The bounds of the keyboard. 409 // The bounds of the keyboard.
406 gfx::Rect keyboard_bounds_; 410 gfx::Rect keyboard_bounds_;
407 411
408 // The bounds of the dock. 412 // The bounds of the dock.
409 gfx::Rect dock_bounds_; 413 gfx::Rect dock_bounds_;
410 414
415 // The show hide animation duration override or 0 for default.
416 int duration_override_in_ms_;
417
411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 418 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
412 }; 419 };
413 420
414 } // namespace internal 421 } // namespace internal
415 } // namespace ash 422 } // namespace ash
416 423
417 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 424 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698