| 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_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class ASH_EXPORT WindowSelector | 49 class ASH_EXPORT WindowSelector |
| 50 : public gfx::DisplayObserver, | 50 : public gfx::DisplayObserver, |
| 51 public aura::WindowObserver, | 51 public aura::WindowObserver, |
| 52 public aura::client::ActivationChangeObserver, | 52 public aura::client::ActivationChangeObserver, |
| 53 public views::TextfieldController { | 53 public views::TextfieldController { |
| 54 public: | 54 public: |
| 55 // The distance between the top edge of the screen and the bottom edge of | 55 // The distance between the top edge of the screen and the bottom edge of |
| 56 // the text filtering textfield. | 56 // the text filtering textfield. |
| 57 static const int kTextFilterBottomEdge; | 57 static const int kTextFilterBottomEdge; |
| 58 | 58 |
| 59 // Returns true if the window can be selected in overview mode. |
| 60 static bool IsSelectable(aura::Window* window); |
| 61 |
| 59 enum Direction { | 62 enum Direction { |
| 60 LEFT, | 63 LEFT, |
| 61 UP, | 64 UP, |
| 62 RIGHT, | 65 RIGHT, |
| 63 DOWN | 66 DOWN |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 typedef std::vector<aura::Window*> WindowList; | 69 typedef std::vector<aura::Window*> WindowList; |
| 67 typedef ScopedVector<WindowSelectorItem> WindowSelectorItemList; | 70 typedef ScopedVector<WindowSelectorItem> WindowSelectorItemList; |
| 68 | 71 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Tracks whether minimized windows are currently being restored for overview | 188 // Tracks whether minimized windows are currently being restored for overview |
| 186 // mode. | 189 // mode. |
| 187 bool restoring_minimized_windows_; | 190 bool restoring_minimized_windows_; |
| 188 | 191 |
| 189 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 192 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 190 }; | 193 }; |
| 191 | 194 |
| 192 } // namespace ash | 195 } // namespace ash |
| 193 | 196 |
| 194 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 197 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |