Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: ui/native_theme/native_theme_win.h

Issue 2813703003: Use NativeTheme to draw vertical menu separators. (Closed)
Patch Set: use rectf Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.h
diff --git a/ui/native_theme/native_theme_win.h b/ui/native_theme/native_theme_win.h
index d2585e41d057b1e9b1568898cf36a2295ba8c1d5..716a4133995df74562e35a83b53547176108d2db 100644
--- a/ui/native_theme/native_theme_win.h
+++ b/ui/native_theme/native_theme_win.h
@@ -132,7 +132,8 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme,
void UpdateSystemColors();
// Painting functions that paint to PaintCanvas.
- void PaintMenuSeparator(cc::PaintCanvas* canvas, const gfx::Rect& rect) const;
+ void PaintMenuSeparator(cc::PaintCanvas* canvas,
+ const MenuSeparatorExtraParams& params) const;
void PaintMenuGutter(cc::PaintCanvas* canvas, const gfx::Rect& rect) const;
void PaintMenuBackground(cc::PaintCanvas* canvas,
const gfx::Rect& rect) const;
@@ -169,10 +170,6 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme,
int state_id,
RECT* rect) const;
- HRESULT PaintMenuSeparator(HDC hdc, const gfx::Rect& rect) const;
-
- HRESULT PaintMenuGutter(HDC hdc, const gfx::Rect& rect) const;
-
// |arrow_direction| determines whether the arrow is pointing to the left or
// to the right. In RTL locales, sub-menus open from right to left and
// therefore the menu arrow should point to the left and not to the right.
@@ -181,8 +178,6 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme,
const gfx::Rect& rect,
const MenuArrowExtraParams& extra) const;
- HRESULT PaintMenuBackground(HDC hdc, const gfx::Rect& rect) const;
-
HRESULT PaintMenuCheck(HDC hdc,
State state,
const gfx::Rect& rect,
@@ -192,11 +187,6 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme,
State state,
const gfx::Rect& rect) const;
- HRESULT PaintMenuItemBackground(HDC hdc,
- State state,
- const gfx::Rect& rect,
- const MenuItemExtraParams& extra) const;
-
HRESULT PaintPushButton(HDC hdc,
Part part,
State state,
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698