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

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

Issue 280393004: Update Gamepad.axes / GamepadButton.value to match the latest specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back #ifdefs Created 6 years, 7 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/Gamepad.idl ('k') | Source/modules/gamepad/GamepadButton.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadButton.h
diff --git a/Source/modules/gamepad/GamepadButton.h b/Source/modules/gamepad/GamepadButton.h
index 59392d24bacfc41d437f0a0ac92f8bff4b2284ef..422cf1df858b94a0ae6eab9d8502600a19965b45 100644
--- a/Source/modules/gamepad/GamepadButton.h
+++ b/Source/modules/gamepad/GamepadButton.h
@@ -17,8 +17,8 @@ public:
static GamepadButton* create();
~GamepadButton();
- float value() const { return m_value; }
- void setValue(float val) { m_value = val; }
+ double value() const { return m_value; }
+ void setValue(double val) { m_value = val; }
bool pressed() const { return m_pressed; }
void setPressed(bool val) { m_pressed = val; }
@@ -27,7 +27,7 @@ public:
private:
GamepadButton();
- float m_value;
+ double m_value;
bool m_pressed;
};
« no previous file with comments | « Source/modules/gamepad/Gamepad.idl ('k') | Source/modules/gamepad/GamepadButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698