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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class WindowGrid; | 45 class WindowGrid; |
46 | 46 |
47 // The WindowSelector shows a grid of all of your windows, allowing to select | 47 // The WindowSelector shows a grid of all of your windows, allowing to select |
48 // one by clicking or tapping on it. | 48 // one by clicking or tapping on it. |
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 |
| 56 // the text filtering textfield. |
| 57 static const int kTextFilterBottomEdge; |
| 58 |
55 enum Direction { | 59 enum Direction { |
56 LEFT, | 60 LEFT, |
57 UP, | 61 UP, |
58 RIGHT, | 62 RIGHT, |
59 DOWN | 63 DOWN |
60 }; | 64 }; |
61 | 65 |
62 typedef std::vector<aura::Window*> WindowList; | 66 typedef std::vector<aura::Window*> WindowList; |
63 typedef ScopedVector<WindowSelectorItem> WindowSelectorItemList; | 67 typedef ScopedVector<WindowSelectorItem> WindowSelectorItemList; |
64 | 68 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // The number of times the text filtering textfield has been cleared of text | 169 // The number of times the text filtering textfield has been cleared of text |
166 // during this overview mode session. | 170 // during this overview mode session. |
167 size_t num_times_textfield_cleared_; | 171 size_t num_times_textfield_cleared_; |
168 | 172 |
169 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 173 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
170 }; | 174 }; |
171 | 175 |
172 } // namespace ash | 176 } // namespace ash |
173 | 177 |
174 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 178 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
OLD | NEW |