Changeset 205470 in webkit


Ignore:
Timestamp:
Sep 5, 2016 10:57:16 PM (8 years ago)
Author:
zandobersek@gmail.com
Message:

Fix ENABLE(GAMEPAD) build errors on non-Cocoa platforms
https://bugs.webkit.org/show_bug.cgi?id=161596

Reviewed by Darin Adler.

This patch fixes build errors popping up when enabling Gamepad
feature on non-Cocoa platforms.

  • CMakeLists.txt: Add the Source/WebCore/platform/gamepad/ directory to

WebKit2_INCLUDE_DIRECTORIES. Add GamepadData.cpp, UIGamepad.cpp files to the build.

  • UIProcess/Gamepad/UIGamepadProvider.cpp: Don't include Cocoa-specific

HIDGamepadProvider.h file. Update methods for the UIGamepadProvider class.
(WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
(WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted.
(WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted.
(WebKit::UIGamepadProvider::platformGamepads): Deleted.
(WebKit::UIGamepadProvider::platformWebProcessProxyForGamepadInput): Deleted.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/CMakeLists.txt

    r205369 r205470  
    117117    "${WEBCORE_DIR}/platform/animation"
    118118    "${WEBCORE_DIR}/platform/audio"
     119    "${WEBCORE_DIR}/platform/gamepad"
    119120    "${WEBCORE_DIR}/platform/graphics"
    120121    "${WEBCORE_DIR}/platform/graphics/filters"
     
    331332    Shared/Databases/IndexedDB/IDBUtilities.cpp
    332333    Shared/Databases/IndexedDB/WebIDBResult.cpp
     334
     335    Shared/Gamepad/GamepadData.cpp
    333336
    334337    Shared/Plugins/NPIdentifierData.cpp
     
    485488    UIProcess/Downloads/DownloadProxyMap.cpp
    486489
     490    UIProcess/Gamepad/UIGamepad.cpp
    487491    UIProcess/Gamepad/UIGamepadProvider.cpp
    488492
  • trunk/Source/WebKit2/ChangeLog

    r205469 r205470  
     12016-09-05  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        Fix ENABLE(GAMEPAD) build errors on non-Cocoa platforms
     4        https://bugs.webkit.org/show_bug.cgi?id=161596
     5
     6        Reviewed by Darin Adler.
     7
     8        This patch fixes build errors popping up when enabling Gamepad
     9        feature on non-Cocoa platforms.
     10
     11        * CMakeLists.txt: Add the Source/WebCore/platform/gamepad/ directory to
     12        WebKit2_INCLUDE_DIRECTORIES. Add GamepadData.cpp, UIGamepad.cpp files to the build.
     13        * UIProcess/Gamepad/UIGamepadProvider.cpp: Don't include Cocoa-specific
     14        HIDGamepadProvider.h file. Update methods for the UIGamepadProvider class.
     15        (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
     16        (WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted.
     17        (WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted.
     18        (WebKit::UIGamepadProvider::platformGamepads): Deleted.
     19        (WebKit::UIGamepadProvider::platformWebProcessProxyForGamepadInput): Deleted.
     20
    1212016-09-05  Tim Horton  <timothy_horton@apple.com>
    222
  • trunk/Source/WebKit2/UIProcess/Gamepad/UIGamepadProvider.cpp

    r205247 r205470  
    3232#include "UIGamepad.h"
    3333#include "WebProcessPool.h"
    34 #include <WebCore/HIDGamepadProvider.h>
    3534#include <WebCore/MockGamepadProvider.h>
     35#include <WebCore/PlatformGamepad.h>
    3636#include <wtf/NeverDestroyed.h>
    3737
     
    231231}
    232232
    233 void UIGamepadProvider::platformStartMonitoringGamepads()
     233WebPageProxy* UIGamepadProvider::platformWebPageProxyForGamepadInput()
    234234{
    235235    // FIXME: Implement for other platforms
    236 }
    237 
    238 void UIGamepadProvider::platformStopMonitoringGamepads()
    239 {
    240     // FIXME: Implement for other platforms
    241 }
    242 
    243 const Vector<PlatformGamepad*>& UIGamepadProvider::platformGamepads()
    244 {
    245     static NeverDestroyed<Vector<PlatformGamepad*>> emptyGamepads;
    246     return emptyGamepads;
    247 
    248     // FIXME: Implement for other platforms
    249 }
    250 
    251 WebProcessProxy* UIGamepadProvider::platformWebProcessProxyForGamepadInput()
    252 {
    253     // FIXME: Implement for other platforms
     236    return nullptr;
    254237}
    255238
Note: See TracChangeset for help on using the changeset viewer.