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

Unified Diff: Source/modules/vr/PositionSensorVRDevice.idl

Issue 848053002: Adding WebVR interface to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback from philipj@opera.com, rebased Created 5 years, 10 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: Source/modules/vr/PositionSensorVRDevice.idl
diff --git a/Source/core/dom/Iterator.idl b/Source/modules/vr/PositionSensorVRDevice.idl
similarity index 54%
copy from Source/core/dom/Iterator.idl
copy to Source/modules/vr/PositionSensorVRDevice.idl
index 87027c5bdac9d26ac0404df9ed40c057f021eb1b..e556c7d82cb2b8335dcc9183b954178cc8be0417 100644
--- a/Source/core/dom/Iterator.idl
+++ b/Source/modules/vr/PositionSensorVRDevice.idl
@@ -3,9 +3,9 @@
// found in the LICENSE file.
[
- Iterable,
+ RuntimeEnabled=VRDevice,
GarbageCollected,
- NoInterfaceObject,
-] interface Iterator {
- [CallWith=ScriptState, RaisesException] any next(optional any value);
+] interface PositionSensorVRDevice : VRDevice {
+ VRPositionState getState(optional double timeOffset);
+ void resetSensor();
};

Powered by Google App Engine
This is Rietveld 408576698