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_CONTROLLER_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "ash/wm/overview/window_selector.h" | 12 #include "ash/wm/overview/window_selector.h" |
13 #include "ash/wm/overview/window_selector_delegate.h" | 13 #include "ash/wm/overview/window_selector_delegate.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/time/time.h" |
16 #include "ui/aura/window_observer.h" | 17 #include "ui/aura/window_observer.h" |
17 | 18 |
18 namespace aura { | 19 namespace aura { |
19 class Window; | 20 class Window; |
20 } | 21 } |
21 | 22 |
22 namespace ash { | 23 namespace ash { |
23 | 24 |
24 namespace internal { | 25 namespace internal { |
25 class WindowSelectorTest; | 26 class WindowSelectorTest; |
(...skipping 26 matching lines...) Expand all Loading... |
52 // Returns true if window selection mode is active. | 53 // Returns true if window selection mode is active. |
53 bool IsSelecting(); | 54 bool IsSelecting(); |
54 | 55 |
55 // WindowSelectorDelegate: | 56 // WindowSelectorDelegate: |
56 virtual void OnWindowSelected(aura::Window* window) OVERRIDE; | 57 virtual void OnWindowSelected(aura::Window* window) OVERRIDE; |
57 virtual void OnSelectionCanceled() OVERRIDE; | 58 virtual void OnSelectionCanceled() OVERRIDE; |
58 | 59 |
59 private: | 60 private: |
60 friend class internal::WindowSelectorTest; | 61 friend class internal::WindowSelectorTest; |
61 | 62 |
| 63 // Dispatched when window selection begins. |
| 64 void OnSelectionStarted(); |
| 65 |
62 scoped_ptr<WindowSelector> window_selector_; | 66 scoped_ptr<WindowSelector> window_selector_; |
| 67 base::Time last_selection_time_; |
63 | 68 |
64 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); | 69 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); |
65 }; | 70 }; |
66 | 71 |
67 } // namespace ash | 72 } // namespace ash |
68 | 73 |
69 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 74 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
OLD | NEW |