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

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

Issue 2087153003: Moves common code in ash/wm/overview to ash/common/wm/overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
6 #define ASH_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>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/wm/overview/window_selector.h" 13 #include "ash/common/wm/overview/window_selector.h"
14 #include "ash/wm/overview/window_selector_delegate.h" 14 #include "ash/common/wm/overview/window_selector_delegate.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 17
18 namespace ash { 18 namespace ash {
19 class WindowSelector; 19 class WindowSelector;
20 class WindowSelectorTest; 20 class WindowSelectorTest;
21 21
22 // Manages a window selector which displays an overview of all windows and 22 // Manages a window selector which displays an overview of all windows and
23 // allows selecting a window to activate it. 23 // allows selecting a window to activate it.
24 class ASH_EXPORT WindowSelectorController 24 class ASH_EXPORT WindowSelectorController : public WindowSelectorDelegate {
25 : public WindowSelectorDelegate {
26 public: 25 public:
27 WindowSelectorController(); 26 WindowSelectorController();
28 ~WindowSelectorController() override; 27 ~WindowSelectorController() override;
29 28
30 // 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
31 // at certain times, such as when the lock screen is visible. 30 // at certain times, such as when the lock screen is visible.
32 static bool CanSelect(); 31 static bool CanSelect();
33 32
34 // Enters overview mode. This is essentially the window cycling mode however 33 // Enters overview mode. This is essentially the window cycling mode however
35 // 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
(...skipping 17 matching lines...) Expand all
53 void OnSelectionStarted(); 52 void OnSelectionStarted();
54 53
55 std::unique_ptr<WindowSelector> window_selector_; 54 std::unique_ptr<WindowSelector> window_selector_;
56 base::Time last_selection_time_; 55 base::Time last_selection_time_;
57 56
58 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 57 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
59 }; 58 };
60 59
61 } // namespace ash 60 } // namespace ash
62 61
63 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 62 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector.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