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

Side by Side Diff: components/mus/mus_app.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 | « components/mus/demo/mus_demo.cc ('k') | components/mus/mus_app.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_MUS_APP_H_ 5 #ifndef COMPONENTS_MUS_MUS_APP_H_
6 #define COMPONENTS_MUS_MUS_APP_H_ 6 #define COMPONENTS_MUS_MUS_APP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "components/mus/public/interfaces/clipboard.mojom.h" 16 #include "components/mus/public/interfaces/clipboard.mojom.h"
17 #include "components/mus/public/interfaces/display.mojom.h" 17 #include "components/mus/public/interfaces/display.mojom.h"
18 #include "components/mus/public/interfaces/gpu.mojom.h" 18 #include "components/mus/public/interfaces/gpu.mojom.h"
19 #include "components/mus/public/interfaces/gpu_service.mojom.h" 19 #include "components/mus/public/interfaces/gpu_service.mojom.h"
20 #include "components/mus/public/interfaces/user_access_manager.mojom.h" 20 #include "components/mus/public/interfaces/user_access_manager.mojom.h"
21 #include "components/mus/public/interfaces/window_manager_factory.mojom.h" 21 #include "components/mus/public/interfaces/window_manager_window_tree_factory.mo jom.h"
22 #include "components/mus/public/interfaces/window_server_test.mojom.h" 22 #include "components/mus/public/interfaces/window_server_test.mojom.h"
23 #include "components/mus/public/interfaces/window_tree.mojom.h" 23 #include "components/mus/public/interfaces/window_tree.mojom.h"
24 #include "components/mus/public/interfaces/window_tree_host.mojom.h" 24 #include "components/mus/public/interfaces/window_tree_host.mojom.h"
25 #include "components/mus/ws/platform_display_init_params.h" 25 #include "components/mus/ws/platform_display_init_params.h"
26 #include "components/mus/ws/user_id.h" 26 #include "components/mus/ws/user_id.h"
27 #include "components/mus/ws/window_server_delegate.h" 27 #include "components/mus/ws/window_server_delegate.h"
28 #include "services/shell/public/cpp/application_runner.h" 28 #include "services/shell/public/cpp/application_runner.h"
29 #include "services/shell/public/cpp/interface_factory.h" 29 #include "services/shell/public/cpp/interface_factory.h"
30 #include "services/shell/public/cpp/shell_client.h" 30 #include "services/shell/public/cpp/shell_client.h"
31 #include "services/tracing/public/cpp/tracing_impl.h" 31 #include "services/tracing/public/cpp/tracing_impl.h"
(...skipping 22 matching lines...) Expand all
54 } 54 }
55 55
56 class MusApp 56 class MusApp
57 : public shell::ShellClient, 57 : public shell::ShellClient,
58 public ws::WindowServerDelegate, 58 public ws::WindowServerDelegate,
59 public shell::InterfaceFactory<mojom::Clipboard>, 59 public shell::InterfaceFactory<mojom::Clipboard>,
60 public shell::InterfaceFactory<mojom::DisplayManager>, 60 public shell::InterfaceFactory<mojom::DisplayManager>,
61 public shell::InterfaceFactory<mojom::Gpu>, 61 public shell::InterfaceFactory<mojom::Gpu>,
62 public shell::InterfaceFactory<mojom::GpuService>, 62 public shell::InterfaceFactory<mojom::GpuService>,
63 public shell::InterfaceFactory<mojom::UserAccessManager>, 63 public shell::InterfaceFactory<mojom::UserAccessManager>,
64 public shell::InterfaceFactory<mojom::WindowManagerFactoryService>, 64 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>,
65 public shell::InterfaceFactory<mojom::WindowTreeFactory>, 65 public shell::InterfaceFactory<mojom::WindowTreeFactory>,
66 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, 66 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>,
67 public shell::InterfaceFactory<mojom::WindowServerTest> { 67 public shell::InterfaceFactory<mojom::WindowServerTest> {
68 public: 68 public:
69 MusApp(); 69 MusApp();
70 ~MusApp() override; 70 ~MusApp() override;
71 71
72 private: 72 private:
73 // Holds InterfaceRequests received before the first WindowTreeHost Display 73 // Holds InterfaceRequests received before the first WindowTreeHost Display
74 // has been established. 74 // has been established.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 mojom::GpuRequest request) override; 112 mojom::GpuRequest request) override;
113 113
114 // shell::InterfaceFactory<mojom::GpuService> implementation. 114 // shell::InterfaceFactory<mojom::GpuService> implementation.
115 void Create(shell::Connection* connection, 115 void Create(shell::Connection* connection,
116 mojom::GpuServiceRequest request) override; 116 mojom::GpuServiceRequest request) override;
117 117
118 // shell::InterfaceFactory<mojom::UserAccessManager> implementation. 118 // shell::InterfaceFactory<mojom::UserAccessManager> implementation.
119 void Create(shell::Connection* connection, 119 void Create(shell::Connection* connection,
120 mojom::UserAccessManagerRequest request) override; 120 mojom::UserAccessManagerRequest request) override;
121 121
122 // shell::InterfaceFactory<mojom::WindowManagerFactoryService> implementation. 122 // shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>
123 // implementation.
123 void Create(shell::Connection* connection, 124 void Create(shell::Connection* connection,
124 mojom::WindowManagerFactoryServiceRequest request) override; 125 mojom::WindowManagerWindowTreeFactoryRequest request) override;
125 126
126 // shell::InterfaceFactory<mojom::WindowTreeFactory>: 127 // shell::InterfaceFactory<mojom::WindowTreeFactory>:
127 void Create(shell::Connection* connection, 128 void Create(shell::Connection* connection,
128 mojom::WindowTreeFactoryRequest request) override; 129 mojom::WindowTreeFactoryRequest request) override;
129 130
130 // shell::InterfaceFactory<mojom::WindowTreeHostFactory>: 131 // shell::InterfaceFactory<mojom::WindowTreeHostFactory>:
131 void Create(shell::Connection* connection, 132 void Create(shell::Connection* connection,
132 mojom::WindowTreeHostFactoryRequest request) override; 133 mojom::WindowTreeHostFactoryRequest request) override;
133 134
134 // shell::InterfaceFactory<mojom::WindowServerTest> implementation. 135 // shell::InterfaceFactory<mojom::WindowServerTest> implementation.
(...skipping 24 matching lines...) Expand all
159 std::unique_ptr<ws::PlatformScreen> platform_screen_; 160 std::unique_ptr<ws::PlatformScreen> platform_screen_;
160 161
161 base::WeakPtrFactory<MusApp> weak_ptr_factory_; 162 base::WeakPtrFactory<MusApp> weak_ptr_factory_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(MusApp); 164 DISALLOW_COPY_AND_ASSIGN(MusApp);
164 }; 165 };
165 166
166 } // namespace mus 167 } // namespace mus
167 168
168 #endif // COMPONENTS_MUS_MUS_APP_H_ 169 #endif // COMPONENTS_MUS_MUS_APP_H_
OLDNEW
« no previous file with comments | « components/mus/demo/mus_demo.cc ('k') | components/mus/mus_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698