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

Unified Diff: third_party/WebKit/Source/modules/vr/VRController.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
Index: third_party/WebKit/Source/modules/vr/VRController.h
diff --git a/third_party/WebKit/Source/modules/vr/VRController.h b/third_party/WebKit/Source/modules/vr/VRController.h
index a08163b76922f71ece6e9b593af69ba50c72ba13..112018e86654214e8ccd55dcdcd2927c9bc6fa8f 100644
--- a/third_party/WebKit/Source/modules/vr/VRController.h
+++ b/third_party/WebKit/Source/modules/vr/VRController.h
@@ -5,7 +5,6 @@
#ifndef VRController_h
#define VRController_h
-
#include "core/frame/LocalFrameLifecycleObserver.h"
#include "modules/ModulesExport.h"
#include "platform/Supplementable.h"
@@ -28,11 +27,11 @@ class MODULES_EXPORT VRController final
public:
virtual ~VRController();
- void getDevices(std::unique_ptr<VRGetDevicesCallback>);
+ void getDisplays(std::unique_ptr<VRGetDevicesCallback>);
- mojom::blink::VRSensorStatePtr getSensorState(unsigned index);
+ mojom::blink::VRPosePtr getPose(unsigned index);
- void resetSensor(unsigned index);
+ void resetPose(unsigned index);
static void provideTo(LocalFrame&, ServiceRegistry*);
static VRController* from(LocalFrame&);
@@ -47,7 +46,7 @@ private:
void willDetachFrameHost() override;
// Binding callbacks.
- void OnGetDevices(mojo::WTFArray<mojom::blink::VRDeviceInfoPtr>);
+ void onGetDisplays(mojo::WTFArray<mojom::blink::VRDisplayPtr>);
Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks;
mojom::blink::VRServicePtr m_service;
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.cpp ('k') | third_party/WebKit/Source/modules/vr/VRController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698