| 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..0c69ddac8090b97c72c1c4022932ee504d1cf057 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
|
| @@ -22,6 +28,10 @@ class WindowSelectorItem {
|
| WindowSelectorItem();
|
| virtual ~WindowSelectorItem();
|
|
|
| + // The time for the close buttons and labels to fade in when initially shown
|
| + // on entering overview mode.
|
| + static const int kFadeInMilliseconds;
|
| +
|
| // Returns the root window on which this item is shown.
|
| virtual aura::Window* GetRootWindow() = 0;
|
|
|
| @@ -74,7 +84,13 @@ 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,
|
| + aura::Window* root_window);
|
| +
|
| private:
|
| + friend class WindowSelectorTest;
|
| +
|
| // The root window this item is being displayed on.
|
| aura::Window* root_window_;
|
|
|
| @@ -90,6 +106,9 @@ class WindowSelectorItem {
|
| // a window layer for display on another monitor.
|
| bool in_bounds_update_;
|
|
|
| + // Label under the window displaying its active tab name.
|
| + scoped_ptr<views::Widget> window_label_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
|
| };
|
|
|
|
|