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

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

Issue 11026076: Added MenuConfig setter to MenuItemView, updated rest of the code to use set MenuConfig if it avail… (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
diff --git a/ui/views/controls/menu/menu_separator.h b/ui/views/controls/menu/menu_separator.h
index cb48e04d5842043125f5edb463ae9740bbbd994d..3833177a50c498f347177fcc6c088fc6eb82dca0 100644
--- a/ui/views/controls/menu/menu_separator.h
+++ b/ui/views/controls/menu/menu_separator.h
@@ -11,9 +11,13 @@
namespace views {
+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.
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
@@ -23,6 +27,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);
};

Powered by Google App Engine
This is Rietveld 408576698