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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/overview/window_selector.h ('k') | ash/wm/overview/window_selector_panels.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/wm/overview/window_selector.h" 12 #include "ash/wm/overview/window_selector.h"
13 #include "ash/wm/overview/window_selector_delegate.h" 13 #include "ash/wm/overview/window_selector_delegate.h"
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "ui/aura/window_observer.h" 17 #include "ui/aura/window_observer.h"
18 18
19 namespace aura { 19 namespace aura {
20 class Window; 20 class Window;
21 } 21 }
22 22
23 namespace ash { 23 namespace ash {
24 24 class WindowSelector;
25 namespace internal {
26 class WindowSelectorTest; 25 class WindowSelectorTest;
27 }
28
29 class WindowSelector;
30 26
31 // Manages a window selector which displays an overview of all windows and 27 // Manages a window selector which displays an overview of all windows and
32 // allows selecting a window to activate it. 28 // allows selecting a window to activate it.
33 class ASH_EXPORT WindowSelectorController 29 class ASH_EXPORT WindowSelectorController
34 : public WindowSelectorDelegate { 30 : public WindowSelectorDelegate {
35 public: 31 public:
36 WindowSelectorController(); 32 WindowSelectorController();
37 virtual ~WindowSelectorController(); 33 virtual ~WindowSelectorController();
38 34
39 // 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
(...skipping 11 matching lines...) Expand all
51 void HandleCycleWindow(WindowSelector::Direction direction); 47 void HandleCycleWindow(WindowSelector::Direction direction);
52 48
53 // Returns true if window selection mode is active. 49 // Returns true if window selection mode is active.
54 bool IsSelecting(); 50 bool IsSelecting();
55 51
56 // WindowSelectorDelegate: 52 // WindowSelectorDelegate:
57 virtual void OnWindowSelected(aura::Window* window) OVERRIDE; 53 virtual void OnWindowSelected(aura::Window* window) OVERRIDE;
58 virtual void OnSelectionCanceled() OVERRIDE; 54 virtual void OnSelectionCanceled() OVERRIDE;
59 55
60 private: 56 private:
61 friend class internal::WindowSelectorTest; 57 friend class WindowSelectorTest;
62 58
63 // Dispatched when window selection begins. 59 // Dispatched when window selection begins.
64 void OnSelectionStarted(); 60 void OnSelectionStarted();
65 61
66 scoped_ptr<WindowSelector> window_selector_; 62 scoped_ptr<WindowSelector> window_selector_;
67 base::Time last_selection_time_; 63 base::Time last_selection_time_;
68 64
69 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController); 65 DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
70 }; 66 };
71 67
72 } // namespace ash 68 } // namespace ash
73 69
74 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_ 70 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector.h ('k') | ash/wm/overview/window_selector_panels.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698