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

Side by Side Diff: ash/wm/workspace_controller.h

Issue 10916221: Make ToplevelWindowEventFilter and WorkspaceEventFilter into event handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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/workspace/workspace_event_handler_unittest.cc ('k') | ash/wm/workspace_controller.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WORKSPACE_CONTROLLER_H_ 5 #ifndef ASH_WM_WORKSPACE_CONTROLLER_H_
6 #define ASH_WM_WORKSPACE_CONTROLLER_H_ 6 #define ASH_WM_WORKSPACE_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/workspace/workspace_types.h" 9 #include "ash/wm/workspace/workspace_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/client/activation_change_observer.h" 12 #include "ui/aura/client/activation_change_observer.h"
13 13
14 namespace aura { 14 namespace aura {
15 class Window; 15 class Window;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 namespace internal { 19 namespace internal {
20 20
21 class BaseWorkspaceManager; 21 class BaseWorkspaceManager;
22 class ShelfLayoutManager; 22 class ShelfLayoutManager;
23 class WorkspaceControllerTestHelper; 23 class WorkspaceControllerTestHelper;
24 class WorkspaceEventFilter; 24 class WorkspaceEventHandler;
25 class WorkspaceLayoutManager; 25 class WorkspaceLayoutManager;
26 26
27 // WorkspaceController acts as a central place that ties together all the 27 // WorkspaceController acts as a central place that ties together all the
28 // various workspace pieces. 28 // various workspace pieces.
29 class ASH_EXPORT WorkspaceController 29 class ASH_EXPORT WorkspaceController
30 : public aura::client::ActivationChangeObserver { 30 : public aura::client::ActivationChangeObserver {
31 public: 31 public:
32 explicit WorkspaceController(aura::Window* viewport); 32 explicit WorkspaceController(aura::Window* viewport);
33 virtual ~WorkspaceController(); 33 virtual ~WorkspaceController();
34 34
(...skipping 18 matching lines...) Expand all
53 virtual void OnWindowActivated(aura::Window* window, 53 virtual void OnWindowActivated(aura::Window* window,
54 aura::Window* old_active) OVERRIDE; 54 aura::Window* old_active) OVERRIDE;
55 55
56 private: 56 private:
57 friend class WorkspaceControllerTestHelper; 57 friend class WorkspaceControllerTestHelper;
58 58
59 aura::Window* viewport_; 59 aura::Window* viewport_;
60 60
61 scoped_ptr<BaseWorkspaceManager> workspace_manager_; 61 scoped_ptr<BaseWorkspaceManager> workspace_manager_;
62 62
63 // TODO(sky): remove |layout_manager_| and |event_filter_| when Workspace2 63 // TODO(sky): remove |layout_manager_| and |event_handler_| when Workspace2
64 // is the default. 64 // is the default.
65 65
66 // Owned by the window its attached to. 66 // Owned by the window its attached to.
67 WorkspaceLayoutManager* layout_manager_; 67 WorkspaceLayoutManager* layout_manager_;
68 68
69 // Owned by |viewport_|. 69 // Owned by |viewport_|.
70 WorkspaceEventFilter* event_filter_; 70 WorkspaceEventHandler* event_handler_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); 72 DISALLOW_COPY_AND_ASSIGN(WorkspaceController);
73 }; 73 };
74 74
75 } // namespace internal 75 } // namespace internal
76 } // namespace ash 76 } // namespace ash
77 77
78 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ 78 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler_unittest.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698