From cb78237be72529c962c635cf90ba2157fad1846d Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 15 Feb 2012 17:32:21 +0000 Subject: 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 --- chrome/browser/chromeos/login/rounded_rect_painter.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/chromeos/login') 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: -- cgit v1.1