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

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

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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/non_client_frame_controller.cc ('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 "components/mus/public/cpp/window_observer.h" 8 #include "components/mus/public/cpp/window_observer.h"
9 #include "components/mus/public/cpp/window_tree_delegate.h" 9 #include "components/mus/public/cpp/window_tree_delegate.h"
10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
11 #include "components/mus/public/interfaces/window_tree_host.mojom.h" 11 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
12 #include "mash/wm/public/interfaces/container.mojom.h" 12 #include "mash/wm/public/interfaces/container.mojom.h"
13 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 class Shell; 16 class Connector;
17 } 17 }
18 18
19 namespace mus { 19 namespace mus {
20 class WindowManagerClient; 20 class WindowManagerClient;
21 } 21 }
22 22
23 namespace mash { 23 namespace mash {
24 namespace wm { 24 namespace wm {
25 25
26 class LayoutManager; 26 class LayoutManager;
(...skipping 11 matching lines...) Expand all
38 static RootWindowController* CreateUsingWindowTreeHost( 38 static RootWindowController* CreateUsingWindowTreeHost(
39 WindowManagerApplication* app); 39 WindowManagerApplication* app);
40 static RootWindowController* CreateFromDisplay( 40 static RootWindowController* CreateFromDisplay(
41 WindowManagerApplication* app, 41 WindowManagerApplication* app,
42 mus::mojom::DisplayPtr display, 42 mus::mojom::DisplayPtr display,
43 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); 43 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request);
44 44
45 // Deletes this. 45 // Deletes this.
46 void Destroy(); 46 void Destroy();
47 47
48 mojo::Shell* GetShell(); 48 mojo::Connector* GetConnector();
49 49
50 mus::Window* root() { return root_; } 50 mus::Window* root() { return root_; }
51 51
52 int window_count() { return window_count_; } 52 int window_count() { return window_count_; }
53 void IncrementWindowCount() { ++window_count_; } 53 void IncrementWindowCount() { ++window_count_; }
54 54
55 mus::Window* GetWindowForContainer(mojom::Container container); 55 mus::Window* GetWindowForContainer(mojom::Container container);
56 mus::Window* GetWindowById(mus::Id id); 56 mus::Window* GetWindowById(mus::Id id);
57 bool WindowIsContainer(const mus::Window* window) const; 57 bool WindowIsContainer(const mus::Window* window) const;
58 58
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 mus::mojom::DisplayPtr display_; 95 mus::mojom::DisplayPtr display_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 97 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
98 }; 98 };
99 99
100 } // namespace wm 100 } // namespace wm
101 } // namespace mash 101 } // namespace mash
102 102
103 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 103 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mash/wm/non_client_frame_controller.cc ('k') | mash/wm/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698