| OLD | NEW |
| 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 <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "components/mus/input_devices/input_device_server.h" | 17 #include "components/mus/input_devices/input_device_server.h" |
| 18 #include "components/mus/public/interfaces/clipboard.mojom.h" | 18 #include "components/mus/public/interfaces/clipboard.mojom.h" |
| 19 #include "components/mus/public/interfaces/display.mojom.h" | 19 #include "components/mus/public/interfaces/display.mojom.h" |
| 20 #include "components/mus/public/interfaces/gpu.mojom.h" | 20 #include "components/mus/public/interfaces/gpu.mojom.h" |
| 21 #include "components/mus/public/interfaces/gpu_service.mojom.h" | 21 #include "components/mus/public/interfaces/gpu_service.mojom.h" |
| 22 #include "components/mus/public/interfaces/user_access_manager.mojom.h" | 22 #include "components/mus/public/interfaces/user_access_manager.mojom.h" |
| 23 #include "components/mus/public/interfaces/user_activity_monitor.mojom.h" |
| 23 #include "components/mus/public/interfaces/window_manager_window_tree_factory.mo
jom.h" | 24 #include "components/mus/public/interfaces/window_manager_window_tree_factory.mo
jom.h" |
| 24 #include "components/mus/public/interfaces/window_server_test.mojom.h" | 25 #include "components/mus/public/interfaces/window_server_test.mojom.h" |
| 25 #include "components/mus/public/interfaces/window_tree.mojom.h" | 26 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 26 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 27 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
| 27 #include "components/mus/ws/platform_display_init_params.h" | 28 #include "components/mus/ws/platform_display_init_params.h" |
| 28 #include "components/mus/ws/touch_controller.h" | 29 #include "components/mus/ws/touch_controller.h" |
| 29 #include "components/mus/ws/user_id.h" | 30 #include "components/mus/ws/user_id.h" |
| 30 #include "components/mus/ws/window_server_delegate.h" | 31 #include "components/mus/ws/window_server_delegate.h" |
| 31 #include "services/shell/public/cpp/application_runner.h" | 32 #include "services/shell/public/cpp/application_runner.h" |
| 32 #include "services/shell/public/cpp/interface_factory.h" | 33 #include "services/shell/public/cpp/interface_factory.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 57 } | 58 } |
| 58 | 59 |
| 59 class MusApp | 60 class MusApp |
| 60 : public shell::ShellClient, | 61 : public shell::ShellClient, |
| 61 public ws::WindowServerDelegate, | 62 public ws::WindowServerDelegate, |
| 62 public shell::InterfaceFactory<mojom::Clipboard>, | 63 public shell::InterfaceFactory<mojom::Clipboard>, |
| 63 public shell::InterfaceFactory<mojom::DisplayManager>, | 64 public shell::InterfaceFactory<mojom::DisplayManager>, |
| 64 public shell::InterfaceFactory<mojom::Gpu>, | 65 public shell::InterfaceFactory<mojom::Gpu>, |
| 65 public shell::InterfaceFactory<mojom::GpuService>, | 66 public shell::InterfaceFactory<mojom::GpuService>, |
| 66 public shell::InterfaceFactory<mojom::UserAccessManager>, | 67 public shell::InterfaceFactory<mojom::UserAccessManager>, |
| 68 public shell::InterfaceFactory<mojom::UserActivityMonitor>, |
| 67 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>, | 69 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>, |
| 68 public shell::InterfaceFactory<mojom::WindowTreeFactory>, | 70 public shell::InterfaceFactory<mojom::WindowTreeFactory>, |
| 69 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, | 71 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, |
| 70 public shell::InterfaceFactory<mojom::WindowServerTest> { | 72 public shell::InterfaceFactory<mojom::WindowServerTest> { |
| 71 public: | 73 public: |
| 72 MusApp(); | 74 MusApp(); |
| 73 ~MusApp() override; | 75 ~MusApp() override; |
| 74 | 76 |
| 75 private: | 77 private: |
| 76 // Holds InterfaceRequests received before the first WindowTreeHost Display | 78 // Holds InterfaceRequests received before the first WindowTreeHost Display |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 mojom::GpuRequest request) override; | 117 mojom::GpuRequest request) override; |
| 116 | 118 |
| 117 // shell::InterfaceFactory<mojom::GpuService> implementation. | 119 // shell::InterfaceFactory<mojom::GpuService> implementation. |
| 118 void Create(shell::Connection* connection, | 120 void Create(shell::Connection* connection, |
| 119 mojom::GpuServiceRequest request) override; | 121 mojom::GpuServiceRequest request) override; |
| 120 | 122 |
| 121 // shell::InterfaceFactory<mojom::UserAccessManager> implementation. | 123 // shell::InterfaceFactory<mojom::UserAccessManager> implementation. |
| 122 void Create(shell::Connection* connection, | 124 void Create(shell::Connection* connection, |
| 123 mojom::UserAccessManagerRequest request) override; | 125 mojom::UserAccessManagerRequest request) override; |
| 124 | 126 |
| 127 // shell::InterfaceFactory<mojom::UserActivityMonitor> implementation. |
| 128 void Create(shell::Connection* connection, |
| 129 mojom::UserActivityMonitorRequest request) override; |
| 130 |
| 125 // shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory> | 131 // shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory> |
| 126 // implementation. | 132 // implementation. |
| 127 void Create(shell::Connection* connection, | 133 void Create(shell::Connection* connection, |
| 128 mojom::WindowManagerWindowTreeFactoryRequest request) override; | 134 mojom::WindowManagerWindowTreeFactoryRequest request) override; |
| 129 | 135 |
| 130 // shell::InterfaceFactory<mojom::WindowTreeFactory>: | 136 // shell::InterfaceFactory<mojom::WindowTreeFactory>: |
| 131 void Create(shell::Connection* connection, | 137 void Create(shell::Connection* connection, |
| 132 mojom::WindowTreeFactoryRequest request) override; | 138 mojom::WindowTreeFactoryRequest request) override; |
| 133 | 139 |
| 134 // shell::InterfaceFactory<mojom::WindowTreeHostFactory>: | 140 // shell::InterfaceFactory<mojom::WindowTreeHostFactory>: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 std::unique_ptr<ws::TouchController> touch_controller_; | 173 std::unique_ptr<ws::TouchController> touch_controller_; |
| 168 | 174 |
| 169 base::WeakPtrFactory<MusApp> weak_ptr_factory_; | 175 base::WeakPtrFactory<MusApp> weak_ptr_factory_; |
| 170 | 176 |
| 171 DISALLOW_COPY_AND_ASSIGN(MusApp); | 177 DISALLOW_COPY_AND_ASSIGN(MusApp); |
| 172 }; | 178 }; |
| 173 | 179 |
| 174 } // namespace mus | 180 } // namespace mus |
| 175 | 181 |
| 176 #endif // COMPONENTS_MUS_MUS_APP_H_ | 182 #endif // COMPONENTS_MUS_MUS_APP_H_ |
| OLD | NEW |