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

Unified Diff: ui/views/view_model_utils.h

Issue 10388036: Adds the option of aligning the launcher to the left or right. There (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 7 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
« no previous file with comments | « ui/gfx/monitor.cc ('k') | ui/views/view_model_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_model_utils.h
diff --git a/ui/views/view_model_utils.h b/ui/views/view_model_utils.h
index d7f8bd3e3fc7b5db9b0e22db6117e80555533355..2993aaa6c39e6b19076cc8cb36b137397eff1b94 100644
--- a/ui/views/view_model_utils.h
+++ b/ui/views/view_model_utils.h
@@ -16,16 +16,23 @@ class ViewModel;
class VIEWS_EXPORT ViewModelUtils {
public:
+ enum Alignment {
+ HORIZONTAL,
+ VERTICAL
+ };
+
// 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|.
+ // Returns the index to move |view| to based on a coordinate of |x| and |y|.
static int DetermineMoveIndex(const ViewModel& model,
View* view,
- int x);
+ Alignment alignment,
+ int x,
+ int y);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ViewModelUtils);
« no previous file with comments | « ui/gfx/monitor.cc ('k') | ui/views/view_model_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698