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

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: WmWindowMus::GetGlobals 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 60
60 mus::Window* GetWindowForContainer(mojom::Container container); 61 mus::Window* GetWindowForContainer(mojom::Container container);
61 bool WindowIsContainer(const mus::Window* window) const; 62 bool WindowIsContainer(const mus::Window* window) const;
62 63
63 WindowManager* window_manager() { return window_manager_.get(); } 64 WindowManager* window_manager() { return window_manager_.get(); }
64 65
65 mus::WindowManagerClient* window_manager_client(); 66 mus::WindowManagerClient* window_manager_client();
66 67
67 void OnAccelerator(uint32_t id, const ui::Event& event); 68 void OnAccelerator(uint32_t id, const ui::Event& event);
68 69
70 const gfx::Display& display() const { return display_; }
71
69 ShelfLayout* GetShelfLayoutManager(); 72 ShelfLayout* GetShelfLayoutManager();
70 73
71 private: 74 private:
72 explicit RootWindowController(WindowManagerApplication* app); 75 explicit RootWindowController(WindowManagerApplication* app);
73 ~RootWindowController() override; 76 ~RootWindowController() override;
74 77
75 void AddAccelerators(); 78 void AddAccelerators();
76 79
77 // WindowTreeDelegate: 80 // WindowTreeDelegate:
78 void OnEmbed(mus::Window* root) override; 81 void OnEmbed(mus::Window* root) override;
(...skipping 11 matching lines...) Expand all
90 WindowManagerApplication* app_; 93 WindowManagerApplication* app_;
91 mus::Window* root_; 94 mus::Window* root_;
92 int window_count_; 95 int window_count_;
93 96
94 std::unique_ptr<WindowManager> window_manager_; 97 std::unique_ptr<WindowManager> window_manager_;
95 98
96 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; 99 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_;
97 100
98 std::unique_ptr<ShadowController> shadow_controller_; 101 std::unique_ptr<ShadowController> shadow_controller_;
99 102
100 mus::mojom::DisplayPtr display_; 103 gfx::Display display_;
101 104
102 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 105 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
103 }; 106 };
104 107
105 } // namespace wm 108 } // namespace wm
106 } // namespace mash 109 } // namespace mash
107 110
108 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 111 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698