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

Unified Diff: chrome/browser/views/tabs/grid.h

Issue 126185: Improved tab overview animations with better animation and wiring to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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: chrome/browser/views/tabs/grid.h
===================================================================
--- chrome/browser/views/tabs/grid.h (revision 18480)
+++ chrome/browser/views/tabs/grid.h (working copy)
@@ -65,6 +65,16 @@
// Returns the bounds of the specified cell.
gfx::Rect CellBounds(int index);
+ // Returns the value based on the current animation. |start| gives the
+ // starting coordinate and |target| the target coordinate. The resulting
+ // value is between |start| and |target| based on the current animation.
+ int AnimationPosition(int start, int target);
+
+ // Convenience for returning a rectangle between |start_bounds| and
+ // |target_bounds| based on the current animation.
+ gfx::Rect AnimationPosition(const gfx::Rect& start_bounds,
+ const gfx::Rect& target_bounds);
+
// View overrides.
virtual void ViewHierarchyChanged(bool is_add,
views::View* parent,
@@ -94,11 +104,6 @@
// Resets the bounds of each cell to that of target_bounds_.
void SetViewBoundsToTarget();
- // Returns the value based on the current animation. |start| gives the
- // starting coordinate and |target| the target coordinate. The resulting
- // value is between |start| and |target| based on the current animation.
- int AnimationPosition(int start, int target);
-
// The animation.
SlideAnimation animation_;

Powered by Google App Engine
This is Rietveld 408576698