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

Unified Diff: ui/views/touchui/touch_selection_controller_impl.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 | « ui/views/examples/native_theme_button_example.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/touchui/touch_selection_controller_impl.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
index 85f68ef6f8380cca1bc5e4caeee63844052f8bc6..9d4aa47f0d27dfcae27d3996a4b7fe33e9a9ac25 100644
--- a/ui/views/touchui/touch_selection_controller_impl.cc
+++ b/ui/views/touchui/touch_selection_controller_impl.cc
@@ -191,15 +191,15 @@ class ContextMenuButtonBackground : public Background {
}
int w = view->width();
int h = view->height();
- canvas->FillRect(background_color, gfx::Rect(1, 1, w - 2, h - 2));
- canvas->FillRect(border_color, gfx::Rect(2, 0, w - 4, 1));
- canvas->FillRect(border_color, gfx::Rect(1, 1, 1, 1));
- canvas->FillRect(border_color, gfx::Rect(0, 2, 1, h - 4));
- canvas->FillRect(border_color, gfx::Rect(1, h - 2, 1, 1));
- canvas->FillRect(border_color, gfx::Rect(2, h - 1, w - 4, 1));
- canvas->FillRect(border_color, gfx::Rect(w - 2, 1, 1, 1));
- canvas->FillRect(border_color, gfx::Rect(w - 1, 2, 1, h - 4));
- canvas->FillRect(border_color, gfx::Rect(w - 2, h - 2, 1, 1));
+ canvas->FillRect(gfx::Rect(1, 1, w - 2, h - 2), background_color);
+ canvas->FillRect(gfx::Rect(2, 0, w - 4, 1), border_color);
+ canvas->FillRect(gfx::Rect(1, 1, 1, 1), border_color);
+ canvas->FillRect(gfx::Rect(0, 2, 1, h - 4), border_color);
+ canvas->FillRect(gfx::Rect(1, h - 2, 1, 1), border_color);
+ canvas->FillRect(gfx::Rect(2, h - 1, w - 4, 1), border_color);
+ canvas->FillRect(gfx::Rect(w - 2, 1, 1, 1), border_color);
+ canvas->FillRect(gfx::Rect(w - 1, 2, 1, h - 4), border_color);
+ canvas->FillRect(gfx::Rect(w - 2, h - 2, 1, 1), border_color);
}
private:
« no previous file with comments | « ui/views/examples/native_theme_button_example.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698