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

Unified Diff: views/aura_desktop/aura_desktop_main.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 | « ui/gfx/render_text_win.cc ('k') | views/border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/aura_desktop/aura_desktop_main.cc
diff --git a/views/aura_desktop/aura_desktop_main.cc b/views/aura_desktop/aura_desktop_main.cc
index d2a37b795db71ced683b88c81c1415d501b4ad09..cb59e0b17a76e749b9042d22778d6dbc7be0c27d 100644
--- a/views/aura_desktop/aura_desktop_main.cc
+++ b/views/aura_desktop/aura_desktop_main.cc
@@ -82,7 +82,7 @@ class TestView : public views::View {
private:
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) {
- canvas->FillRectInt(color_, 0, 0, width(), height());
+ canvas->FillRect(color_, GetLocalBounds());
}
virtual bool OnMousePressed(const views::MouseEvent& event) {
color_shifting_ = true;
@@ -114,7 +114,7 @@ class TestWindowContents : public views::WidgetDelegateView {
private:
// Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRectInt(SK_ColorGRAY, 0, 0, width(), height());
+ canvas->FillRect(SK_ColorGRAY, GetLocalBounds());
}
// Overridden from views::WidgetDelegateView:
« no previous file with comments | « ui/gfx/render_text_win.cc ('k') | views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698