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

Unified Diff: ash/shell/window_type_launcher.cc

Issue 9021046: Pass const gfx::Rect& as the first parameter to FillRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more fix Created 8 years, 11 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
« no previous file with comments | « ash/shell/widgets.cc ('k') | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_type_launcher.cc
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc
index 3cefa2c86e8b0ba476afff151b6ec024e355d397..42f5db12c1e2c7c5eb3921139626a9fa2ed1109b 100644
--- a/ash/shell/window_type_launcher.cc
+++ b/ash/shell/window_type_launcher.cc
@@ -58,7 +58,7 @@ class ModalWindow : public views::WidgetDelegateView,
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRect(color_, GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), color_);
}
virtual gfx::Size GetPreferredSize() OVERRIDE {
return gfx::Size(200, 200);
@@ -130,7 +130,7 @@ class NonModalTransient : public views::WidgetDelegateView {
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRect(color_, GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), color_);
}
virtual gfx::Size GetPreferredSize() OVERRIDE {
return gfx::Size(250, 250);
@@ -222,7 +222,7 @@ WindowTypeLauncher::~WindowTypeLauncher() {
}
void WindowTypeLauncher::OnPaint(gfx::Canvas* canvas) {
- canvas->FillRect(SK_ColorWHITE, GetLocalBounds());
+ canvas->FillRect(GetLocalBounds(), SK_ColorWHITE);
}
void WindowTypeLauncher::Layout() {
« no previous file with comments | « ash/shell/widgets.cc ('k') | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698