Home
last modified time | relevance | path

Searched refs:center_bounds (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/ui/gfx/win/
Dhwnd_util.cc141 RECT center_bounds = {0}; in CenterAndSizeWindow() local
144 ::GetWindowRect(parent, &center_bounds); in CenterAndSizeWindow()
147 if (::IsRectEmpty(&center_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/
Dlabel_unittest.cc495 gfx::Rect center_bounds(text_bounds); in TEST() local
552 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST()
553 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST()
570 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST()
571 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST()
588 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST()
589 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST()
776 gfx::Rect center_bounds(text_bounds); in TEST() local
835 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST()
836 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST()
[all …]