Searched refs:center_bounds (Results 1 – 2 of 2) sorted by relevance
141 RECT center_bounds = {0}; in CenterAndSizeWindow() local144 ::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()
495 gfx::Rect center_bounds(text_bounds); in TEST() local552 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() local835 EXPECT_EQ(center_bounds.width(), text_bounds.width()); in TEST()836 EXPECT_EQ(center_bounds.height(), text_bounds.height()); in TEST()[all …]