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

Unified Diff: Source/modules/gamepad/GamepadEvent.idl

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/gamepad/GamepadEvent.idl
diff --git a/Source/modules/serviceworkers/NavigatorServiceWorker.idl b/Source/modules/gamepad/GamepadEvent.idl
similarity index 57%
copy from Source/modules/serviceworkers/NavigatorServiceWorker.idl
copy to Source/modules/gamepad/GamepadEvent.idl
index 1f5335479cf79598fd1ce37f85c492eca124fe71..718226e24997bc9cda7d826c90c63f79accceaf1 100644
--- a/Source/modules/serviceworkers/NavigatorServiceWorker.idl
+++ b/Source/modules/gamepad/GamepadEvent.idl
@@ -3,7 +3,7 @@
// found in the LICENSE file.
[
- RuntimeEnabled=ServiceWorker,
-] partial interface Navigator {
- readonly attribute ServiceWorkerContainer serviceWorker;
+ EventConstructor,
+] interface GamepadEvent : Event {
+ [InitializedByEventConstructor] readonly attribute Gamepad gamepad;
};

Powered by Google App Engine
This is Rietveld 408576698