Chromium Code Reviews| Index: ash/wm/overview/window_selector_item.h |
| diff --git a/ash/wm/overview/window_selector_item.h b/ash/wm/overview/window_selector_item.h |
| index 063b141e92a594c728efcd9633144251fd19bc28..40063a3f8a9973445b750a3dbe53b6e65660ddd8 100644 |
| --- a/ash/wm/overview/window_selector_item.h |
| +++ b/ash/wm/overview/window_selector_item.h |
| @@ -27,6 +27,8 @@ class Widget; |
| namespace ash { |
| +class WindowSelector; |
| + |
| // This class represents an item in overview mode. |
| class ASH_EXPORT WindowSelectorItem : public views::ButtonListener, |
| public aura::WindowObserver { |
| @@ -51,7 +53,7 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener, |
| DISALLOW_COPY_AND_ASSIGN(OverviewLabelButton); |
| }; |
| - explicit WindowSelectorItem(aura::Window* window); |
| + WindowSelectorItem(aura::Window* window, WindowSelector* window_selector); |
| ~WindowSelectorItem() override; |
| aura::Window* GetWindow(); |
| @@ -158,6 +160,10 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener, |
| // close_button_widget_. |
| views::ImageButton* close_button_; |
| + // Pointer to the WindowSelector that owns the WindowGrid containing |this|. |
| + // Guaranteed to be non-null for the lifetime of |this|. |
| + WindowSelector* window_selector_; |
|
tdanderson
2015/05/14 01:36:32
Or should we instead have a non-owned pointer back
|
| + |
| DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
| }; |