diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 17:32:21 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 17:32:21 +0000 |
commit | cb78237be72529c962c635cf90ba2157fad1846d (patch) | |
tree | 69e6fd9b58b94fba3b037eec2c34e2b940daf52d /chrome/browser/chromeos/login | |
parent | 4bb546c306b5d2db0de8dfd81d8371f1b7a030b7 (diff) | |
download | chromium_src-cb78237be72529c962c635cf90ba2157fad1846d.zip chromium_src-cb78237be72529c962c635cf90ba2157fad1846d.tar.gz chromium_src-cb78237be72529c962c635cf90ba2157fad1846d.tar.bz2 |
views: Change Painter::Paint to take a gfx::Size instead of ints.
BUG=100898
R=pkasting@chromium.org,sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9359053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/login')
-rw-r--r-- | chrome/browser/chromeos/login/rounded_rect_painter.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/login/rounded_rect_painter.cc b/chrome/browser/chromeos/login/rounded_rect_painter.cc index 2a1719d..2771112 100644 --- a/chrome/browser/chromeos/login/rounded_rect_painter.cc +++ b/chrome/browser/chromeos/login/rounded_rect_painter.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -143,8 +143,9 @@ class RoundedRectPainter : public views::Painter { : border_(border) { } - virtual void Paint(int w, int h, gfx::Canvas* canvas) { - DrawRectWithBorder(w, h, border_, canvas); + // Overridden from views::Painter: + virtual void Paint(gfx::Canvas* canvas, const gfx::Size& size) OVERRIDE { + DrawRectWithBorder(size.width(), size.height(), border_, canvas); } private: |