Searched refs:center_bounds (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/ui/gfx/win/ |
D | hwnd_util.cc | 141 RECT center_bounds = {0}; in CenterAndSizeWindow() local 144 ::GetWindowRect(parent, ¢er_bounds); in CenterAndSizeWindow() 147 if (::IsRectEmpty(¢er_bounds)) { in CenterAndSizeWindow() 154 center_bounds = mi.rcWork; in CenterAndSizeWindow() 160 window_bounds.left = center_bounds.left; in CenterAndSizeWindow() 161 if (pref.width() < (center_bounds.right - center_bounds.left)) { in CenterAndSizeWindow() 163 (center_bounds.right - center_bounds.left - pref.width()) / 2; in CenterAndSizeWindow() 167 window_bounds.top = center_bounds.top; in CenterAndSizeWindow() 168 if (pref.height() < (center_bounds.bottom - center_bounds.top)) { in CenterAndSizeWindow() 170 (center_bounds.bottom - center_bounds.top - pref.height()) / 2; in CenterAndSizeWindow()
|
/external/chromium_org/ui/views/controls/ |
D | label_unittest.cc | 515 gfx::Rect center_bounds(text_bounds); in TEST_F() local 567 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST_F() 568 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST_F() 584 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST_F() 585 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST_F() 601 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST_F() 602 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST_F() 775 gfx::Rect center_bounds(text_bounds); in TEST_F() local 823 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST_F() 824 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST_F() [all …]
|
/external/chromium_org/ash/wm/maximize_mode/ |
D | maximize_mode_window_manager_unittest.cc | 963 gfx::Rect center_bounds(window->bounds()); in TEST_F() local 964 EXPECT_NE(rect.origin().ToString(), center_bounds.origin().ToString()); in TEST_F() 965 generator.MoveMouseTo(gfx::Point(center_bounds.x() + 1, in TEST_F() 966 center_bounds.y() + 1)); in TEST_F() 971 EXPECT_EQ(center_bounds.x(), window->bounds().x()); in TEST_F() 972 EXPECT_EQ(center_bounds.y(), window->bounds().y()); in TEST_F()
|