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 /views/native_theme_painter.cc | |
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 'views/native_theme_painter.cc')
-rw-r--r-- | views/native_theme_painter.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/views/native_theme_painter.cc b/views/native_theme_painter.cc index 7806f33..a99edea 100644 --- a/views/native_theme_painter.cc +++ b/views/native_theme_painter.cc @@ -19,7 +19,9 @@ NativeThemePainter::NativeThemePainter(Delegate* delegate) gfx::Size NativeThemePainter::GetPreferredSize() { const gfx::NativeTheme* theme = gfx::NativeTheme::instance(); - return theme->GetPartSize(delegate_->GetThemePart()); + gfx::NativeTheme::ExtraParams extra; + gfx::NativeTheme::State state = delegate_->GetThemeState(&extra); + return theme->GetPartSize(delegate_->GetThemePart(), state, extra); } void NativeThemePainter::Paint(int w, int h, gfx::Canvas* canvas) { |