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 eedf3e1f9153c56f33d0073018cb147bbf2e091a..670a9c0e56b754bb7db39183864f1e4f9fb77033 100644 |
| --- a/ash/wm/overview/window_selector_item.h |
| +++ b/ash/wm/overview/window_selector_item.h |
| @@ -6,12 +6,18 @@ |
| #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ |
| #include "base/compiler_specific.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/strings/string16.h" |
| #include "ui/gfx/rect.h" |
| namespace aura { |
| class Window; |
| } |
| +namespace views { |
| +class Widget; |
| +} |
| + |
| namespace ash { |
| // This class represents an item in overview mode. An item can have one or more |
| @@ -74,6 +80,12 @@ class WindowSelectorItem { |
| // Sets the bounds used by the selector item's windows. |
| void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; } |
| + // Creates a label to display under the window selector item. |
| + void UpdateWindowLabels(const gfx::Rect& target_bounds); |
| + |
| + // Returns the label name. |
| + virtual base::string16 GetLabelName() = 0; |
|
flackr
2014/04/14 20:31:18
This should probably be a const method, and return
Nina
2014/04/15 15:15:03
Refactored the code so that we don't need this any
|
| + |
| private: |
| // The root window this item is being displayed on. |
| aura::Window* root_window_; |
| @@ -90,6 +102,9 @@ class WindowSelectorItem { |
| // a window layer for display on another monitor. |
| bool in_bounds_update_; |
| + // Label under the window its active tab name. |
|
flackr
2014/04/14 20:31:18
nit s/its/displaying its
Nina
2014/04/15 15:15:03
Done.
|
| + scoped_ptr<views::Widget> window_label_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); |
| }; |