| 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 19 matching lines...) Expand all Loading... |
| 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 // Attempts to toggle overview mode and returns true if successful (showing | 33 // Attempts to toggle overview mode and returns true if successful (showing |
| 34 // overview would be unsuccessful if there are no windows to show). | 34 // overview would be unsuccessful if there are no windows to show). |
| 35 bool ToggleOverview(); | 35 bool ToggleOverview(); |
| 36 | 36 |
| 37 // Returns true if window selection mode is active. | 37 // Returns true if window selection mode is active. |
| 38 bool IsSelecting() const; | 38 bool IsSelecting() const; |
| 39 | 39 |
| 40 // Moves the current selection by |increment| items. Positive values of |
| 41 // |increment| move the selection forward, negative values move it backward. |
| 42 void IncrementSelection(int increment); |
| 43 |
| 44 // Accepts current selection if any. Returns true if a selection was made, |
| 45 // false otherwise. |
| 46 bool AcceptSelection(); |
| 47 |
| 40 // Returns true if overview mode is restoring minimized windows so that they | 48 // Returns true if overview mode is restoring minimized windows so that they |
| 41 // are visible during overview mode. | 49 // are visible during overview mode. |
| 42 bool IsRestoringMinimizedWindows() const; | 50 bool IsRestoringMinimizedWindows() const; |
| 43 | 51 |
| 44 // WindowSelectorDelegate: | 52 // WindowSelectorDelegate: |
| 45 void OnSelectionEnded() override; | 53 void OnSelectionEnded() override; |
| 46 void AddDelayedAnimationObserver( | 54 void AddDelayedAnimationObserver( |
| 47 std::unique_ptr<DelayedAnimationObserver> animation) override; | 55 std::unique_ptr<DelayedAnimationObserver> animation) override; |
| 48 void RemoveAndDestroyAnimationObserver( | 56 void RemoveAndDestroyAnimationObserver( |
| 49 DelayedAnimationObserver* animation) override; | 57 DelayedAnimationObserver* animation) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 61 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; | 69 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; |
| 62 std::unique_ptr<WindowSelector> window_selector_; | 70 std::unique_ptr<WindowSelector> window_selector_; |
| 63 base::Time last_selection_time_; | 71 base::Time last_selection_time_; |
| 64 | 72 |
| 65 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); | 73 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); |
| 66 }; | 74 }; |
| 67 | 75 |
| 68 } // namespace ash | 76 } // namespace ash |
| 69 | 77 |
| 70 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ | 78 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ |
| OLD | NEW |