diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 15:50:00 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 15:50:00 +0000 |
commit | 88b65c8ce6140915e4fb44f64960065e7140f07b (patch) | |
tree | bc8f39c58cc1036c296898d336ca7a53764f9b2b /ui/gfx/native_theme_win.h | |
parent | a026daa258eb0400aeb6357dd5ab3653cb182490 (diff) | |
download | chromium_src-88b65c8ce6140915e4fb44f64960065e7140f07b.zip chromium_src-88b65c8ce6140915e4fb44f64960065e7140f07b.tar.gz chromium_src-88b65c8ce6140915e4fb44f64960065e7140f07b.tar.bz2 |
step 4 of native theme refactoring
Moved all calls made by webthemeengine_impl_win.cc from the old api to the
new api.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6873047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/native_theme_win.h')
-rw-r--r-- | ui/gfx/native_theme_win.h | 117 |
1 files changed, 47 insertions, 70 deletions
diff --git a/ui/gfx/native_theme_win.h b/ui/gfx/native_theme_win.h index 3e8faeb..fb41485 100644 --- a/ui/gfx/native_theme_win.h +++ b/ui/gfx/native_theme_win.h @@ -147,48 +147,6 @@ class NativeThemeWin : public NativeTheme { // single Paint() entry point. Do not make new calls to these methods. // This method is deprecated and will be removed in the near future. - HRESULT PaintMenuList(HDC hdc, - int part_id, - int state_id, - int classic_state, - RECT* rect) const; - - // This method is deprecated and will be removed in the near future. - // Paints a scrollbar arrow. |classic_state| should have the appropriate - // classic part number ORed in already. - HRESULT PaintScrollbarArrow(HDC hdc, - int state_id, - int classic_state, - RECT* rect) const; - - // This method is deprecated and will be removed in the near future. - // Paints a scrollbar track section. |align_rect| is only used in classic - // mode, and makes sure the checkerboard pattern in |target_rect| is aligned - // with one presumed to be in |align_rect|. - HRESULT PaintScrollbarTrack(HDC hdc, - int part_id, - int state_id, - int classic_state, - RECT* target_rect, - RECT* align_rect, - SkCanvas* canvas) const; - - // This method is deprecated and will be removed in the near future. - // Paints a scrollbar thumb or gripper. - HRESULT PaintScrollbarThumb(HDC hdc, - int part_id, - int state_id, - int classic_state, - RECT* rect) const; - - // This method is deprecated and will be removed in the near future. - HRESULT PaintSpinButton(HDC hdc, - int part_id, - int state_id, - int classic_state, - RECT* rect) const; - - // This method is deprecated and will be removed in the near future. HRESULT PaintStatusGripper(HDC hdc, int part_id, int state_id, @@ -208,22 +166,6 @@ class NativeThemeWin : public NativeTheme { bool fill_content_area, bool draw_edges) const; - // This method is deprecated and will be removed in the near future. - HRESULT PaintTrackbar(HDC hdc, - int part_id, - int state_id, - int classic_state, - RECT* rect, - SkCanvas* canvas) const; - - // This method is deprecated and will be removed in the near future. - HRESULT PaintProgressBar(HDC hdc, - RECT* bar_rect, - RECT* value_rect, - bool determinate, - double animated_seconds, - SkCanvas* canvas) const; - private: NativeThemeWin(); ~NativeThemeWin(); @@ -272,18 +214,6 @@ class NativeThemeWin : public NativeTheme { const gfx::Rect& rect, const MenuItemExtraParams& extra) const; - // Paints a scrollbar arrow. |classic_state| should have the appropriate - // classic part number ORed in already. - HRESULT PaintScrollbarArrow(HDC hdc, - Part direction, - State state, - const gfx::Rect& rect) const; - - HRESULT PaintScrollbarThumb(HDC hdc, - Part direction, - State state, - const gfx::Rect& rect) const; - HRESULT PaintPushButton(HDC hdc, Part part, State state, @@ -302,6 +232,53 @@ class NativeThemeWin : public NativeTheme { const gfx::Rect& rect, const ButtonExtraParams& extra) const; + HRESULT PaintMenuList(HDC hdc, + State state, + const gfx::Rect& rect, + const MenuListExtraParams& extra) const; + + // Paints a scrollbar arrow. |classic_state| should have the appropriate + // classic part number ORed in already. + HRESULT PaintScrollbarArrow(HDC hdc, + Part part, + State state, + const gfx::Rect& rect, + const ScrollbarArrowExtraParams& extra) const; + + HRESULT PaintScrollbarThumb(HDC hdc, + Part part, + State state, + const gfx::Rect& rect, + const ScrollbarThumbExtraParams& extra) const; + + // This method is deprecated and will be removed in the near future. + // Paints a scrollbar track section. |align_rect| is only used in classic + // mode, and makes sure the checkerboard pattern in |target_rect| is aligned + // with one presumed to be in |align_rect|. + HRESULT PaintScrollbarTrack(SkCanvas* canvas, + HDC hdc, + Part part, + State state, + const gfx::Rect& rect, + const ScrollbarTrackExtraParams& extra) const; + + HRESULT PaintSpinButton(HDC hdc, + Part part, + State state, + const gfx::Rect& rect, + const InnerSpinButtonExtraParams& extra) const; + + HRESULT PaintTrackbar(SkCanvas* canvas, + HDC hdc, + Part part, + State state, + const gfx::Rect& rect, + const TrackbarExtraParams& extra) const; + + HRESULT PaintProgressBar(HDC hdc, + const gfx::Rect& rect, + const ProgressBarExtraParams& extra) const; + // Get the windows theme name that goes with the part. static ThemeName GetThemeName(Part part); |