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

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

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
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 namespace shell {
17 namespace mojom {
18 class Shell; 16 class Shell;
19 } 17 }
20 }
21 }
22 18
23 namespace mus { 19 namespace mus {
24 class WindowManagerClient; 20 class WindowManagerClient;
25 } 21 }
26 22
27 namespace mash { 23 namespace mash {
28 namespace wm { 24 namespace wm {
29 25
30 class BackgroundLayout; 26 class BackgroundLayout;
31 class ScreenlockLayout; 27 class ScreenlockLayout;
(...skipping 13 matching lines...) Expand all
45 static RootWindowController* CreateUsingWindowTreeHost( 41 static RootWindowController* CreateUsingWindowTreeHost(
46 WindowManagerApplication* app); 42 WindowManagerApplication* app);
47 static RootWindowController* CreateFromDisplay( 43 static RootWindowController* CreateFromDisplay(
48 WindowManagerApplication* app, 44 WindowManagerApplication* app,
49 mus::mojom::DisplayPtr display, 45 mus::mojom::DisplayPtr display,
50 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request); 46 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> client_request);
51 47
52 // Deletes this. 48 // Deletes this.
53 void Destroy(); 49 void Destroy();
54 50
55 mojo::shell::mojom::Shell* GetShell(); 51 mojo::Shell* GetShell();
56 52
57 mus::Window* root() { return root_; } 53 mus::Window* root() { return root_; }
58 54
59 int window_count() { return window_count_; } 55 int window_count() { return window_count_; }
60 void IncrementWindowCount() { ++window_count_; } 56 void IncrementWindowCount() { ++window_count_; }
61 57
62 mus::Window* GetWindowForContainer(mojom::Container container); 58 mus::Window* GetWindowForContainer(mojom::Container container);
63 mus::Window* GetWindowById(mus::Id id); 59 mus::Window* GetWindowById(mus::Id id);
64 bool WindowIsContainer(const mus::Window* window) const; 60 bool WindowIsContainer(const mus::Window* window) const;
65 61
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 100
105 mus::mojom::DisplayPtr display_; 101 mus::mojom::DisplayPtr display_;
106 102
107 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 103 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
108 }; 104 };
109 105
110 } // namespace wm 106 } // namespace wm
111 } // namespace mash 107 } // namespace mash
112 108
113 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ 109 #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