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_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
| 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 public: | 25 public: |
| 26 WindowSelectorController(); | 26 WindowSelectorController(); |
| 27 ~WindowSelectorController() override; | 27 ~WindowSelectorController() override; |
| 28 | 28 |
| 29 // Returns true if selecting windows in an overview is enabled. This is false | 29 // Returns true if selecting windows in an overview is enabled. This is false |
| 30 // at certain times, such as when the lock screen is visible. | 30 // at certain times, such as when the lock screen is visible. |
| 31 static bool CanSelect(); | 31 static bool CanSelect(); |
| 32 | 32 |
| 33 // Enters overview mode. This is essentially the window cycling mode however | 33 // Enters overview mode. This is essentially the window cycling mode however |
| 34 // not released on releasing the alt key and allows selecting with the mouse | 34 // not released on releasing the alt key and allows selecting with the mouse |
| 35 // or touch rather than keypresses. | 35 // or touch rather than keypresses. Returns true if the toggle was successful. |
|
tdanderson
2016/11/12 02:18:58
I think this documentation (which seems a bit out
mohsen
2016/11/13 05:10:04
Right. Done.
| |
| 36 void ToggleOverview(); | 36 // If there is no window to show in overview mode, toggle would be |
| 37 // unsuccessful. | |
| 38 bool ToggleOverview(); | |
| 37 | 39 |
| 38 // Returns true if window selection mode is active. | 40 // Returns true if window selection mode is active. |
| 39 bool IsSelecting() const; | 41 bool IsSelecting() const; |
| 40 | 42 |
| 41 // Returns true if overview mode is restoring minimized windows so that they | 43 // Returns true if overview mode is restoring minimized windows so that they |
| 42 // are visible during overview mode. | 44 // are visible during overview mode. |
| 43 bool IsRestoringMinimizedWindows() const; | 45 bool IsRestoringMinimizedWindows() const; |
| 44 | 46 |
| 45 // WindowSelectorDelegate: | 47 // WindowSelectorDelegate: |
| 46 void OnSelectionEnded() override; | 48 void OnSelectionEnded() override; |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 62 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; | 64 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; |
| 63 std::unique_ptr<WindowSelector> window_selector_; | 65 std::unique_ptr<WindowSelector> window_selector_; |
| 64 base::Time last_selection_time_; | 66 base::Time last_selection_time_; |
| 65 | 67 |
| 66 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); | 68 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 } // namespace ash | 71 } // namespace ash |
| 70 | 72 |
| 71 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 73 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
| OLD | NEW |