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

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

Issue 1901773002: Removes most of aura dependencies from DefaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wm_window_positioner
Patch Set: nit and merge Created 4 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
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer_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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/wm/workspace/workspace_types.h" 11 #include "ash/wm/common/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 { 25 namespace wm {
26 class WorkspaceLayoutManagerDelegate; 26 class WorkspaceLayoutManagerDelegate;
27 } 27 }
28 28
29 // WorkspaceController acts as a central place that ties together all the 29 // WorkspaceController acts as a central place that ties together all the
30 // various workspace pieces. 30 // various workspace pieces.
31 class ASH_EXPORT WorkspaceController { 31 class ASH_EXPORT WorkspaceController {
32 public: 32 public:
33 WorkspaceController( 33 WorkspaceController(
34 aura::Window* viewport, 34 aura::Window* viewport,
35 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate); 35 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate);
36 virtual ~WorkspaceController(); 36 virtual ~WorkspaceController();
37 37
38 // Returns the current window state. 38 // Returns the current window state.
39 WorkspaceWindowState GetWindowState() const; 39 wm::WorkspaceWindowState GetWindowState() const;
40 40
41 void SetShelf(ShelfLayoutManager* shelf); 41 void SetShelf(ShelfLayoutManager* shelf);
42 42
43 // Starts the animation that occurs on first login. 43 // Starts the animation that occurs on first login.
44 void DoInitialAnimation(); 44 void DoInitialAnimation();
45 45
46 // Add a delegate which adds a backdrop behind the top window of the default 46 // Add a delegate which adds a backdrop behind the top window of the default
47 // workspace. 47 // workspace.
48 void SetMaximizeBackdropDelegate( 48 void SetMaximizeBackdropDelegate(
49 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate); 49 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> delegate);
50 50
51 WorkspaceLayoutManager* layout_manager() { return layout_manager_; } 51 WorkspaceLayoutManager* layout_manager() { return layout_manager_; }
52 52
53 private: 53 private:
54 friend class WorkspaceControllerTestHelper; 54 friend class WorkspaceControllerTestHelper;
55 55
56 aura::Window* viewport_; 56 aura::Window* viewport_;
57 57
58 ShelfLayoutManager* shelf_; 58 ShelfLayoutManager* shelf_;
59 std::unique_ptr<WorkspaceEventHandler> event_handler_; 59 std::unique_ptr<WorkspaceEventHandler> event_handler_;
60 WorkspaceLayoutManager* layout_manager_; 60 WorkspaceLayoutManager* layout_manager_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); 62 DISALLOW_COPY_AND_ASSIGN(WorkspaceController);
63 }; 63 };
64 64
65 } // namespace ash 65 } // namespace ash
66 66
67 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ 67 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer_unittest.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698