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

Side by Side Diff: mash/wm/root_window_controller.h

Issue 1954933002: Initial cut of ash/wm/common classes for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 4 years, 7 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 | « mash/wm/public/interfaces/container.mojom ('k') | mash/wm/root_window_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef MASH_WM_ROOT_WINDOW_CONTROLLER_H_
6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/mus/public/cpp/window_observer.h" 10 #include "components/mus/public/cpp/window_observer.h"
11 #include "components/mus/public/cpp/window_tree_delegate.h" 11 #include "components/mus/public/cpp/window_tree_delegate.h"
12 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 12 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
13 #include "components/mus/public/interfaces/window_tree_host.mojom.h" 13 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
14 #include "mash/wm/public/interfaces/container.mojom.h" 14 #include "mash/wm/public/interfaces/container.mojom.h"
15 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
16 #include "ui/gfx/display.h"
16 17
17 namespace mus { 18 namespace mus {
18 class WindowManagerClient; 19 class WindowManagerClient;
19 } 20 }
20 21
21 namespace shell { 22 namespace shell {
22 class Connector; 23 class Connector;
23 } 24 }
24 25
25 namespace ui { 26 namespace ui {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 61
61 mus::Window* GetWindowForContainer(mojom::Container container); 62 mus::Window* GetWindowForContainer(mojom::Container container);
62 bool WindowIsContainer(const mus::Window* window) const; 63 bool WindowIsContainer(const mus::Window* window) const;
63 64
64 WindowManager* window_manager() { return window_manager_.get(); } 65 WindowManager* window_manager() { return window_manager_.get(); }
65 66
66 mus::WindowManagerClient* window_manager_client(); 67 mus::WindowManagerClient* window_manager_client();
67 68
68 void OnAccelerator(uint32_t id, const ui::Event& event); 69 void OnAccelerator(uint32_t id, const ui::Event& event);
69 70
71 const gfx::Display& display() const { return display_; }
72
70 ShelfLayoutManager* GetShelfLayoutManager(); 73 ShelfLayoutManager* GetShelfLayoutManager();
71 StatusLayoutManager* GetStatusLayoutManager(); 74 StatusLayoutManager* GetStatusLayoutManager();
72 75
73 private: 76 private:
74 explicit RootWindowController(WindowManagerApplication* app); 77 explicit RootWindowController(WindowManagerApplication* app);
75 ~RootWindowController() override; 78 ~RootWindowController() override;
76 79
77 void AddAccelerators(); 80 void AddAccelerators();
78 81
79 // WindowTreeDelegate: 82 // WindowTreeDelegate:
(...skipping 12 matching lines...) Expand all
92 WindowManagerApplication* app_; 95 WindowManagerApplication* app_;
93 mus::Window* root_; 96 mus::Window* root_;
94 int window_count_; 97 int window_count_;
95 98
96 std::unique_ptr<WindowManager> window_manager_; 99 std::unique_ptr<WindowManager> window_manager_;
97 100
98 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; 101 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_;
99 102
100 std::unique_ptr<ShadowController> shadow_controller_; 103 std::unique_ptr<ShadowController> shadow_controller_;
101 104
102 mus::mojom::DisplayPtr display_; 105 gfx::Display display_;
103 106
104 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 107 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
105 }; 108 };
106 109
107 } // namespace wm 110 } // namespace wm
108 } // namespace mash 111 } // namespace mash
109 112
110 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 113 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mash/wm/public/interfaces/container.mojom ('k') | mash/wm/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698