Move gamepad to Modules/ (+ some cleanup)
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Nov 2011 20:51:42 +0000 (20:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Nov 2011 20:51:42 +0000 (20:51 +0000)
commit42be1e86746f08a0e1845cf0c87a0578cdcc2a20
tree590b34223368d9e713f98a29b2d306bd2e1a09da
parent08f59d28865d88051de01c8c23201fe00a1030db
Move gamepad to Modules/ (+ some cleanup)
https://bugs.webkit.org/show_bug.cgi?id=72785

Patch by Scott Graham <scottmg@chromium.org> on 2011-11-19
Reviewed by Adam Barth.

Source/WebCore:

Move main files from page/ to Modules/gamepad/. #include guard the
gamepad header inclusions in Navigator.cpp to avoid including for
ports that do not enable GAMEPAD.

* Modules/gamepad/Gamepad.cpp: Renamed from Source/WebCore/page/Gamepad.cpp.
(WebCore::Gamepad::Gamepad):
(WebCore::Gamepad::axes):
(WebCore::Gamepad::buttons):
(WebCore::Gamepad::~Gamepad):
* Modules/gamepad/Gamepad.h: Renamed from Source/WebCore/page/Gamepad.h.
* Modules/gamepad/Gamepad.idl: Renamed from Source/WebCore/page/Gamepad.idl.
* Modules/gamepad/GamepadList.cpp: Renamed from Source/WebCore/page/GamepadList.cpp.
(WebCore::GamepadList::~GamepadList):
(WebCore::GamepadList::set):
(WebCore::GamepadList::length):
(WebCore::GamepadList::item):
* Modules/gamepad/GamepadList.h: Renamed from Source/WebCore/page/GamepadList.h.
(WebCore::GamepadList::create):
(WebCore::GamepadList::GamepadList):
* Modules/gamepad/GamepadList.idl: Renamed from Source/WebCore/page/GamepadList.idl.
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* page/Navigator.cpp:

LayoutTests:

Use standard pre/post js test harness rather than custom one.

* gamepad/gamepad-api-expected.txt:
* gamepad/gamepad-api.html:
* gamepad/gamepad-test.js: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/gamepad/gamepad-api-expected.txt
LayoutTests/gamepad/gamepad-api.html
LayoutTests/gamepad/gamepad-test.js [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/Modules/gamepad/Gamepad.cpp [moved from Source/WebCore/page/Gamepad.cpp with 100% similarity]
Source/WebCore/Modules/gamepad/Gamepad.h [moved from Source/WebCore/page/Gamepad.h with 100% similarity]
Source/WebCore/Modules/gamepad/Gamepad.idl [moved from Source/WebCore/page/Gamepad.idl with 100% similarity]
Source/WebCore/Modules/gamepad/GamepadList.cpp [moved from Source/WebCore/page/GamepadList.cpp with 100% similarity]
Source/WebCore/Modules/gamepad/GamepadList.h [moved from Source/WebCore/page/GamepadList.h with 100% similarity]
Source/WebCore/Modules/gamepad/GamepadList.idl [moved from Source/WebCore/page/GamepadList.idl with 100% similarity]
Source/WebCore/WebCore.gyp/WebCore.gyp
Source/WebCore/WebCore.gypi
Source/WebCore/page/Navigator.cpp