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

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
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 BackgroundLayout; 26 class BackgroundLayout;
(...skipping 14 matching lines...) Expand all
41 static RootWindowController* CreateUsingWindowTreeHost( 41 static RootWindowController* CreateUsingWindowTreeHost(
42 WindowManagerApplication* app); 42 WindowManagerApplication* app);
43 static RootWindowController* CreateFromDisplay( 43 static RootWindowController* CreateFromDisplay(
44 WindowManagerApplication* app, 44 WindowManagerApplication* app,
45 mus::mojom::DisplayPtr display, 45 mus::mojom::DisplayPtr display,
46 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); 46 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request);
47 47
48 // Deletes this. 48 // Deletes this.
49 void Destroy(); 49 void Destroy();
50 50
51 mojo::Shell* GetShell(); 51 mojo::Connector* GetConnector();
52 52
53 mus::Window* root() { return root_; } 53 mus::Window* root() { return root_; }
54 54
55 int window_count() { return window_count_; } 55 int window_count() { return window_count_; }
56 void IncrementWindowCount() { ++window_count_; } 56 void IncrementWindowCount() { ++window_count_; }
57 57
58 mus::Window* GetWindowForContainer(mojom::Container container); 58 mus::Window* GetWindowForContainer(mojom::Container container);
59 mus::Window* GetWindowById(mus::Id id); 59 mus::Window* GetWindowById(mus::Id id);
60 bool WindowIsContainer(const mus::Window* window) const; 60 bool WindowIsContainer(const mus::Window* window) const;
61 61
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 mus::mojom::DisplayPtr display_; 101 mus::mojom::DisplayPtr display_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 103 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
104 }; 104 };
105 105
106 } // namespace wm 106 } // namespace wm
107 } // namespace mash 107 } // namespace mash
108 108
109 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 109 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698