Home
last modified time | relevance | path

Searched refs:icon_bounds (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/chrome/browser/ui/views/autofill/
Ddecorated_textfield.cc124 gfx::Rect icon_bounds(x, y, icon_size.width(), icon_size.height()); in Layout() local
125 icon_bounds.set_x(GetMirroredXForRect(icon_bounds)); in Layout()
126 icon_view_->SetBoundsRect(icon_bounds); in Layout()
/external/chromium_org/ui/app_list/views/
Dsearch_result_view.cc148 gfx::Rect icon_bounds(rect); in Layout() local
149 icon_bounds.set_width(GetIconViewWidth()); in Layout()
150 icon_bounds.Inset(kIconPadding, (rect.height() - kListIconSize) / 2); in Layout()
151 icon_bounds.Intersect(rect); in Layout()
152 icon_->SetBoundsRect(icon_bounds); in Layout()
155 (rect.right() - kActionButtonRightMargin - icon_bounds.right()) / 2; in Layout()
Dapp_list_item_view.cc532 gfx::Rect icon_bounds(rect.x(), rect.y(), rect.width(), kGridIconDimension); in GetIconBoundsForTargetViewBounds() local
533 icon_bounds.Inset(gfx::ShadowValue::GetMargin(GetIconShadows())); in GetIconBoundsForTargetViewBounds()
534 return icon_bounds; in GetIconBoundsForTargetViewBounds()
Dapp_list_folder_view.cc198 const gfx::Rect icon_bounds = item_view->GetIconBounds(); in GetItemIconBoundsAt() local
199 gfx::Rect to_apps_grid_view = item_view->ConvertRectToParent(icon_bounds); in GetItemIconBoundsAt()
/external/chromium_org/ash/wm/panels/
Dpanel_layout_manager.cc640 gfx::Rect icon_bounds = shelf_->GetScreenBoundsOfItemIconForWindow(panel); in Relayout() local
646 if (icon_bounds.width() == 0 && icon_bounds.height() == 0) in Relayout()
655 icon_bounds = ScreenUtil::ConvertRectFromScreen(panel_container_, in Relayout()
656 icon_bounds); in Relayout()
657 gfx::Point icon_origin = icon_bounds.origin(); in Relayout()
660 int icon_end = icon_start + (horizontal ? icon_bounds.width() : in Relayout()
661 icon_bounds.height()); in Relayout()
827 gfx::Rect icon_bounds = shelf_->GetScreenBoundsOfItemIconForWindow(panel); in UpdateCallouts() local
828 if (icon_bounds.IsEmpty() || !panel->layer()->GetTargetVisibility() || in UpdateCallouts()
841 icon_bounds.x() + (icon_bounds.width() - callout_bounds.width()) / 2); in UpdateCallouts()
[all …]
Dpanel_layout_manager_unittest.cc125 gfx::Rect icon_bounds = shelf->GetScreenBoundsOfItemIconForWindow(panel); in IsPanelAboveLauncherIcon() local
126 ASSERT_FALSE(icon_bounds.width() == 0 && icon_bounds.height() == 0); in IsPanelAboveLauncherIcon()
129 ASSERT_LT(icon_bounds.width(), window_bounds.width()); in IsPanelAboveLauncherIcon()
130 ASSERT_LT(icon_bounds.height(), window_bounds.height()); in IsPanelAboveLauncherIcon()
137 EXPECT_LE(window_bounds.x(), icon_bounds.x()); in IsPanelAboveLauncherIcon()
138 EXPECT_GE(window_bounds.right(), icon_bounds.right()); in IsPanelAboveLauncherIcon()
142 EXPECT_LE(window_bounds.y(), icon_bounds.y()); in IsPanelAboveLauncherIcon()
143 EXPECT_GE(window_bounds.bottom(), icon_bounds.bottom()); in IsPanelAboveLauncherIcon()
168 gfx::Rect icon_bounds = shelf->GetScreenBoundsOfItemIconForWindow(panel); in IsCalloutAboveLauncherIcon() local
169 ASSERT_FALSE(icon_bounds.IsEmpty()); in IsCalloutAboveLauncherIcon()
[all …]
/external/chromium_org/ui/views/window/
Dcustom_frame_view.cc543 gfx::Rect icon_bounds(IconBounds()); in LayoutTitleBar() local
546 window_icon_->SetBoundsRect(icon_bounds); in LayoutTitleBar()
552 int title_x = show_window_icon ? icon_bounds.right() + kTitleIconOffsetX in LayoutTitleBar()
553 : icon_bounds.x(); in LayoutTitleBar()
561 icon_bounds.y() + ((icon_bounds.height() - title_height - 1) / 2), in LayoutTitleBar()
/external/chromium_org/chrome/browser/ui/views/profiles/
Davatar_menu_bubble_view.cc606 gfx::Rect icon_bounds(0, y, icon_size.width(), icon_size.height()); in Layout() local
607 icon_view_->SetBoundsRect(icon_bounds); in Layout()
608 int info_width = width() - icon_bounds.right() - in Layout()
612 icon_bounds.right() + views::kRelatedControlSmallHorizontalSpacing, in Layout()
/external/chromium_org/ash/shelf/
Dshelf_view.cc466 gfx::Rect icon_bounds = button->GetIconBounds(); in GetIdealBoundsOfItemIcon() local
468 ideal_bounds.x() + icon_bounds.x(), icon_bounds.width()), in GetIdealBoundsOfItemIcon()
469 ideal_bounds.y() + icon_bounds.y(), in GetIdealBoundsOfItemIcon()
470 icon_bounds.width(), in GetIdealBoundsOfItemIcon()
471 icon_bounds.height()); in GetIdealBoundsOfItemIcon()