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

Unified Diff: ui/aura_shell/examples/lock_view.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
Index: ui/aura_shell/examples/lock_view.cc
diff --git a/ui/aura_shell/examples/lock_view.cc b/ui/aura_shell/examples/lock_view.cc
index a8f0b3f0f5a17216f4b366dba89fcf86de01acda..add69296ca751caf8da97c52c0f0cac217309514 100644
--- a/ui/aura_shell/examples/lock_view.cc
+++ b/ui/aura_shell/examples/lock_view.cc
@@ -18,8 +18,7 @@ namespace examples {
class LockView : public views::WidgetDelegateView {
public:
- LockView() {
- }
+ LockView() {}
virtual ~LockView() {}
// Overridden from View:
@@ -30,7 +29,7 @@ class LockView : public views::WidgetDelegateView {
private:
// Overridden from View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
- canvas->FillRectInt(SK_ColorYELLOW, 0, 0, width(), height());
+ canvas->FillRect(SK_ColorYELLOW, GetLocalBounds());
string16 text = ASCIIToUTF16("LOCKED!");
int string_width = font_.GetStringWidth(text);
canvas->DrawStringInt(text, font_, SK_ColorRED, (width() - string_width)/ 2,
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura_shell/examples/toplevel_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698