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

Unified Diff: ui/views/controls/menu/menu_separator.h

Issue 1514693006: Revert of Use a single views::MenuConfig instance for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase revert on https://codereview.chromium.org/1504743003 Created 5 years 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/views/controls/menu/menu_separator.h
diff --git a/ui/views/controls/menu/menu_separator.h b/ui/views/controls/menu/menu_separator.h
index 966e03fe9e1b7cd0ade35ffec0693a8295061587..a0fd2c8170a8f86b67e42f5006f07e0ba91a1ee1 100644
--- a/ui/views/controls/menu/menu_separator.h
+++ b/ui/views/controls/menu/menu_separator.h
@@ -15,7 +15,9 @@ class MenuItemView;
class MenuSeparator : public View {
public:
- explicit MenuSeparator(ui::MenuSeparatorType type) : type_(type) {}
+ MenuSeparator(MenuItemView* parent, ui::MenuSeparatorType type)
+ : type_(type),
+ parent_menu_item_(parent) {}
// View overrides.
void OnPaint(gfx::Canvas* canvas) override;
@@ -30,6 +32,9 @@ class MenuSeparator : public View {
// The type of the separator.
const ui::MenuSeparatorType type_;
+ // Our parent.
+ MenuItemView* parent_menu_item_;
+
DISALLOW_COPY_AND_ASSIGN(MenuSeparator);
};
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/controls/menu/menu_separator_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698