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

Unified Diff: views/examples/native_widget_views_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/examples/native_theme_button_example.cc ('k') | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/native_widget_views_example.cc
diff --git a/views/examples/native_widget_views_example.cc b/views/examples/native_widget_views_example.cc
index 9569645fb5def8582b103d87663d03aad5d9c00f..11a2f2f69c8c36cdcb81389bccc5fcffffa6bb68 100644
--- a/views/examples/native_widget_views_example.cc
+++ b/views/examples/native_widget_views_example.cc
@@ -10,8 +10,8 @@
#include "views/examples/example_base.h"
#include "views/test/test_views_delegate.h"
#include "views/view.h"
-#include "views/widget/widget.h"
#include "views/widget/native_widget_views.h"
+#include "views/widget/widget.h"
namespace examples {
@@ -33,7 +33,7 @@ class TestContentView : public views::View,
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
SkColor color = click_count_ % 2 == 0 ? SK_ColorGREEN : SK_ColorBLUE;
- canvas->FillRectInt(color, 0, 0, width(), height());
+ canvas->FillRect(color, GetLocalBounds());
}
virtual void Layout() OVERRIDE {
button_->SetBounds(10, 10, width() - 20, height() - 20);
« no previous file with comments | « views/examples/native_theme_button_example.cc ('k') | views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698