OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
7 | 7 |
8 #include "ash/wm/overview/window_selector_item.h" | 8 #include "ash/wm/overview/window_selector_item.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Adds |window| to the selector item. This window should be an attached | 25 // Adds |window| to the selector item. This window should be an attached |
26 // panel window. | 26 // panel window. |
27 void AddWindow(aura::Window* window); | 27 void AddWindow(aura::Window* window); |
28 | 28 |
29 // WindowSelectorItem: | 29 // WindowSelectorItem: |
30 virtual aura::Window* GetRootWindow() OVERRIDE; | 30 virtual aura::Window* GetRootWindow() OVERRIDE; |
31 virtual bool HasSelectableWindow(const aura::Window* window) OVERRIDE; | 31 virtual bool HasSelectableWindow(const aura::Window* window) OVERRIDE; |
32 virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE; | 32 virtual aura::Window* TargetedWindow(const aura::Window* target) OVERRIDE; |
33 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE; | 33 virtual void RestoreWindowOnExit(aura::Window* window) OVERRIDE; |
34 virtual aura::Window* SelectionWindow() OVERRIDE; | 34 virtual aura::Window* SelectionWindow() OVERRIDE; |
| 35 virtual const aura::Window* SelectionWindow() const OVERRIDE; |
35 virtual void RemoveWindow(const aura::Window* window) OVERRIDE; | 36 virtual void RemoveWindow(const aura::Window* window) OVERRIDE; |
36 virtual bool empty() const OVERRIDE; | 37 virtual bool empty() const OVERRIDE; |
37 virtual void PrepareForOverview() OVERRIDE; | 38 virtual void PrepareForOverview() OVERRIDE; |
38 virtual void SetItemBounds(aura::Window* root_window, | 39 virtual void SetItemBounds(aura::Window* root_window, |
39 const gfx::Rect& target_bounds, | 40 const gfx::Rect& target_bounds, |
40 bool animate) OVERRIDE; | 41 bool animate) OVERRIDE; |
41 | 42 |
42 private: | 43 private: |
43 typedef ScopedVector<ScopedTransformOverviewWindow> WindowList; | 44 typedef ScopedVector<ScopedTransformOverviewWindow> WindowList; |
44 WindowList transform_windows_; | 45 WindowList transform_windows_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(WindowSelectorPanels); | 47 DISALLOW_COPY_AND_ASSIGN(WindowSelectorPanels); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace ash | 50 } // namespace ash |
50 | 51 |
51 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ | 52 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_PANELS_H_ |
OLD | NEW |