-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=69451 Source/WebCore: Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23 Reviewed by Darin Fisher. Plumb gamepad data access through platform. Test: gamepad/gamepad-polling-access.html * WebCore.gypi: * page/Navigator.cpp: (WebCore::Navigator::webkitGamepads): * page/Navigator.h: * platform/Gamepads.h: Added. * platform/chromium/GamepadsChromium.cpp: Added. (WebCore::sampleGamepads): * platform/chromium/PlatformSupport.h: Source/WebKit/chromium: Add implementation of sampleGamepads in Chromium platform. Retrieves gamepad data from Chromium port and converts to DOM format, i.e. GamepadList. Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23 Reviewed by Darin Fisher. * src/PlatformSupport.cpp: (WebCore::PlatformSupport::sampleGamepads): Tools: Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23 Reviewed by Darin Fisher. Add a 'gamepadController' to Chromium DRT. Allows for setting of mock gamepad data that will be retrieved when JS code pulls via API access. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/chromium/GamepadController.cpp: Added. (GamepadController::GamepadController): (GamepadController::bindToJavascript): (GamepadController::reset): (GamepadController::connect): (GamepadController::disconnect): (GamepadController::setId): (GamepadController::setButtonCount): (GamepadController::setButtonData): (GamepadController::setAxisCount): (GamepadController::setAxisData): (GamepadController::fallbackCallback): * DumpRenderTree/chromium/GamepadController.h: Added. * DumpRenderTree/chromium/TestShell.cpp: (TestShell::TestShell): (TestShell::resetTestController): (TestShell::bindJSObjectsToWindow): * DumpRenderTree/chromium/TestShell.h: (TestShell::gamepadController): LayoutTests: Patch by Scott Graham <scottmg@chromium.org> on 2011-11-23 Reviewed by Darin Fisher. * fast/dom/script-tests/prototype-inheritance.js: Exclude gamepadController from enumeration. * gamepad/gamepad-polling-access-expected.txt: Added. * gamepad/gamepad-polling-access.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@101065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
41c50b88