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

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

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/GamepadButton.cpp ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadButton.idl
diff --git a/Source/modules/battery/NavigatorBattery.idl b/Source/modules/gamepad/GamepadButton.idl
similarity index 52%
copy from Source/modules/battery/NavigatorBattery.idl
copy to Source/modules/gamepad/GamepadButton.idl
index 524bf238c12fc3d0cae9056d4e0dd9df8ce44c81..40561191e3a49fafbcde1e638dc61ef9774ee600 100644
--- a/Source/modules/battery/NavigatorBattery.idl
+++ b/Source/modules/gamepad/GamepadButton.idl
@@ -3,8 +3,9 @@
// found in the LICENSE file.
[
- RuntimeEnabled=BatteryStatus,
-] partial interface Navigator {
- readonly attribute BatteryManager battery;
+ NoInterfaceObject,
+ WillBeGarbageCollected,
+] interface GamepadButton {
+ readonly attribute boolean pressed;
+ readonly attribute float value;
};
-
« no previous file with comments | « Source/modules/gamepad/GamepadButton.cpp ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698