From f9e77d7d6dd6ffe2a686ae98d8bba47abd92ad9a Mon Sep 17 00:00:00 2001 From: "rogerta@chromium.org" Date: Wed, 27 Apr 2011 20:39:35 +0000 Subject: Step 5 in native theme refactoring Moved all calls to new API. Kept PaintTextField() still available from the old API since there is one user of the method that is not in views::View specific code, and does not have access to gfx::Canvas and such. Also moved callers of GetThemePartSize() to the new GetPartSize() API. BUG=None TEST=Use the following URL to test all possible controls on web pages: http://www.corp.google.com/~rogerta/no_crawl/widgets_test.html All controls should look and before the same with and without my changes. Also, make sure the chrome UI has not been changed, for example the wrench menu. Review URL: http://codereview.chromium.org/6880107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83204 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/native_theme_linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/gfx/native_theme_linux.h') diff --git a/ui/gfx/native_theme_linux.h b/ui/gfx/native_theme_linux.h index bc7ce36..6af1b2f 100644 --- a/ui/gfx/native_theme_linux.h +++ b/ui/gfx/native_theme_linux.h @@ -20,7 +20,9 @@ class NativeThemeLinux : public NativeTheme { static const NativeThemeLinux* instance(); // NativeTheme implementation: - virtual gfx::Size GetPartSize(Part part) const; + virtual gfx::Size GetPartSize(Part part, + State state, + const ExtraParams& extra) const; virtual void Paint(SkCanvas* canvas, Part part, State state, -- cgit v1.1