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

Side by Side Diff: services/device/device_service.h

Issue 2896583005: Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: updated test code Created 3 years, 7 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 SERVICES_DEVICE_DEVICE_SERVICE_H_ 5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_H_
6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_ 6 #define SERVICES_DEVICE_DEVICE_SERVICE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h" 9 #include "device/generic_sensor/public/interfaces/sensor_provider.mojom.h"
10 #include "device/nfc/nfc_provider.mojom.h" 10 #include "device/nfc/nfc_provider.mojom.h"
11 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h " 11 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h "
12 #include "device/sensors/public/interfaces/motion.mojom.h"
13 #include "device/sensors/public/interfaces/orientation.mojom.h" 12 #include "device/sensors/public/interfaces/orientation.mojom.h"
14 #include "device/wake_lock/public/interfaces/wake_lock_provider.mojom.h" 13 #include "device/wake_lock/public/interfaces/wake_lock_provider.mojom.h"
15 #include "device/wake_lock/wake_lock_service_context.h" 14 #include "device/wake_lock/wake_lock_service_context.h"
16 #include "mojo/public/cpp/bindings/binding_set.h" 15 #include "mojo/public/cpp/bindings/binding_set.h"
17 #include "services/device/public/interfaces/battery_monitor.mojom.h" 16 #include "services/device/public/interfaces/battery_monitor.mojom.h"
18 #include "services/device/public/interfaces/fingerprint.mojom.h" 17 #include "services/device/public/interfaces/fingerprint.mojom.h"
19 #include "services/device/public/interfaces/power_monitor.mojom.h" 18 #include "services/device/public/interfaces/power_monitor.mojom.h"
20 #include "services/device/public/interfaces/time_zone_monitor.mojom.h" 19 #include "services/device/public/interfaces/time_zone_monitor.mojom.h"
21 #include "services/device/public/interfaces/vibration_manager.mojom.h" 20 #include "services/device/public/interfaces/vibration_manager.mojom.h"
22 #include "services/service_manager/public/cpp/binder_registry.h" 21 #include "services/service_manager/public/cpp/binder_registry.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // service_manager::Service: 67 // service_manager::Service:
69 void OnStart() override; 68 void OnStart() override;
70 void OnBindInterface(const service_manager::BindSourceInfo& source_info, 69 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
71 const std::string& interface_name, 70 const std::string& interface_name,
72 mojo::ScopedMessagePipeHandle interface_pipe) override; 71 mojo::ScopedMessagePipeHandle interface_pipe) override;
73 72
74 void BindFingerprintRequest( 73 void BindFingerprintRequest(
75 const service_manager::BindSourceInfo& source_info, 74 const service_manager::BindSourceInfo& source_info,
76 mojom::FingerprintRequest request); 75 mojom::FingerprintRequest request);
77 76
78 void BindMotionSensorRequest(
79 const service_manager::BindSourceInfo& source_info,
80 mojom::MotionSensorRequest request);
81
82 void BindOrientationSensorRequest( 77 void BindOrientationSensorRequest(
83 const service_manager::BindSourceInfo& source_info, 78 const service_manager::BindSourceInfo& source_info,
84 mojom::OrientationSensorRequest request); 79 mojom::OrientationSensorRequest request);
85 80
86 void BindOrientationAbsoluteSensorRequest( 81 void BindOrientationAbsoluteSensorRequest(
87 const service_manager::BindSourceInfo& source_info, 82 const service_manager::BindSourceInfo& source_info,
88 mojom::OrientationAbsoluteSensorRequest request); 83 mojom::OrientationAbsoluteSensorRequest request);
89 84
90 #if !defined(OS_ANDROID) 85 #if !defined(OS_ANDROID)
91 void BindBatteryMonitorRequest( 86 void BindBatteryMonitorRequest(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #endif 136 #endif
142 137
143 service_manager::BinderRegistry registry_; 138 service_manager::BinderRegistry registry_;
144 139
145 DISALLOW_COPY_AND_ASSIGN(DeviceService); 140 DISALLOW_COPY_AND_ASSIGN(DeviceService);
146 }; 141 };
147 142
148 } // namespace device 143 } // namespace device
149 144
150 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ 145 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698