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

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

Issue 11088037: Revert 160886 - Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuCo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/views/controls/menu/menu_separator.h
===================================================================
--- ui/views/controls/menu/menu_separator.h (revision 160892)
+++ ui/views/controls/menu/menu_separator.h (working copy)
@@ -11,13 +11,9 @@
namespace views {
-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.
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -27,9 +23,6 @@
// 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