OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_VR_VR_SERVICE_IMPL_H_ | |
6 #define CONTENT_BROWSER_VR_VR_SERVICE_IMPL_H_ | |
7 | |
8 #include <vector> | |
9 #include "base/compiler_specific.h" | |
10 #include "content/browser/vr/vr_device_manager.h" | |
11 #include "content/common/vr_service.mojom.h" | |
12 | |
13 namespace content { | |
14 | |
15 class VRDeviceManager; | |
16 | |
17 class VRServiceImpl : public mojo::InterfaceImpl<VRService> { | |
Ken Rockot(use gerrit already)
2015/05/31 23:43:47
InterfaceImpl is deprecated, so please don't use i
| |
18 public: | |
19 static void Create(mojo::InterfaceRequest<VRService> request); | |
20 | |
21 protected: | |
22 VRServiceImpl(); | |
23 ~VRServiceImpl() override; | |
24 | |
25 private: | |
26 // Returns the VRDeviceManager singleton. | |
27 VRDeviceManager* GetDeviceManager(); | |
28 | |
29 void GetDevices(const GetDevicesCallback& callback) override; | |
30 | |
31 void GetSensorState(uint32_t index, | |
32 const GetSensorStateCallback& callback) override; | |
33 | |
34 void ResetSensor(uint32_t index) override; | |
35 | |
36 bool registered_with_device_manager_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(VRServiceImpl); | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_BROWSER_VR_VR_SERVICE_IMPL_H_ | |
OLD | NEW |