| 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);
|
|
|