Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3686)

Unified Diff: chrome/browser/ui/views/first_run_search_engine_view.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/first_run_search_engine_view.cc
diff --git a/chrome/browser/ui/views/first_run_search_engine_view.cc b/chrome/browser/ui/views/first_run_search_engine_view.cc
index 84af86fbf14b9bb4aca7b6b060c0abfbe8a90e50..a85e45104644864e9d1d06b336e7ff8351354b9c 100644
--- a/chrome/browser/ui/views/first_run_search_engine_view.cc
+++ b/chrome/browser/ui/views/first_run_search_engine_view.cc
@@ -183,12 +183,13 @@ void FirstRunSearchEngineView::ButtonPressed(views::Button* sender,
void FirstRunSearchEngineView::OnPaint(gfx::Canvas* canvas) {
// Fill in behind the background image with the standard gray toolbar color.
- canvas->FillRectInt(GetThemeProvider()->GetColor(ThemeService::COLOR_TOOLBAR),
- 0, 0, width(), background_image_->height());
+ canvas->FillRect(GetThemeProvider()->GetColor(ThemeService::COLOR_TOOLBAR),
+ gfx::Rect(0, 0, width(), background_image_->height()));
// The rest of the dialog background should be white.
DCHECK(height() > background_image_->height());
- canvas->FillRectInt(SK_ColorWHITE, 0, background_image_->height(), width(),
- height() - background_image_->height());
+ canvas->FillRect(SK_ColorWHITE,
+ gfx::Rect(0, background_image_->height(), width(),
+ height() - background_image_->height()));
}
void FirstRunSearchEngineView::OnTemplateURLServiceChanged() {
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698