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

Unified Diff: ui/native_theme/native_theme.h

Issue 2655553003: Native themes: Add menu separator part (Closed)
Patch Set: 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
Index: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 62774d8c27bcfa7dce66dc212b1647e982987f66..01bf3b40c006ff4f252846d45fb888b1207422f8 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -9,6 +9,7 @@
#include "base/observer_list.h"
#include "build/build_config.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/base/models/menu_separator_types.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/native_theme/native_theme_export.h"
@@ -54,8 +55,8 @@ class NATIVE_THEME_EXPORT NativeTheme {
kMenuCheckBackground,
kMenuPopupArrow,
kMenuPopupGutter,
- kMenuPopupSeparator,
#endif
+ kMenuPopupSeparator,
kMenuItemBackground,
kProgressBar,
kPushButton,
@@ -143,6 +144,11 @@ class NATIVE_THEME_EXPORT NativeTheme {
bool is_selected;
};
+ struct MenuSeparatorExtraParams {
+ const gfx::Rect* paint_rect;
+ MenuSeparatorType type;
+ };
+
struct MenuItemExtraParams {
bool is_selected;
int corner_radius;
@@ -226,6 +232,7 @@ class NATIVE_THEME_EXPORT NativeTheme {
MenuArrowExtraParams menu_arrow;
MenuCheckExtraParams menu_check;
MenuItemExtraParams menu_item;
+ MenuSeparatorExtraParams menu_separator;
MenuListExtraParams menu_list;
MenuBackgroundExtraParams menu_background;
ProgressBarExtraParams progress_bar;

Powered by Google App Engine
This is Rietveld 408576698