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

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

Issue 1477253002: Use a single views::MenuConfig instance for each platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add menu_config_android 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 a0fd2c8170a8f86b67e42f5006f07e0ba91a1ee1..966e03fe9e1b7cd0ade35ffec0693a8295061587 100644
--- a/ui/views/controls/menu/menu_separator.h
+++ b/ui/views/controls/menu/menu_separator.h
@@ -15,9 +15,7 @@ class MenuItemView;
class MenuSeparator : public View {
public:
- MenuSeparator(MenuItemView* parent, ui::MenuSeparatorType type)
- : type_(type),
- parent_menu_item_(parent) {}
+ explicit MenuSeparator(ui::MenuSeparatorType type) : type_(type) {}
// View overrides.
void OnPaint(gfx::Canvas* canvas) override;
@@ -32,9 +30,6 @@ 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