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

Unified Diff: ui/native_theme/native_theme.h

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 | « chrome/browser/ui/libgtkui/native_theme_gtk3.cc ('k') | ui/native_theme/native_theme_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme.h
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index 2242fa8865927374040b2bf25390366a21dd464b..4645165f4c8cbe65605d8201b70d2a6c8492ffe9 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"
@@ -56,8 +57,8 @@ class NATIVE_THEME_EXPORT NativeTheme {
kMenuCheckBackground,
kMenuPopupArrow,
kMenuPopupGutter,
- kMenuPopupSeparator,
#endif
+ kMenuPopupSeparator,
kMenuItemBackground,
kProgressBar,
kPushButton,
@@ -145,6 +146,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;
@@ -228,6 +234,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;
« no previous file with comments | « chrome/browser/ui/libgtkui/native_theme_gtk3.cc ('k') | ui/native_theme/native_theme_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698