/external/chromium_org/ui/views/controls/ |
D | label_unittest.cc | 343 gfx::Rect text_bounds; in TEST_F() local 348 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags); in TEST_F() 355 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags); in TEST_F() 373 gfx::Rect text_bounds; in TEST_F() local 377 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags); in TEST_F() 380 EXPECT_EQ(extra.width() / 2, text_bounds.x()); in TEST_F() 381 EXPECT_EQ(0, text_bounds.y()); in TEST_F() 382 EXPECT_EQ(required_size.width(), text_bounds.width()); in TEST_F() 383 EXPECT_EQ(label.height(), text_bounds.height()); in TEST_F() 392 text_bounds.SetRect(0, 0, 0, 0); in TEST_F() [all …]
|
D | label.cc | 316 const gfx::Rect& text_bounds, in PaintText() argument 320 canvas->DrawFadedString(text, font_list_, color, text_bounds, flags); in PaintText() 322 canvas->DrawStringRectWithShadows(text, font_list_, color, text_bounds, in PaintText() 327 gfx::Rect focus_bounds = text_bounds; in PaintText() 370 gfx::Rect text_bounds; in OnPaint() local 372 CalculateDrawStringParams(&paint_text, &text_bounds, &flags); in OnPaint() 373 PaintText(canvas, paint_text, text_bounds, flags); in OnPaint() 491 gfx::Rect* text_bounds, in CalculateDrawStringParams() argument 493 DCHECK(paint_text && text_bounds && flags); in CalculateDrawStringParams() 504 *text_bounds = GetTextBounds(); in CalculateDrawStringParams()
|
D | label.h | 133 const gfx::Rect& text_bounds, 172 gfx::Rect* text_bounds,
|
/external/chromium_org/ui/app_list/views/ |
D | search_result_view.cc | 226 gfx::Rect text_bounds(rect); in OnPaint() local 227 text_bounds.set_x(GetIconViewWidth()); in OnPaint() 229 text_bounds.set_width( in OnPaint() 234 text_bounds.set_width(rect.width() - GetIconViewWidth() - in OnPaint() 238 text_bounds.set_x(GetMirroredXWithWidthInView(text_bounds.x(), in OnPaint() 239 text_bounds.width())); in OnPaint() 242 gfx::Size title_size(text_bounds.width(), in OnPaint() 244 gfx::Size details_size(text_bounds.width(), in OnPaint() 247 int y = text_bounds.y() + (text_bounds.height() - total_height) / 2; in OnPaint() 249 title_text_->SetDisplayRect(gfx::Rect(gfx::Point(text_bounds.x(), y), in OnPaint() [all …]
|
D | folder_header_view.cc | 171 gfx::Rect text_bounds(rect); in Layout() local 180 text_bounds.set_x(back_bounds.x() + (rect.width() - text_width) / 2); in Layout() 181 text_bounds.set_width(text_width); in Layout() 182 text_bounds.ClampToCenteredSize(gfx::Size(text_bounds.width(), in Layout() 184 folder_name_view_->SetBoundsRect(text_bounds); in Layout()
|
/external/chromium_org/ui/gfx/ |
D | canvas_skia.cc | 219 const Rect& text_bounds, in DrawStringRectWithShadows() argument 223 if (!IntersectsClipRect(text_bounds)) in DrawStringRectWithShadows() 226 Rect clip_rect(text_bounds); in DrawStringRectWithShadows() 232 Rect rect(text_bounds); in DrawStringRectWithShadows() 250 ElideRectangleText(adjusted_text, font_list, text_bounds.width(), in DrawStringRectWithShadows() 251 text_bounds.height(), wrap_behavior, &strings); in DrawStringRectWithShadows() 268 rect += Vector2d(0, (text_bounds.height() - text_height) / 2); in DrawStringRectWithShadows() 297 ElideTextAndAdjustRange(font_list, text_bounds.width(), &adjusted_text, in DrawStringRectWithShadows()
|
D | canvas_notimplemented.cc | 33 const Rect& text_bounds, in DrawStringRectWithShadows() argument
|
D | canvas.h | 369 const Rect& text_bounds,
|
/external/chromium_org/cc/layers/ |
D | heads_up_display_layer_impl.cc | 369 SkRect text_bounds = in DrawFPSDisplay() local 375 text_bounds.bottom() + 2 * kPadding, in DrawFPSDisplay() 394 text_bounds.left(), in DrawFPSDisplay() 395 text_bounds.bottom()); in DrawFPSDisplay() 401 text_bounds.right(), in DrawFPSDisplay() 402 text_bounds.bottom()); in DrawFPSDisplay() 557 SkRect text_bounds = SkRect::MakeXYWH( in DrawPaintTimeDisplay() local 560 text_bounds.bottom() + kPadding, in DrawPaintTimeDisplay() 579 text_bounds.left(), in DrawPaintTimeDisplay() 580 text_bounds.bottom()); in DrawPaintTimeDisplay()
|
/external/chromium_org/ui/views/controls/tree/ |
D | tree_view.cc | 793 gfx::Rect text_bounds(bounds.x() + text_offset_, bounds.y(), in PaintRow() local 796 text_bounds.set_x(bounds.x()); in PaintRow() 800 canvas->FillRect(text_bounds, bg_color); in PaintRow() 802 canvas->DrawFocusRect(text_bounds); in PaintRow() 807 text_bounds.x() + kTextHorizontalPadding, in PaintRow() 808 text_bounds.y() + kTextVerticalPadding, in PaintRow() 809 text_bounds.width() - kTextHorizontalPadding * 2, in PaintRow() 810 text_bounds.height() - kTextVerticalPadding * 2); in PaintRow()
|
/external/chromium_org/chrome/browser/ui/views/ |
D | find_bar_view.cc | 249 const gfx::Rect text_bounds(find_text_x, find_next_button_->y(), in OnPaint() local 253 gfx::Rect background_bounds = text_bounds; in OnPaint() 261 views::Painter::PaintPainterAt(canvas, find_text_border_.get(), text_bounds); in OnPaint()
|
/external/chromium_org/ui/views/controls/menu/ |
D | menu_item_view.cc | 836 gfx::Rect text_bounds(label_start, top_margin, width, in PaintButton() local 839 text_bounds.set_x(GetMirroredXForRect(text_bounds)); in PaintButton() 843 canvas->DrawStringRectWithFlags(title(), font_list, fg_color, text_bounds, in PaintButton() 851 text_bounds + gfx::Vector2d(0, font_list.GetHeight()), in PaintButton()
|
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
D | omnibox_result_view.h | 112 const gfx::Rect& text_bounds() const { return text_bounds_; } in text_bounds() function
|
/external/chromium_org/ui/views/controls/combobox/ |
D | combobox.cc | 674 gfx::Rect text_bounds(x, y, text_width, text_height); in PaintText() local 675 AdjustBoundsForRTLUI(&text_bounds); in PaintText() 676 canvas->DrawStringRect(text, font_list, text_color, text_bounds); in PaintText()
|