diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 20:39:35 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 20:39:35 +0000 |
commit | f9e77d7d6dd6ffe2a686ae98d8bba47abd92ad9a (patch) | |
tree | cba32fc4a32415221c1a5ea30944a27cbf075761 /ui/gfx/native_theme_linux.h | |
parent | 311cb806c0d6eb603d4e29606bf33d83bdea3d22 (diff) | |
download | chromium_src-f9e77d7d6dd6ffe2a686ae98d8bba47abd92ad9a.zip chromium_src-f9e77d7d6dd6ffe2a686ae98d8bba47abd92ad9a.tar.gz chromium_src-f9e77d7d6dd6ffe2a686ae98d8bba47abd92ad9a.tar.bz2 |
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
Diffstat (limited to 'ui/gfx/native_theme_linux.h')
-rw-r--r-- | ui/gfx/native_theme_linux.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |