Home
last modified time | relevance | path

Searched refs:icon_width (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/chrome/browser/ui/views/location_bar/
Dadd_to_app_launcher_view.cc161 const int icon_width = icon_->GetPreferredSize().width(); in Layout() local
163 std::min((width() - icon_width) / 2, GetBubbleOuterPadding(true)), in Layout()
165 icon_width, in Layout()
170 std::max(width() - GetTotalSpacingWhileAnimating() - icon_width, 0), in Layout()
Dcontent_setting_image_view.cc180 const int icon_width = icon_->GetPreferredSize().width(); in Layout() local
182 std::min((width() - icon_width) / 2, GetBubbleOuterPadding(true)), 0, in Layout()
183 icon_width, height()); in Layout()
186 std::max(width() - GetTotalSpacingWhileAnimating() - icon_width, 0), in Layout()
/external/chromium_org/chrome/common/
Dbadge_util.cc100 int icon_width, in PaintBadge() argument
128 if (icon_width != 0 && (badge_width % 2 != icon_width % 2)) in PaintBadge()
Dbadge_util.h35 int icon_width,
/external/chromium_org/ash/shelf/
Dshelf_button.cc382 int icon_width = std::min(kIconSize, in Layout() local
398 x_offset = std::max(0, button_bounds.width() - icon_width) / 2; in Layout()
403 if (x_offset + icon_width + kBarSize > button_bounds.width()) in Layout()
404 icon_width = button_bounds.width() - (x_offset + kBarSize); in Layout()
410 icon_width, in Layout()
416 DCHECK_LE(icon_width, kIconSize); in Layout()
/external/chromium_org/chrome/browser/ui/views/toolbar/
Dbrowser_actions_container.cc292 int icon_width = IconWidth(false); in Layout() local
296 if (x + icon_width <= max_x) { in Layout()
297 view->SetBounds(x, 0, icon_width, height()); in Layout()
679 static int icon_width = 0; in IconWidth() local
682 icon_width = ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed( in IconWidth()
685 return icon_width + (include_padding ? kItemSpacing : 0); in IconWidth()
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dorigin_chip_decoration.mm164 const CGFloat icon_width = std::min([icon size].width, kIconSize);
166 CGFloat icon_x_leading_offset = (kIconSize - icon_width) / 2.0;
177 icon_y_inset, icon_width, icon_height);
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab.cc140 int icon_width, in DrawIconAtLocation() argument
146 canvas->ClipRect(gfx::Rect(dst_x, dst_y, icon_width, icon_height)); in DrawIconAtLocation()
148 image_offset, 0, icon_width, icon_height, in DrawIconAtLocation()
149 dst_x, dst_y, icon_width, icon_height, in DrawIconAtLocation()
158 int icon_width, in DrawIconCenter() argument
164 int dst_x = bounds.x() - (icon_width - bounds.width()) / 2; in DrawIconCenter()
166 DrawIconAtLocation(canvas, image, image_offset, dst_x, dst_y, icon_width, in DrawIconCenter()
/external/chromium_org/chrome/browser/ui/autofill/
Dautofill_popup_controller_impl.cc592 int icon_width = ui::ResourceBundle::GetSharedInstance().GetImageNamed( in RowWidthWithoutText() local
594 row_size += icon_width + kIconPadding; in RowWidthWithoutText()
/external/chromium_org/chrome/browser/ui/views/autofill/
Dautofill_dialog_views.cc339 int icon_width = icon_size.width() + kDialogEdgePadding; in Layout() local
340 right_bound -= icon_width; in Layout()
343 icon_width + kDialogEdgePadding, GetLocalBounds().height()); in Layout()