OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_WORKSPACE_CONTROLLER_H_ | 5 #ifndef ASH_WM_WORKSPACE_CONTROLLER_H_ |
6 #define UI_AURA_SHELL_WORKSPACE_CONTROLLER_H_ | 6 #define ASH_WM_WORKSPACE_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/launcher/launcher_model_observer.h" | 9 #include "ash/launcher/launcher_model_observer.h" |
10 #include "ash/wm/workspace/workspace_observer.h" | 10 #include "ash/wm/workspace/workspace_observer.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "ui/aura/root_window_observer.h" | 13 #include "ui/aura/root_window_observer.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ash/ash_export.h" | 15 #include "ash/ash_export.h" |
16 | 16 |
17 namespace aura { | 17 namespace aura { |
18 class Window; | 18 class Window; |
19 } | 19 } |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 class Size; | 22 class Size; |
23 } | 23 } |
24 | 24 |
25 namespace aura_shell { | 25 namespace ash { |
26 class LauncherModel; | 26 class LauncherModel; |
27 | 27 |
28 namespace internal { | 28 namespace internal { |
29 | 29 |
30 class WorkspaceManager; | 30 class WorkspaceManager; |
31 | 31 |
32 // WorkspaceControlls owns a WorkspaceManager. WorkspaceControlls bridges | 32 // WorkspaceControlls owns a WorkspaceManager. WorkspaceControlls bridges |
33 // events From RootWindowObserver translating them to WorkspaceManager, and | 33 // events From RootWindowObserver translating them to WorkspaceManager, and |
34 // a move event between Laucher and Workspace. | 34 // a move event between Laucher and Workspace. |
35 class ASH_EXPORT WorkspaceController : | 35 class ASH_EXPORT WorkspaceController : |
36 public aura::RootWindowObserver, | 36 public aura::RootWindowObserver, |
37 public aura::WindowObserver, | 37 public aura::WindowObserver, |
38 public aura_shell::internal::WorkspaceObserver, | 38 public ash::internal::WorkspaceObserver, |
39 public aura_shell::LauncherModelObserver { | 39 public ash::LauncherModelObserver { |
40 public: | 40 public: |
41 explicit WorkspaceController(aura::Window* workspace_viewport); | 41 explicit WorkspaceController(aura::Window* workspace_viewport); |
42 virtual ~WorkspaceController(); | 42 virtual ~WorkspaceController(); |
43 | 43 |
44 void ToggleOverview(); | 44 void ToggleOverview(); |
45 | 45 |
46 void SetLauncherModel(LauncherModel* launcher_model); | 46 void SetLauncherModel(LauncherModel* launcher_model); |
47 | 47 |
48 // Returns the workspace manager that this controler owns. | 48 // Returns the workspace manager that this controler owns. |
49 WorkspaceManager* workspace_manager() { | 49 WorkspaceManager* workspace_manager() { |
(...skipping 29 matching lines...) Expand all Loading... |
79 LauncherModel* launcher_model_; | 79 LauncherModel* launcher_model_; |
80 | 80 |
81 // True while the controller is moving window either on workspace or launcher. | 81 // True while the controller is moving window either on workspace or launcher. |
82 // Used to prevent infinite recursive call between the workspace and launcher. | 82 // Used to prevent infinite recursive call between the workspace and launcher. |
83 bool ignore_move_event_; | 83 bool ignore_move_event_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); | 85 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace internal | 88 } // namespace internal |
89 } // namespace aura_shell | 89 } // namespace ash |
90 | 90 |
91 #endif // UI_AURA_SHELL_WORKSPACE_CONTROLLER_H_ | 91 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ |
OLD | NEW |