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

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

Issue 844763006: Change overview mode to so that docked panel windows are not grouped together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed OnOverviewModeEnding to OnOverviewModeEnded. Created 5 years, 11 months 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_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 21 matching lines...) Expand all
32 WindowSelectorController(); 32 WindowSelectorController();
33 ~WindowSelectorController() override; 33 ~WindowSelectorController() override;
34 34
35 // Returns true if selecting windows in an overview is enabled. This is false 35 // Returns true if selecting windows in an overview is enabled. This is false
36 // at certain times, such as when the lock screen is visible. 36 // at certain times, such as when the lock screen is visible.
37 static bool CanSelect(); 37 static bool CanSelect();
38 38
39 // Enters overview mode. This is essentially the window cycling mode however 39 // Enters overview mode. This is essentially the window cycling mode however
40 // not released on releasing the alt key and allows selecting with the mouse 40 // not released on releasing the alt key and allows selecting with the mouse
41 // or touch rather than keypresses. 41 // or touch rather than keypresses.
42 // NOTE: Overview mode must not be active when destructing |this|.
jonross 2015/01/16 20:10:20 nit: comment no longer valid
bruthig 2015/01/16 20:22:46 Done.
42 void ToggleOverview(); 43 void ToggleOverview();
43 44
44 // Returns true if window selection mode is active. 45 // Returns true if window selection mode is active.
45 bool IsSelecting(); 46 bool IsSelecting();
46 47
48 // Returns true if overview mode is restoring minimized windows so that they
49 // are visible during overview mode.
50 bool IsRestoringMinimizedWindows() const;
51
47 // WindowSelectorDelegate: 52 // WindowSelectorDelegate:
48 void OnSelectionEnded() override; 53 void OnSelectionEnded() override;
49 54
50 private: 55 private:
51 friend class WindowSelectorTest; 56 friend class WindowSelectorTest;
52 57
53 // Dispatched when window selection begins. 58 // Dispatched when window selection begins.
54 void OnSelectionStarted(); 59 void OnSelectionStarted();
55 60
56 scoped_ptr<WindowSelector> window_selector_; 61 scoped_ptr<WindowSelector> window_selector_;
57 base::Time last_selection_time_; 62 base::Time last_selection_time_;
58 63
59 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 64 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
60 }; 65 };
61 66
62 } // namespace ash 67 } // namespace ash
63 68
64 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 69 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698