OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
| 7 |
| 8 #include "ash/wm/overview/window_selector_item.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_vector.h" |
| 11 #include "ui/gfx/rect.h" |
| 12 |
| 13 namespace aura { |
| 14 class RootWindow; |
| 15 class Window; |
| 16 } |
| 17 |
| 18 namespace ash { |
| 19 |
| 20 class ScopedTransformOverviewWindow; |
| 21 |
| 22 // This class implements a window selector item containing one or more attached |
| 23 // panel windows. These panels are grouped into a single overview item in |
| 24 // overview mode and the callout arrows are hidden at this point. |
| 25 class WindowSelectorPanels : public WindowSelectorItem { |
| 26 public: |
| 27 WindowSelectorPanels(); |
| 28 virtual ~WindowSelectorPanels(); |
| 29 |
| 30 // Adds |window| to the selector item. This window should be an attached |
| 31 // panel window. |
| 32 void AddWindow(aura::Window* window); |
| 33 |
| 34 // WindowSelectorItem: |
| 35 virtual const aura::RootWindow* GetRootWindow() const OVERRIDE; |
| 36 virtual aura::Window* TargetedWindow( |
| 37 const aura::Window* target) const OVERRIDE; |
| 38 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE; |
| 39 virtual aura::Window* SelectionWindow() const OVERRIDE; |
| 40 virtual void RemoveWindow(const aura::Window* window) OVERRIDE; |
| 41 virtual bool empty() const OVERRIDE; |
| 42 virtual void SetItemBounds(aura::RootWindow* root_window, |
| 43 const gfx::Rect& target_bounds) OVERRIDE; |
| 44 |
| 45 private: |
| 46 typedef ScopedVector<ScopedTransformOverviewWindow> WindowList; |
| 47 WindowList transform_windows_; |
| 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(WindowSelectorPanels); |
| 50 }; |
| 51 |
| 52 } // namespace ash |
| 53 |
| 54 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
OLD | NEW |