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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf_layout_manager.h
diff --git a/ash/shelf/shelf_layout_manager.h b/ash/shelf/shelf_layout_manager.h
index 18d6ba4c175f615934bfef5ff9059911e615e208..7a96c3aa3fc1501299aa7b9ddfb7929bc2c97a89 100644
--- a/ash/shelf/shelf_layout_manager.h
+++ b/ash/shelf/shelf_layout_manager.h
@@ -167,6 +167,10 @@ class ASH_EXPORT ShelfLayoutManager :
void CompleteGestureDrag(const ui::GestureEvent& gesture);
void CancelGestureDrag();
+ // Set an animation duration override for the show / hide animation of the
+ // shelf. Specifying 0 leads to use the default.
+ void SetAnimationDurationOverride(int duration_override_in_ms);
+
// Overridden from aura::LayoutManager:
virtual void OnWindowResized() OVERRIDE;
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
@@ -408,6 +412,9 @@ class ASH_EXPORT ShelfLayoutManager :
// The bounds of the dock.
gfx::Rect dock_bounds_;
+ // The show hide animation duration override or 0 for default.
+ int duration_override_in_ms_;
+
DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
};

Powered by Google App Engine
This is Rietveld 408576698