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

Unified Diff: Source/modules/device_orientation/WindowDeviceMotion.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
Index: Source/modules/device_orientation/WindowDeviceMotion.idl
diff --git a/Source/modules/serviceworkers/FetchEvent.idl b/Source/modules/device_orientation/WindowDeviceMotion.idl
similarity index 54%
copy from Source/modules/serviceworkers/FetchEvent.idl
copy to Source/modules/device_orientation/WindowDeviceMotion.idl
index 240957229cda92fba2cb38aa75cec83b9f8cfc74..163f2be9f4a411dd78f409ce8d6609516a6efcab 100644
--- a/Source/modules/serviceworkers/FetchEvent.idl
+++ b/Source/modules/device_orientation/WindowDeviceMotion.idl
@@ -3,8 +3,8 @@
// found in the LICENSE file.
[
- RuntimeEnabled=ServiceWorker,
- GlobalContext=ServiceWorkerGlobalScope,
-] interface FetchEvent : Event {
- void respondWith(any value);
+ RuntimeEnabled=DeviceMotion,
+ ImplementedAs=DOMWindowDeviceMotion
+] partial interface Window {
+ attribute EventHandler ondevicemotion;
};

Powered by Google App Engine
This is Rietveld 408576698