summaryrefslogtreecommitdiffstats
path: root/ui/views/view_model_utils.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 00:54:18 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 00:54:18 +0000
commite25a71ed5aa15c11c2a6fdeeae22413235b8f914 (patch)
tree0f88732ba20a720d837246606c5871a3f824a514 /ui/views/view_model_utils.h
parentec139f4d357a8966194178f6a0f18fcf46d512b1 (diff)
downloadchromium_src-e25a71ed5aa15c11c2a6fdeeae22413235b8f914.zip
chromium_src-e25a71ed5aa15c11c2a6fdeeae22413235b8f914.tar.gz
chromium_src-e25a71ed5aa15c11c2a6fdeeae22413235b8f914.tar.bz2
Improves semantics for changing set of visible tabs on the touch tab
strip. Stills needs a bunch of work, but this is at least some what usable. BUG=123274 TEST=none R=ben@chromium.org Review URL: http://codereview.chromium.org/10231014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/view_model_utils.h')
-rw-r--r--ui/views/view_model_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/views/view_model_utils.h b/ui/views/view_model_utils.h
index 5219ff8..d7f8bd3 100644
--- a/ui/views/view_model_utils.h
+++ b/ui/views/view_model_utils.h
@@ -19,6 +19,9 @@ class VIEWS_EXPORT ViewModelUtils {
// Sets the bounds of each view to its ideal bounds.
static void SetViewBoundsToIdealBounds(const ViewModel& model);
+ // Returns true if the Views in |model| are at their ideal bounds.
+ static bool IsAtIdealBounds(const ViewModel& model);
+
// Returns the index to move |view| to based on a x-coordinate of |x|.
static int DetermineMoveIndex(const ViewModel& model,
View* view,