| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/wm/workspace/workspace_types.h" | 11 #include "ash/common/wm/workspace/workspace_types.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.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 class ShelfLayoutManager; | 19 class ShelfLayoutManager; |
| 20 class WorkspaceControllerTestHelper; | 20 class WorkspaceControllerTestHelper; |
| 21 class WorkspaceEventHandler; | 21 class WorkspaceEventHandler; |
| 22 class WorkspaceLayoutManager; | 22 class WorkspaceLayoutManager; |
| 23 class WorkspaceLayoutManagerBackdropDelegate; | 23 class WorkspaceLayoutManagerBackdropDelegate; |
| 24 | 24 |
| 25 namespace wm { | |
| 26 class WorkspaceLayoutManagerDelegate; | |
| 27 } | |
| 28 | |
| 29 // WorkspaceController acts as a central place that ties together all the | 25 // WorkspaceController acts as a central place that ties together all the |
| 30 // various workspace pieces. | 26 // various workspace pieces. |
| 31 class ASH_EXPORT WorkspaceController { | 27 class ASH_EXPORT WorkspaceController { |
| 32 public: | 28 public: |
| 33 WorkspaceController( | 29 explicit WorkspaceController(aura::Window* viewport); |
| 34 aura::Window* viewport, | |
| 35 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate); | |
| 36 virtual ~WorkspaceController(); | 30 virtual ~WorkspaceController(); |
| 37 | 31 |
| 38 // Returns the current window state. | 32 // Returns the current window state. |
| 39 wm::WorkspaceWindowState GetWindowState() const; | 33 wm::WorkspaceWindowState GetWindowState() const; |
| 40 | 34 |
| 41 void SetShelf(ShelfLayoutManager* shelf); | 35 void SetShelf(ShelfLayoutManager* shelf); |
| 42 | 36 |
| 43 // Starts the animation that occurs on first login. | 37 // Starts the animation that occurs on first login. |
| 44 void DoInitialAnimation(); | 38 void DoInitialAnimation(); |
| 45 | 39 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 | 54 |
| 61 // Owned by |viewport_|. | 55 // Owned by |viewport_|. |
| 62 WorkspaceLayoutManager* layout_manager_; | 56 WorkspaceLayoutManager* layout_manager_; |
| 63 | 57 |
| 64 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); | 58 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); |
| 65 }; | 59 }; |
| 66 | 60 |
| 67 } // namespace ash | 61 } // namespace ash |
| 68 | 62 |
| 69 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ | 63 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ |
| OLD | NEW |