diff options
Diffstat (limited to 'chrome/browser/views/sad_tab_view.cc')
-rw-r--r-- | chrome/browser/views/sad_tab_view.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/views/sad_tab_view.cc b/chrome/browser/views/sad_tab_view.cc index 938be10..dbcfbfe 100644 --- a/chrome/browser/views/sad_tab_view.cc +++ b/chrome/browser/views/sad_tab_view.cc @@ -44,13 +44,13 @@ static SkShader* CreateGradientShader(int end_point) { } void SadTabView::Paint(ChromeCanvas* canvas) { - SkShader* background_shader = CreateGradientShader(GetHeight()); + SkShader* background_shader = CreateGradientShader(height()); SkPaint paint; paint.setShader(background_shader); background_shader->unref(); paint.setStyle(SkPaint::kFill_Style); canvas->drawRectCoords(0, 0, - SkIntToScalar(GetWidth()), SkIntToScalar(GetHeight()), + SkIntToScalar(width()), SkIntToScalar(height()), paint); canvas->DrawBitmapInt(*sad_tab_bitmap_, icon_bounds_.x(), icon_bounds_.y()); @@ -69,21 +69,21 @@ void SadTabView::Paint(ChromeCanvas* canvas) { void SadTabView::Layout() { int icon_width = sad_tab_bitmap_->width(); int icon_height = sad_tab_bitmap_->height(); - int icon_x = (GetWidth() - icon_width) / 2; - int icon_y = ((GetHeight() - icon_height) / 2) + kSadTabOffset; + int icon_x = (width() - icon_width) / 2; + int icon_y = ((height() - icon_height) / 2) + kSadTabOffset; icon_bounds_.SetRect(icon_x, icon_y, icon_width, icon_height); - int title_x = (GetWidth() - title_width_) / 2; + int title_x = (width() - title_width_) / 2; int title_y = icon_bounds_.bottom() + kIconTitleSpacing; int title_height = title_font_.height(); title_bounds_.SetRect(title_x, title_y, title_width_, title_height); ChromeCanvas cc(0, 0, true); - int message_width = static_cast<int>(GetWidth() * kMessageSize); + int message_width = static_cast<int>(width() * kMessageSize); int message_height = 0; cc.SizeStringInt(message_, message_font_, &message_width, &message_height, ChromeCanvas::MULTI_LINE); - int message_x = (GetWidth() - message_width) / 2; + int message_x = (width() - message_width) / 2; int message_y = title_bounds_.bottom() + kTitleMessageSpacing; message_bounds_.SetRect(message_x, message_y, message_width, message_height); } |