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

Unified Diff: Source/modules/device_orientation/WindowDeviceOrientation.idl

Issue 189413008: Move DeviceOrientation / DeviceMotion event handlers to device_orientation module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/modules/device_orientation/WindowDeviceMotion.idl ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/device_orientation/WindowDeviceOrientation.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/device_orientation/WindowDeviceOrientation.idl
similarity index 51%
copy from Source/modules/battery/NavigatorBattery.idl
copy to Source/modules/device_orientation/WindowDeviceOrientation.idl
index 524bf238c12fc3d0cae9056d4e0dd9df8ce44c81..2f42b42a965be2b3aada61a8ff782d74e7743354 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/device_orientation/WindowDeviceOrientation.idl
@@ -3,8 +3,8 @@
// found in the LICENSE file.
[
- RuntimeEnabled=BatteryStatus,
-] partial interface Navigator {
- readonly attribute BatteryManager battery;
+ RuntimeEnabled=DeviceOrientation,
+ ImplementedAs=DOMWindowDeviceOrientation
+] partial interface Window {
+ attribute EventHandler ondeviceorientation;
};
-
« no previous file with comments | « Source/modules/device_orientation/WindowDeviceMotion.idl ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698