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

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

Issue 1841803002: Cleanup WorkspaceController and WorkspaceLayoutManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check if the container is kShellWindowId_DefaultContainer instead. 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_layout_manager.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"
(...skipping 14 matching lines...) Expand all
25 // WorkspaceController acts as a central place that ties together all the 25 // WorkspaceController acts as a central place that ties together all the
26 // various workspace pieces. 26 // various workspace pieces.
27 class ASH_EXPORT WorkspaceController { 27 class ASH_EXPORT WorkspaceController {
28 public: 28 public:
29 explicit WorkspaceController(aura::Window* viewport); 29 explicit WorkspaceController(aura::Window* viewport);
30 virtual ~WorkspaceController(); 30 virtual ~WorkspaceController();
31 31
32 // Returns the current window state. 32 // Returns the current window state.
33 WorkspaceWindowState GetWindowState() const; 33 WorkspaceWindowState GetWindowState() const;
34 34
35 void SetShelf(ShelfLayoutManager* shelf); 35 void set_shelf(ShelfLayoutManager* shelf) { shelf_ = shelf; }
36 36
37 // Starts the animation that occurs on first login. 37 // Starts the animation that occurs on first login.
38 void DoInitialAnimation(); 38 void DoInitialAnimation();
39 39
40 // Add a delegate which adds a backdrop behind the top window of the default 40 // Add a delegate which adds a backdrop behind the top window of the default
41 // workspace. 41 // workspace.
42 void SetMaximizeBackdropDelegate( 42 void SetMaximizeBackdropDelegate(
43 std::unique_ptr<WorkspaceLayoutManagerDelegate> delegate); 43 std::unique_ptr<WorkspaceLayoutManagerDelegate> delegate);
44 44
45 WorkspaceLayoutManager* layout_manager() { return layout_manager_; } 45 WorkspaceLayoutManager* layout_manager() { return layout_manager_; }
46 46
47 private: 47 private:
48 friend class WorkspaceControllerTestHelper; 48 friend class WorkspaceControllerTestHelper;
49 49
50 aura::Window* viewport_; 50 aura::Window* viewport_;
51 51
52 ShelfLayoutManager* shelf_; 52 ShelfLayoutManager* shelf_;
53 std::unique_ptr<WorkspaceEventHandler> event_handler_; 53 std::unique_ptr<WorkspaceEventHandler> event_handler_;
54 WorkspaceLayoutManager* layout_manager_; 54 WorkspaceLayoutManager* layout_manager_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); 56 DISALLOW_COPY_AND_ASSIGN(WorkspaceController);
57 }; 57 };
58 58
59 } // namespace ash 59 } // namespace ash
60 60
61 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ 61 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | ash/wm/workspace_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698