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

Side by Side Diff: services/ui/service.h

Issue 2127383003: mus: Introduce high-contrast mode in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « services/ui/public/interfaces/accessibility_manager.mojom ('k') | services/ui/service.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 SERVICES_UI_SERVICE_H_ 5 #ifndef SERVICES_UI_SERVICE_H_
6 #define SERVICES_UI_SERVICE_H_ 6 #define SERVICES_UI_SERVICE_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 "services/shell/public/cpp/application_runner.h" 17 #include "services/shell/public/cpp/application_runner.h"
18 #include "services/shell/public/cpp/interface_factory.h" 18 #include "services/shell/public/cpp/interface_factory.h"
19 #include "services/shell/public/cpp/service.h" 19 #include "services/shell/public/cpp/service.h"
20 #include "services/tracing/public/cpp/tracing_impl.h" 20 #include "services/tracing/public/cpp/tracing_impl.h"
21 #include "services/ui/input_devices/input_device_server.h" 21 #include "services/ui/input_devices/input_device_server.h"
22 #include "services/ui/public/interfaces/accessibility_manager.mojom.h"
22 #include "services/ui/public/interfaces/clipboard.mojom.h" 23 #include "services/ui/public/interfaces/clipboard.mojom.h"
23 #include "services/ui/public/interfaces/display.mojom.h" 24 #include "services/ui/public/interfaces/display.mojom.h"
24 #include "services/ui/public/interfaces/gpu.mojom.h" 25 #include "services/ui/public/interfaces/gpu.mojom.h"
25 #include "services/ui/public/interfaces/gpu_service.mojom.h" 26 #include "services/ui/public/interfaces/gpu_service.mojom.h"
26 #include "services/ui/public/interfaces/user_access_manager.mojom.h" 27 #include "services/ui/public/interfaces/user_access_manager.mojom.h"
27 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h" 28 #include "services/ui/public/interfaces/user_activity_monitor.mojom.h"
28 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom .h" 29 #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom .h"
29 #include "services/ui/public/interfaces/window_server_test.mojom.h" 30 #include "services/ui/public/interfaces/window_server_test.mojom.h"
30 #include "services/ui/public/interfaces/window_tree.mojom.h" 31 #include "services/ui/public/interfaces/window_tree.mojom.h"
31 #include "services/ui/public/interfaces/window_tree_host.mojom.h" 32 #include "services/ui/public/interfaces/window_tree_host.mojom.h"
(...skipping 25 matching lines...) Expand all
57 } 58 }
58 59
59 namespace ws { 60 namespace ws {
60 class ForwardingWindowManager; 61 class ForwardingWindowManager;
61 class WindowServer; 62 class WindowServer;
62 } 63 }
63 64
64 class Service 65 class Service
65 : public shell::Service, 66 : public shell::Service,
66 public ws::WindowServerDelegate, 67 public ws::WindowServerDelegate,
68 public shell::InterfaceFactory<mojom::AccessibilityManager>,
67 public shell::InterfaceFactory<mojom::Clipboard>, 69 public shell::InterfaceFactory<mojom::Clipboard>,
68 public shell::InterfaceFactory<mojom::DisplayManager>, 70 public shell::InterfaceFactory<mojom::DisplayManager>,
69 public shell::InterfaceFactory<mojom::Gpu>, 71 public shell::InterfaceFactory<mojom::Gpu>,
70 public shell::InterfaceFactory<mojom::GpuService>, 72 public shell::InterfaceFactory<mojom::GpuService>,
71 public shell::InterfaceFactory<mojom::UserAccessManager>, 73 public shell::InterfaceFactory<mojom::UserAccessManager>,
72 public shell::InterfaceFactory<mojom::UserActivityMonitor>, 74 public shell::InterfaceFactory<mojom::UserActivityMonitor>,
73 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>, 75 public shell::InterfaceFactory<mojom::WindowManagerWindowTreeFactory>,
74 public shell::InterfaceFactory<mojom::WindowTreeFactory>, 76 public shell::InterfaceFactory<mojom::WindowTreeFactory>,
75 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>, 77 public shell::InterfaceFactory<mojom::WindowTreeHostFactory>,
76 public shell::InterfaceFactory<mojom::WindowServerTest> { 78 public shell::InterfaceFactory<mojom::WindowServerTest> {
(...skipping 24 matching lines...) Expand all
101 const shell::Identity& identity, 103 const shell::Identity& identity,
102 uint32_t id) override; 104 uint32_t id) override;
103 bool OnConnect(shell::Connection* connection) override; 105 bool OnConnect(shell::Connection* connection) override;
104 106
105 // WindowServerDelegate: 107 // WindowServerDelegate:
106 void OnFirstDisplayReady() override; 108 void OnFirstDisplayReady() override;
107 void OnNoMoreDisplays() override; 109 void OnNoMoreDisplays() override;
108 bool IsTestConfig() const override; 110 bool IsTestConfig() const override;
109 void CreateDefaultDisplays() override; 111 void CreateDefaultDisplays() override;
110 112
113 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation.
114 void Create(shell::Connection* connection,
115 mojom::AccessibilityManagerRequest request) override;
116
111 // shell::InterfaceFactory<mojom::Clipboard> implementation. 117 // shell::InterfaceFactory<mojom::Clipboard> implementation.
112 void Create(shell::Connection* connection, 118 void Create(shell::Connection* connection,
113 mojom::ClipboardRequest request) override; 119 mojom::ClipboardRequest request) override;
114 120
115 // shell::InterfaceFactory<mojom::DisplayManager> implementation. 121 // shell::InterfaceFactory<mojom::DisplayManager> implementation.
116 void Create(shell::Connection* connection, 122 void Create(shell::Connection* connection,
117 mojom::DisplayManagerRequest request) override; 123 mojom::DisplayManagerRequest request) override;
118 124
119 // shell::InterfaceFactory<mojom::Gpu> implementation. 125 // shell::InterfaceFactory<mojom::Gpu> implementation.
120 void Create(shell::Connection* connection, 126 void Create(shell::Connection* connection,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 std::unique_ptr<ws::TouchController> touch_controller_; 183 std::unique_ptr<ws::TouchController> touch_controller_;
178 184
179 base::WeakPtrFactory<Service> weak_ptr_factory_; 185 base::WeakPtrFactory<Service> weak_ptr_factory_;
180 186
181 DISALLOW_COPY_AND_ASSIGN(Service); 187 DISALLOW_COPY_AND_ASSIGN(Service);
182 }; 188 };
183 189
184 } // namespace ui 190 } // namespace ui
185 191
186 #endif // SERVICES_UI_SERVICE_H_ 192 #endif // SERVICES_UI_SERVICE_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/accessibility_manager.mojom ('k') | services/ui/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698