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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 2655553003: Native themes: Add menu separator part (Closed)
Patch Set: item->separator Created 3 years, 11 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_win.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 24eaae35e6953f266d2048093adef6e60e163320..eea06d3a9b04c663b60c8ab42712b372aab8840b 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -264,7 +264,7 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
PaintMenuGutter(canvas, rect);
return;
case kMenuPopupSeparator:
- PaintMenuSeparator(canvas, rect);
+ PaintMenuSeparator(canvas, *extra.menu_separator.paint_rect);
return;
case kMenuPopupBackground:
PaintMenuBackground(canvas, rect);
@@ -429,7 +429,7 @@ void NativeThemeWin::PaintDirect(SkCanvas* destination_canvas,
PaintMenuGutter(hdc, rect);
return;
case kMenuPopupSeparator:
- PaintMenuSeparator(hdc, rect);
+ PaintMenuSeparator(hdc, *extra.menu_separator.paint_rect);
return;
case kMenuItemBackground:
PaintMenuItemBackground(hdc, state, rect, extra.menu_item);
@@ -866,9 +866,8 @@ HRESULT NativeThemeWin::PaintButton(HDC hdc,
return S_OK;
}
-HRESULT NativeThemeWin::PaintMenuSeparator(
- HDC hdc,
- const gfx::Rect& rect) const {
+HRESULT NativeThemeWin::PaintMenuSeparator(HDC hdc,
+ const gfx::Rect& rect) const {
RECT rect_win = rect.ToRECT();
HANDLE handle = GetThemeHandle(MENU);
« no previous file with comments | « ui/native_theme/native_theme_win.h ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698