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

Unified Diff: third_party/WebKit/Source/modules/sensor/AccelerometerOptions.idl

Issue 2471003002: [sensors] Accelerometer sensor bindings implementation (Closed)
Patch Set: Fix mikhail comments Created 4 years, 1 month 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/sensor/AccelerometerOptions.idl
diff --git a/third_party/WebKit/Source/modules/sensor/SensorOptions.idl b/third_party/WebKit/Source/modules/sensor/AccelerometerOptions.idl
similarity index 55%
copy from third_party/WebKit/Source/modules/sensor/SensorOptions.idl
copy to third_party/WebKit/Source/modules/sensor/AccelerometerOptions.idl
index 8ea653015a3d12a8948f19f98b72c05296e3163a..d65dc7aa2ff86eeca837337894fb08c42121f604 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorOptions.idl
+++ b/third_party/WebKit/Source/modules/sensor/AccelerometerOptions.idl
@@ -3,8 +3,8 @@
// found in the LICENSE file.
// Specification at:
-// https://w3c.github.io/sensors/#dictdef-sensoroptions
+// https://w3c.github.io/accelerometer/#accelerometer-options-dictionary
-dictionary SensorOptions {
- double? frequency;
+dictionary AccelerometerOptions : SensorOptions {
+ boolean includeGravity = true;
};

Powered by Google App Engine
This is Rietveld 408576698