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

Side by Side Diff: content/browser/vr/vr_service_impl.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to use Mojo as requested by eng review Created 5 years, 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698