| OLD | NEW |
| 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/battery/battery_monitor.mojom.h" | 9 #include "device/battery/battery_monitor.mojom.h" |
| 10 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" | 10 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class DeviceService | 46 class DeviceService |
| 47 : public service_manager::Service, | 47 : public service_manager::Service, |
| 48 public service_manager::InterfaceFactory<mojom::Fingerprint>, | 48 public service_manager::InterfaceFactory<mojom::Fingerprint>, |
| 49 public service_manager::InterfaceFactory<mojom::LightSensor>, | 49 public service_manager::InterfaceFactory<mojom::LightSensor>, |
| 50 public service_manager::InterfaceFactory<mojom::MotionSensor>, | 50 public service_manager::InterfaceFactory<mojom::MotionSensor>, |
| 51 public service_manager::InterfaceFactory<mojom::OrientationSensor>, | 51 public service_manager::InterfaceFactory<mojom::OrientationSensor>, |
| 52 public service_manager::InterfaceFactory< | 52 public service_manager::InterfaceFactory< |
| 53 mojom::OrientationAbsoluteSensor>, | 53 mojom::OrientationAbsoluteSensor>, |
| 54 #if !defined(OS_ANDROID) | 54 #if !defined(OS_ANDROID) |
| 55 // On Android the Device Service provides BatteryMonitor via Java. | 55 // On Android the Device Service provides BatteryMonitor via Java. |
| 56 public service_manager::InterfaceFactory<BatteryMonitor>, | 56 public service_manager::InterfaceFactory<mojom::BatteryMonitor>, |
| 57 // On Android the Device Service provides VibrationManager via Java. | 57 // On Android the Device Service provides VibrationManager via Java. |
| 58 public service_manager::InterfaceFactory<mojom::VibrationManager>, | 58 public service_manager::InterfaceFactory<mojom::VibrationManager>, |
| 59 #endif | 59 #endif |
| 60 public service_manager::InterfaceFactory<mojom::PowerMonitor>, | 60 public service_manager::InterfaceFactory<mojom::PowerMonitor>, |
| 61 public service_manager::InterfaceFactory< | 61 public service_manager::InterfaceFactory< |
| 62 mojom::ScreenOrientationListener>, | 62 mojom::ScreenOrientationListener>, |
| 63 public service_manager::InterfaceFactory<mojom::TimeZoneMonitor>, | 63 public service_manager::InterfaceFactory<mojom::TimeZoneMonitor>, |
| 64 public service_manager::InterfaceFactory<mojom::WakeLockContextProvider> { | 64 public service_manager::InterfaceFactory<mojom::WakeLockContextProvider> { |
| 65 public: | 65 public: |
| 66 #if defined(OS_ANDROID) | 66 #if defined(OS_ANDROID) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 94 | 94 |
| 95 // InterfaceFactory<mojom::OrientationSensor>: | 95 // InterfaceFactory<mojom::OrientationSensor>: |
| 96 void Create(const service_manager::Identity& remote_identity, | 96 void Create(const service_manager::Identity& remote_identity, |
| 97 mojom::OrientationSensorRequest request) override; | 97 mojom::OrientationSensorRequest request) override; |
| 98 | 98 |
| 99 // InterfaceFactory<mojom::OrientationAbsolueSensor>: | 99 // InterfaceFactory<mojom::OrientationAbsolueSensor>: |
| 100 void Create(const service_manager::Identity& remote_identity, | 100 void Create(const service_manager::Identity& remote_identity, |
| 101 mojom::OrientationAbsoluteSensorRequest request) override; | 101 mojom::OrientationAbsoluteSensorRequest request) override; |
| 102 | 102 |
| 103 #if !defined(OS_ANDROID) | 103 #if !defined(OS_ANDROID) |
| 104 // InterfaceFactory<BatteryMonitor>: | 104 // InterfaceFactory<mojom::BatteryMonitor>: |
| 105 void Create(const service_manager::Identity& remote_identity, | 105 void Create(const service_manager::Identity& remote_identity, |
| 106 BatteryMonitorRequest request) override; | 106 mojom::BatteryMonitorRequest request) override; |
| 107 // InterfaceFactory<mojom::VibrationManager>: | 107 // InterfaceFactory<mojom::VibrationManager>: |
| 108 void Create(const service_manager::Identity& remote_identity, | 108 void Create(const service_manager::Identity& remote_identity, |
| 109 mojom::VibrationManagerRequest request) override; | 109 mojom::VibrationManagerRequest request) override; |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 // InterfaceFactory<mojom::PowerMonitor>: | 112 // InterfaceFactory<mojom::PowerMonitor>: |
| 113 void Create(const service_manager::Identity& remote_identity, | 113 void Create(const service_manager::Identity& remote_identity, |
| 114 mojom::PowerMonitorRequest request) override; | 114 mojom::PowerMonitorRequest request) override; |
| 115 | 115 |
| 116 // InterfaceFactory<mojom::ScreenOrientationListener>: | 116 // InterfaceFactory<mojom::ScreenOrientationListener>: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 145 WakeLockContextCallback wake_lock_context_callback_; | 145 WakeLockContextCallback wake_lock_context_callback_; |
| 146 | 146 |
| 147 service_manager::BinderRegistry registry_; | 147 service_manager::BinderRegistry registry_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(DeviceService); | 149 DISALLOW_COPY_AND_ASSIGN(DeviceService); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace device | 152 } // namespace device |
| 153 | 153 |
| 154 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ | 154 #endif // SERVICES_DEVICE_DEVICE_SERVICE_H_ |
| OLD | NEW |