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

Unified Diff: ui/aura_shell/examples/toplevel_window.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: ui/aura_shell/examples/toplevel_window.cc
diff --git a/ui/aura_shell/examples/toplevel_window.cc b/ui/aura_shell/examples/toplevel_window.cc
index ef4887340f13ac7b86a1ce8ac18fc724529be266..57dda48707e9d77f92301b476908d5ec240dd970 100644
--- a/ui/aura_shell/examples/toplevel_window.cc
+++ b/ui/aura_shell/examples/toplevel_window.cc
@@ -34,7 +34,7 @@ ToplevelWindow::~ToplevelWindow() {
}
void ToplevelWindow::OnPaint(gfx::Canvas* canvas) {
- canvas->FillRectInt(SK_ColorDKGRAY, 0, 0, width(), height());
+ canvas->FillRect(SK_ColorDKGRAY, GetLocalBounds());
}
string16 ToplevelWindow::GetWindowTitle() const {

Powered by Google App Engine
This is Rietveld 408576698