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

Unified Diff: content/browser/vr/vr_device_manager.h

Issue 1967633002: Updated VRService to match the latest Blink WebVR interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And we're back to removing all the array size checks Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/vr/vr_device.h ('k') | content/browser/vr/vr_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/vr/vr_device_manager.h
diff --git a/content/browser/vr/vr_device_manager.h b/content/browser/vr/vr_device_manager.h
index 666b51a52da0850cd31953b69c65263c46581c80..bdf2de6100ae2882e73c48bb4d0b95929af33431 100644
--- a/content/browser/vr/vr_device_manager.h
+++ b/content/browser/vr/vr_device_manager.h
@@ -32,7 +32,7 @@ class VRDeviceManager : public blink::mojom::VRService {
// Returns the VRDeviceManager singleton.
static VRDeviceManager* GetInstance();
- mojo::Array<blink::mojom::VRDeviceInfoPtr> GetVRDevices();
+ mojo::Array<blink::mojom::VRDisplayPtr> GetVRDevices();
VRDevice* GetDevice(unsigned int index);
private:
@@ -49,10 +49,10 @@ class VRDeviceManager : public blink::mojom::VRService {
void RegisterProvider(std::unique_ptr<VRDeviceProvider> provider);
// mojom::VRService implementation
- void GetDevices(const GetDevicesCallback& callback) override;
- void GetSensorState(uint32_t index,
- const GetSensorStateCallback& callback) override;
- void ResetSensor(uint32_t index) override;
+ void GetDisplays(const GetDisplaysCallback& callback) override;
+ void GetPose(uint32_t index,
+ const GetPoseCallback& callback) override;
+ void ResetPose(uint32_t index) override;
// Mojo connection error handler.
void OnConnectionError();
« no previous file with comments | « content/browser/vr/vr_device.h ('k') | content/browser/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698