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

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

Issue 200783002: Gamepad API: add support for gamepadconnected and gamepaddisconnected events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout fix: webexposed/global-constructors-listing 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/gamepad/GamepadEvent.cpp ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadEvent.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/gamepad/GamepadEvent.idl
similarity index 57%
copy from Source/modules/battery/NavigatorBattery.idl
copy to Source/modules/gamepad/GamepadEvent.idl
index 524bf238c12fc3d0cae9056d4e0dd9df8ce44c81..718226e24997bc9cda7d826c90c63f79accceaf1 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/gamepad/GamepadEvent.idl
@@ -3,8 +3,7 @@
// found in the LICENSE file.
[
- RuntimeEnabled=BatteryStatus,
-] partial interface Navigator {
- readonly attribute BatteryManager battery;
+ EventConstructor,
+] interface GamepadEvent : Event {
+ [InitializedByEventConstructor] readonly attribute Gamepad gamepad;
};
-
« no previous file with comments | « Source/modules/gamepad/GamepadEvent.cpp ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698