| 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);
|
| };
|
|
|
|
|