Chromium Code Reviews| 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 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // Returns true if overview mode is restoring minimized windows so that they | 47 // Returns true if overview mode is restoring minimized windows so that they |
| 48 // are visible during overview mode. | 48 // are visible during overview mode. |
| 49 bool IsRestoringMinimizedWindows() const; | 49 bool IsRestoringMinimizedWindows() const; |
| 50 | 50 |
| 51 // WindowSelectorDelegate: | 51 // WindowSelectorDelegate: |
| 52 void OnSelectionEnded() override; | 52 void OnSelectionEnded() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 friend class WindowSelectorTest; | 55 friend class WindowSelectorTest; |
| 56 | 56 |
| 57 // Dispatched when window selection begins. | 57 // Called when overview mode is about to be engaged. |
| 58 void OnSelectionStarting(); | |
| 59 | |
| 60 // Called when overview mode is engaged. | |
| 58 void OnSelectionStarted(); | 61 void OnSelectionStarted(); |
| 59 | 62 |
| 60 scoped_ptr<WindowSelector> window_selector_; | 63 scoped_ptr<WindowSelector> window_selector_; |
| 61 base::Time last_selection_time_; | 64 base::Time last_selection_time_; |
| 62 | 65 |
| 66 // While overview mode is active, tracks the window of type WINDOW_TYPE_NORMAL | |
| 67 // or WINDOW_TYPE_PANEL that was active prior to entering overview mode if | |
| 68 // such a window exists (nullptr otherwise). | |
|
oshima
2015/05/12 20:25:13
document that the pointer may be stale (if it's cl
tdanderson
2015/05/14 01:36:32
I've removed this pointer in patch set 2.
| |
| 69 aura::Window* initially_active_window_; | |
| 70 | |
| 63 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); | 71 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); |
| 64 }; | 72 }; |
| 65 | 73 |
| 66 } // namespace ash | 74 } // namespace ash |
| 67 | 75 |
| 68 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 76 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
| OLD | NEW |