Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: ash/common/wm/overview/window_selector_controller.h

Issue 2499453002: Add ink drop ripple to overview mode button (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 // allows selecting a window to activate it. 23 // allows selecting a window to activate it.
24 class ASH_EXPORT WindowSelectorController : public WindowSelectorDelegate { 24 class ASH_EXPORT WindowSelectorController : public WindowSelectorDelegate {
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 // Attempts to toggle overview mode and returns true if successful (showing
34 // not released on releasing the alt key and allows selecting with the mouse 34 // overview would be unsuccessful if there are no windows to show).
35 // or touch rather than keypresses. 35 bool ToggleOverview();
36 void ToggleOverview();
37 36
38 // Returns true if window selection mode is active. 37 // Returns true if window selection mode is active.
39 bool IsSelecting() const; 38 bool IsSelecting() const;
40 39
41 // Returns true if overview mode is restoring minimized windows so that they 40 // Returns true if overview mode is restoring minimized windows so that they
42 // are visible during overview mode. 41 // are visible during overview mode.
43 bool IsRestoringMinimizedWindows() const; 42 bool IsRestoringMinimizedWindows() const;
44 43
45 // WindowSelectorDelegate: 44 // WindowSelectorDelegate:
46 void OnSelectionEnded() override; 45 void OnSelectionEnded() override;
(...skipping 15 matching lines...) Expand all
62 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_; 61 std::vector<std::unique_ptr<DelayedAnimationObserver>> delayed_animations_;
63 std::unique_ptr<WindowSelector> window_selector_; 62 std::unique_ptr<WindowSelector> window_selector_;
64 base::Time last_selection_time_; 63 base::Time last_selection_time_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 65 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
67 }; 66 };
68 67
69 } // namespace ash 68 } // namespace ash
70 69
71 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 70 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/system/web_notification/web_notification_tray.cc ('k') | ash/common/wm/overview/window_selector_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698