Skip to content
  • commit-queue@webkit.org's avatar
    Move gamepad to Modules/ (+ some cleanup) · 963ac560
    commit-queue@webkit.org authored
    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: http://svn.webkit.org/repository/webkit/trunk@100860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    963ac560