Searched refs:ViewModelUtils (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/ui/views/
H A Dview_model_utils_unittest.cc14 TEST(ViewModelUtils, SetViewBoundsToIdealBounds) {
20 ViewModelUtils::SetViewBoundsToIdealBounds(model);
25 TEST(ViewModelUtils, DetermineMoveIndex) {
35 EXPECT_EQ(0, ViewModelUtils::DetermineMoveIndex(
36 model, &v1, ViewModelUtils::HORIZONTAL, -10, 0));
37 EXPECT_EQ(0, ViewModelUtils::DetermineMoveIndex(
38 model, &v1, ViewModelUtils::HORIZONTAL, 4, 0));
39 EXPECT_EQ(1, ViewModelUtils::DetermineMoveIndex(
40 model, &v1, ViewModelUtils::HORIZONTAL, 506, 0));
41 EXPECT_EQ(2, ViewModelUtils
[all...]
H A Dview_model_utils.h16 class VIEWS_EXPORT ViewModelUtils { class in namespace:views
37 DISALLOW_IMPLICIT_CONSTRUCTORS(ViewModelUtils);
H A Dview_model_utils.cc17 int primary_axis_coordinate(ViewModelUtils::Alignment alignment,
20 return alignment == ViewModelUtils::HORIZONTAL ? x : y;
26 void ViewModelUtils::SetViewBoundsToIdealBounds(const ViewModel& model) {
32 bool ViewModelUtils::IsAtIdealBounds(const ViewModel& model) {
42 int ViewModelUtils::DetermineMoveIndex(const ViewModel& model,
/external/chromium_org/ui/app_list/views/
H A Dapp_list_folder_view.cc122 views::ViewModelUtils::SetViewBoundsToIdealBounds(*view_model_);
H A Dapps_grid_view.cc933 views::ViewModelUtils::SetViewBoundsToIdealBounds(pulsing_blocks_model_);
/external/chromium_org/ash/shelf/
H A Dshelf_view.cc685 views::ViewModelUtils::SetViewBoundsToIdealBounds(*view_model_);
987 views::ViewModelUtils::DetermineMoveIndex(
990 views::ViewModelUtils::HORIZONTAL :
991 views::ViewModelUtils::VERTICAL,
/external/chromium_org/chrome/browser/ui/views/tabs/
H A Dtab_strip.cc816 if (!views::ViewModelUtils::IsAtIdealBounds(tabs_))
1594 views::ViewModelUtils::SetViewBoundsToIdealBounds(tabs_);
1712 views::ViewModelUtils::SetViewBoundsToIdealBounds(tabs_);

Completed in 1387 milliseconds