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

Unified Diff: Source/modules/gamepad/Gamepad.cpp

Issue 195993007: Factor out GamepadCommon base class from Gamepad and WebKitGamepad (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove excess header 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/Gamepad.h ('k') | Source/modules/gamepad/GamepadCommon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/Gamepad.cpp
diff --git a/Source/modules/gamepad/Gamepad.cpp b/Source/modules/gamepad/Gamepad.cpp
index 499e97bf49bc618b51fdb1a908a2d8f4385be5f9..f2950ec55660657c4635d56fa0c0f64ee3058212 100644
--- a/Source/modules/gamepad/Gamepad.cpp
+++ b/Source/modules/gamepad/Gamepad.cpp
@@ -29,17 +29,12 @@
namespace WebCore {
Gamepad::Gamepad()
- : m_index(0)
- , m_timestamp(0)
{
ScriptWrappable::init(this);
}
-void Gamepad::setAxes(unsigned count, const float* data)
+Gamepad::~Gamepad()
{
- m_axes.resize(count);
- if (count)
- std::copy(data, data + count, m_axes.begin());
}
void Gamepad::setButtons(unsigned count, const blink::WebGamepadButton* data)
@@ -60,8 +55,4 @@ void Gamepad::trace(Visitor* visitor)
visitor->trace(m_buttons);
}
-Gamepad::~Gamepad()
-{
-}
-
} // namespace WebCore
« no previous file with comments | « Source/modules/gamepad/Gamepad.h ('k') | Source/modules/gamepad/GamepadCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698