OLD | NEW |
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 | 12 |
13 namespace aura { | 13 namespace aura { |
14 class Window; | 14 class Window; |
15 } | 15 } |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 namespace internal { | |
19 | |
20 class ShelfLayoutManager; | 18 class ShelfLayoutManager; |
21 class WorkspaceControllerTestHelper; | 19 class WorkspaceControllerTestHelper; |
22 class WorkspaceEventHandler; | 20 class WorkspaceEventHandler; |
23 class WorkspaceLayoutManager; | 21 class WorkspaceLayoutManager; |
24 class WorkspaceLayoutManagerDelegate; | 22 class WorkspaceLayoutManagerDelegate; |
25 | 23 |
26 // WorkspaceController acts as a central place that ties together all the | 24 // WorkspaceController acts as a central place that ties together all the |
27 // various workspace pieces. | 25 // various workspace pieces. |
28 class ASH_EXPORT WorkspaceController { | 26 class ASH_EXPORT WorkspaceController { |
29 public: | 27 public: |
(...skipping 11 matching lines...) Expand all Loading... |
41 // Add a delegate which adds a backdrop behind the top window of the default | 39 // Add a delegate which adds a backdrop behind the top window of the default |
42 // workspace. | 40 // workspace. |
43 void SetMaximizeBackdropDelegate( | 41 void SetMaximizeBackdropDelegate( |
44 scoped_ptr<WorkspaceLayoutManagerDelegate> delegate); | 42 scoped_ptr<WorkspaceLayoutManagerDelegate> delegate); |
45 | 43 |
46 private: | 44 private: |
47 friend class WorkspaceControllerTestHelper; | 45 friend class WorkspaceControllerTestHelper; |
48 | 46 |
49 aura::Window* viewport_; | 47 aura::Window* viewport_; |
50 | 48 |
51 internal::ShelfLayoutManager* shelf_; | 49 ShelfLayoutManager* shelf_; |
52 scoped_ptr<internal::WorkspaceEventHandler> event_handler_; | 50 scoped_ptr<WorkspaceEventHandler> event_handler_; |
53 internal::WorkspaceLayoutManager* layout_manager_; | 51 WorkspaceLayoutManager* layout_manager_; |
54 | 52 |
55 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); | 53 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); |
56 }; | 54 }; |
57 | 55 |
58 } // namespace internal | |
59 } // namespace ash | 56 } // namespace ash |
60 | 57 |
61 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ | 58 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ |
OLD | NEW |