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

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: Tweak 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
Index: Source/modules/gamepad/Gamepad.cpp
diff --git a/Source/modules/gamepad/Gamepad.cpp b/Source/modules/gamepad/Gamepad.cpp
index 499e97bf49bc618b51fdb1a908a2d8f4385be5f9..6d547adda0829851026bc4a8c8f8b0e50c883906 100644
--- a/Source/modules/gamepad/Gamepad.cpp
+++ b/Source/modules/gamepad/Gamepad.cpp
@@ -28,20 +28,6 @@
namespace WebCore {
-Gamepad::Gamepad()
- : m_index(0)
- , m_timestamp(0)
-{
- ScriptWrappable::init(this);
-}
-
-void Gamepad::setAxes(unsigned count, const float* data)
-{
- m_axes.resize(count);
- if (count)
- std::copy(data, data + count, m_axes.begin());
-}
-
void Gamepad::setButtons(unsigned count, const blink::WebGamepadButton* data)
{
if (m_buttons.size() != count) {
@@ -55,13 +41,4 @@ void Gamepad::setButtons(unsigned count, const blink::WebGamepadButton* data)
}
}
-void Gamepad::trace(Visitor* visitor)
-{
- visitor->trace(m_buttons);
-}
-
-Gamepad::~Gamepad()
-{
-}
-
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698