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

Unified Diff: trunk/Source/modules/gamepad/GamepadCommon.h

Issue 296723005: Revert 174428 "Update Gamepad.axes / GamepadButton.value to matc..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: 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 | « trunk/Source/modules/gamepad/GamepadButton.idl ('k') | trunk/Source/modules/gamepad/GamepadCommon.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/modules/gamepad/GamepadCommon.h
===================================================================
--- trunk/Source/modules/gamepad/GamepadCommon.h (revision 174432)
+++ trunk/Source/modules/gamepad/GamepadCommon.h (working copy)
@@ -36,7 +36,7 @@
public:
GamepadCommon();
~GamepadCommon();
- typedef Vector<double> DoubleVector;
+ typedef Vector<float> FloatVector;
const String& id() const { return m_id; }
void setId(const String& id) { m_id = id; }
@@ -53,8 +53,8 @@
const String& mapping() const { return m_mapping; }
void setMapping(const String& val) { m_mapping = val; }
- const DoubleVector& axes() const { return m_axes; }
- void setAxes(unsigned count, const double* data);
+ const FloatVector& axes() const { return m_axes; }
+ void setAxes(unsigned count, const float* data);
protected:
String m_id;
@@ -62,7 +62,7 @@
bool m_connected;
unsigned long long m_timestamp;
String m_mapping;
- DoubleVector m_axes;
+ FloatVector m_axes;
};
} // namespace WebCore
« no previous file with comments | « trunk/Source/modules/gamepad/GamepadButton.idl ('k') | trunk/Source/modules/gamepad/GamepadCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698