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