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

Unified Diff: views/examples/native_theme_button_example.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
« no previous file with comments | « views/desktop/desktop_window_view.cc ('k') | views/examples/native_widget_views_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/native_theme_button_example.cc
diff --git a/views/examples/native_theme_button_example.cc b/views/examples/native_theme_button_example.cc
index f9b8a483bdb2d189ffa799ec95fa94fc66be08a4..33b5b7d80abdc5d616158acc00acaf46cee3a584 100644
--- a/views/examples/native_theme_button_example.cc
+++ b/views/examples/native_theme_button_example.cc
@@ -12,8 +12,8 @@
#include "ui/base/animation/throb_animation.h"
#include "ui/base/models/combobox_model.h"
#include "ui/gfx/canvas.h"
-#include "views/examples/example_combobox_model.h"
#include "views/controls/label.h"
+#include "views/examples/example_combobox_model.h"
#include "views/layout/grid_layout.h"
#include "views/native_theme_painter.h"
@@ -191,7 +191,7 @@ gfx::Size ExampleNativeThemeButton::GetPreferredSize() {
void ExampleNativeThemeButton::OnPaintBackground(gfx::Canvas* canvas) {
// Fill the background with a known colour so that we know where the bounds
// of the View are.
- canvas->FillRectInt(SkColorSetRGB(255, 128, 128), 0, 0, width(), height());
+ canvas->FillRect(SkColorSetRGB(255, 128, 128), GetLocalBounds());
CustomButton::OnPaintBackground(canvas);
}
« no previous file with comments | « views/desktop/desktop_window_view.cc ('k') | views/examples/native_widget_views_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698