[webkit-changes] [WebKit/WebKit] b12e7e: [WPE] Upstream the new WPE platform API

Carlos Garcia Campos noreply at github.com
Thu Nov 30 02:17:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b12e7ed2ad3a47ab322507ebac214225f2298acc
      https://github.com/WebKit/WebKit/commit/b12e7ed2ad3a47ab322507ebac214225f2298acc
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2023-11-30 (Thu, 30 Nov 2023)

  Changed paths:
    M Source/WebCore/PlatformWPE.cmake
    M Source/WebCore/SourcesWPE.txt
    M Source/WebCore/platform/Scrollbar.cpp
    M Source/WebCore/platform/graphics/PlatformDisplay.cpp
    M Source/WebCore/platform/graphics/PlatformDisplay.h
    M Source/WebCore/platform/libwpe/PlatformKeyboardEventLibWPE.cpp
    M Source/WebKit/PlatformWPE.cmake
    M Source/WebKit/Scripts/webkit/messages.py
    M Source/WebKit/Shared/NativeWebKeyboardEvent.h
    M Source/WebKit/Shared/NativeWebMouseEvent.h
    M Source/WebKit/Shared/NativeWebTouchEvent.h
    M Source/WebKit/Shared/NativeWebWheelEvent.h
    M Source/WebKit/Shared/WebKeyboardEvent.h
    M Source/WebKit/Shared/WebPageCreationParameters.h
    M Source/WebKit/Shared/WebPageCreationParameters.serialization.in
    M Source/WebKit/Shared/WebProcessCreationParameters.h
    M Source/WebKit/Shared/WebProcessCreationParameters.serialization.in
    M Source/WebKit/Shared/libwpe/WebEventFactory.h
    A Source/WebKit/Shared/wpe/GRefPtrWPE.cpp
    A Source/WebKit/Shared/wpe/GRefPtrWPE.h
    A Source/WebKit/Shared/wpe/NativeWebKeyboardEventWPE.cpp
    A Source/WebKit/Shared/wpe/NativeWebMouseEventWPE.cpp
    A Source/WebKit/Shared/wpe/NativeWebTouchEventWPE.cpp
    A Source/WebKit/Shared/wpe/NativeWebWheelEventWPE.cpp
    A Source/WebKit/Shared/wpe/WebEventFactoryWPE.cpp
    A Source/WebKit/Shared/wpe/WebKeyboardEventWPE.cpp
    M Source/WebKit/SourcesWPE.txt
    M Source/WebKit/UIProcess/API/C/wpe/WKView.cpp
    M Source/WebKit/UIProcess/API/C/wpe/WKView.h
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in
    M Source/WebKit/UIProcess/API/wpe/APIViewClient.h
    M Source/WebKit/UIProcess/API/wpe/PageClientImpl.cpp
    M Source/WebKit/UIProcess/API/wpe/PageClientImpl.h
    M Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp
    M Source/WebKit/UIProcess/API/wpe/WPEWebView.h
    M Source/WebKit/UIProcess/API/wpe/WebKitWebViewClient.h
    M Source/WebKit/UIProcess/API/wpe/WebKitWebViewWPE.cpp
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebPageProxy.h
    M Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp
    M Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
    A Source/WebKit/UIProcess/wpe/AcceleratedBackingStoreDMABuf.cpp
    A Source/WebKit/UIProcess/wpe/AcceleratedBackingStoreDMABuf.h
    M Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp
    A Source/WebKit/WPEPlatform/CMakeLists.txt
    A Source/WebKit/WPEPlatform/config.h
    A Source/WebKit/WPEPlatform/docs/tutorial-browser.md
    A Source/WebKit/WPEPlatform/docs/tutorial-platform.md
    A Source/WebKit/WPEPlatform/docs/urlmap.js
    A Source/WebKit/WPEPlatform/docs/wpeplatform-drm.toml.in
    A Source/WebKit/WPEPlatform/docs/wpeplatform-headless.toml.in
    A Source/WebKit/WPEPlatform/docs/wpeplatform-wayland.toml.in
    A Source/WebKit/WPEPlatform/docs/wpeplatform.toml.in
    A Source/WebKit/WPEPlatform/scripts/update-keysyms-header
    A Source/WebKit/WPEPlatform/wpe-platform-uninstalled.pc.in
    A Source/WebKit/WPEPlatform/wpe-platform.pc.in
    A Source/WebKit/WPEPlatform/wpe/WPEBuffer.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEBuffer.h
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABuf.h
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEBufferDMABufFormat.h
    A Source/WebKit/WPEPlatform/wpe/WPEBufferSHM.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEBufferSHM.h
    A Source/WebKit/WPEPlatform/wpe/WPEConfig.h.in
    A Source/WebKit/WPEPlatform/wpe/WPECursorTheme.cpp
    A Source/WebKit/WPEPlatform/wpe/WPECursorTheme.h
    A Source/WebKit/WPEPlatform/wpe/WPEDefines.h
    A Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEDisplay.h
    A Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h
    A Source/WebKit/WPEPlatform/wpe/WPEEGLError.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEEGLError.h
    A Source/WebKit/WPEPlatform/wpe/WPEEnumTypes.cpp.in
    A Source/WebKit/WPEPlatform/wpe/WPEEnumTypes.h.in
    A Source/WebKit/WPEPlatform/wpe/WPEEvent.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEEvent.h
    A Source/WebKit/WPEPlatform/wpe/WPEExtensions.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEExtensions.h
    A Source/WebKit/WPEPlatform/wpe/WPEKeyUnicode.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEKeyUnicode.h
    A Source/WebKit/WPEPlatform/wpe/WPEKeymap.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEKeymap.h
    A Source/WebKit/WPEPlatform/wpe/WPEKeymapXKB.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEKeymapXKB.h
    A Source/WebKit/WPEPlatform/wpe/WPEKeysyms.h
    A Source/WebKit/WPEPlatform/wpe/WPEVersion.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEVersion.h.in
    A Source/WebKit/WPEPlatform/wpe/WPEView.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEView.h
    A Source/WebKit/WPEPlatform/wpe/drm/CMakeLists.txt
    A Source/WebKit/WPEPlatform/wpe/drm/DRMUniquePtr.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRM.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRM.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMCursor.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMCursor.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMCursorTheme.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMCursorTheme.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSeat.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSession.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSession.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSessionLogind.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDRMSessionLogind.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRMPrivate.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEViewDRM.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEViewDRM.h
    A Source/WebKit/WPEPlatform/wpe/drm/WPEViewDRMPrivate.h
    A Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h
    A Source/WebKit/WPEPlatform/wpe/drm/wpe-platform-drm-uninstalled.pc.in
    A Source/WebKit/WPEPlatform/wpe/drm/wpe-platform-drm.pc.in
    A Source/WebKit/WPEPlatform/wpe/headless/CMakeLists.txt
    A Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp
    A Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.h
    A Source/WebKit/WPEPlatform/wpe/headless/WPEViewHeadless.cpp
    A Source/WebKit/WPEPlatform/wpe/headless/WPEViewHeadless.h
    A Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h
    A Source/WebKit/WPEPlatform/wpe/headless/wpe-platform-headless-uninstalled.pc.in
    A Source/WebKit/WPEPlatform/wpe/headless/wpe-platform-headless.pc.in
    A Source/WebKit/WPEPlatform/wpe/wayland/CMakeLists.txt
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWaylandPrivate.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandCursor.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandCursor.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandCursorTheme.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandCursorTheme.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandOutput.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandOutput.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSHMPool.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSHMPool.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.h
    A Source/WebKit/WPEPlatform/wpe/wayland/wpe-platform-wayland-uninstalled.pc.in
    A Source/WebKit/WPEPlatform/wpe/wayland/wpe-platform-wayland.pc.in
    A Source/WebKit/WPEPlatform/wpe/wayland/wpe-wayland.h
    A Source/WebKit/WPEPlatform/wpe/wpe-platform.h
    M Source/WebKit/WebProcess/WebPage/AcceleratedSurface.cpp
    M Source/WebKit/WebProcess/WebPage/AcceleratedSurface.h
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp
    M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h
    M Source/WebKit/WebProcess/WebPage/DrawingArea.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.h
    M Source/WebKit/WebProcess/WebPage/WebPage.messages.in
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp
    M Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h
    M Source/WebKit/WebProcess/WebPage/wpe/WebPageWPE.cpp
    M Source/WebKit/WebProcess/WebProcess.h
    M Source/WebKit/WebProcess/glib/WebProcessGLib.cpp
    M Source/WebKit/wpe/wpe-webkit-uninstalled.pc.in
    M Source/WebKit/wpe/wpe-webkit.pc.in
    A Source/cmake/FindLibInput.cmake
    A Source/cmake/FindUdev.cmake
    M Source/cmake/OptionsWPE.cmake
    M Tools/MiniBrowser/wpe/CMakeLists.txt
    M Tools/MiniBrowser/wpe/main.cpp
    M Tools/PlatformWPE.cmake
    M Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py
    M Tools/Scripts/webkitpy/port/driver.py
    M Tools/Scripts/webkitpy/port/wpe.py
    M Tools/Scripts/webkitpy/style/checker.py
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/TestWebKitAPI/glib/CMakeLists.txt
    M Tools/TestWebKitAPI/wpe/PlatformWebViewWPE.cpp
    M Tools/WebKitTestRunner/EventSenderProxy.h
    M Tools/WebKitTestRunner/Options.cpp
    M Tools/WebKitTestRunner/Options.h
    M Tools/WebKitTestRunner/PlatformWPE.cmake
    M Tools/WebKitTestRunner/PlatformWebView.h
    M Tools/WebKitTestRunner/TestController.cpp
    M Tools/WebKitTestRunner/TestController.h
    A Tools/WebKitTestRunner/libwpe/EventSenderProxyClient.h
    A Tools/WebKitTestRunner/libwpe/EventSenderProxyClientLibWPE.cpp
    A Tools/WebKitTestRunner/libwpe/EventSenderProxyClientLibWPE.h
    M Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp
    A Tools/WebKitTestRunner/libwpe/PlatformWebViewClient.h
    A Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.cpp
    A Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.h
    M Tools/WebKitTestRunner/libwpe/PlatformWebViewLibWPE.cpp
    A Tools/WebKitTestRunner/wpe/EventSenderProxyClientWPE.cpp
    A Tools/WebKitTestRunner/wpe/EventSenderProxyClientWPE.h
    A Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp
    A Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h

  Log Message:
  -----------
  [WPE] Upstream the new WPE platform API
https://bugs.webkit.org/show_bug.cgi?id=265286

Reviewed by Adrian Perez de Castro and Michael Catanzaro.

New WPE platform API is still work in progress, but we have enough
already to know that this is the way we want to go, so we can continue
working upstream.

The new API is always built, but the old one will be used by default, so
there shouldn't be any change in behavior. MiniBrowser and WKTR can use
the new api by using a new command line option to enable it.

* Source/WebCore/PlatformWPE.cmake:
* Source/WebCore/SourcesWPE.txt:
* Source/WebCore/platform/Scrollbar.cpp:
(WebCore::Scrollbar::pixelsPerLineStep):
* Source/WebCore/platform/graphics/PlatformDisplay.cpp:
(WebCore::PlatformDisplay::createPlatformDisplay):
* Source/WebCore/platform/graphics/PlatformDisplay.h:
(WebCore::PlatformDisplay::setUseDMABufForRendering):
* Source/WebCore/platform/libwpe/PlatformKeyboardEventLibWPE.cpp:
(WebCore::PlatformKeyboardEvent::currentStateOfModifierKeys):
* Source/WebKit/PlatformWPE.cmake:
* Source/WebKit/Shared/NativeWebKeyboardEvent.h:
* Source/WebKit/Shared/NativeWebMouseEvent.h:
* Source/WebKit/Shared/NativeWebTouchEvent.h:
* Source/WebKit/Shared/NativeWebWheelEvent.h:
* Source/WebKit/Shared/WebKeyboardEvent.h:
* Source/WebKit/Shared/WebPageCreationParameters.h:
* Source/WebKit/Shared/WebPageCreationParameters.serialization.in:
* Source/WebKit/Shared/WebProcessCreationParameters.h:
* Source/WebKit/Shared/WebProcessCreationParameters.serialization.in:
* Source/WebKit/Shared/libwpe/WebEventFactory.h:
* Source/WebKit/Shared/wpe/GRefPtrWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WTF::refGPtr):
(WTF::derefGPtr):
* Source/WebKit/Shared/wpe/GRefPtrWPE.h: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
* Source/WebKit/Shared/wpe/NativeWebKeyboardEventWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
* Source/WebKit/Shared/wpe/NativeWebMouseEventWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
* Source/WebKit/Shared/wpe/NativeWebTouchEventWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
* Source/WebKit/Shared/wpe/NativeWebWheelEventWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
* Source/WebKit/Shared/wpe/WebEventFactoryWPE.cpp: Added.
(WebKit::wallTimeForEvent):
(WebKit::modifiersFromWPEModifiers):
(WebKit::buttonForWPEButton):
(WebKit::buttonFromWPEModifiers):
(WebKit::movementDeltaFromEvent):
(WebKit::pressedMouseButtons):
(WebKit::positionFromEvent):
(WebKit::WebEventFactory::createWebMouseEvent):
(WebKit::WebEventFactory::createWebWheelEvent):
(WebKit::WebEventFactory::createWebKeyboardEvent):
(WebKit::WebEventFactory::createWebTouchEvent):
* Source/WebKit/Shared/wpe/WebKeyboardEventWPE.cpp: Copied from Source/WebCore/platform/libwpe/PlatformKeyboardEventLibWPE.cpp.
(WebKit::WebKeyboardEvent::keyValueStringForWPEKeyval):
(WebKit::WebKeyboardEvent::keyCodeStringForWPEKeycode):
(WebKit::WebKeyboardEvent::keyIdentifierForWPEKeyval):
(WebKit::WebKeyboardEvent::windowsKeyCodeForWPEKeyval):
(WebKit::WebKeyboardEvent::singleCharacterStringForWPEKeyval):
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/API/C/wpe/WKView.cpp:
(WKViewCreate):
(WKViewCreateDeprecated):
(WKViewGetView):
(WKViewSetViewClient): Deleted.
* Source/WebKit/UIProcess/API/C/wpe/WKView.h:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
(WebKitWebViewClient::enterFullScreen):
(WebKitWebViewClient::exitFullScreen):
(webkitWebViewConstructed):
(webkitWebViewSetProperty):
(webkitWebViewGetProperty):
(webkit_web_view_class_init):
(webkitWebViewCreatePage):
(webkit_web_view_get_display):
(webkit_web_view_get_wpe_view):
* Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in:
* Source/WebKit/UIProcess/API/wpe/APIViewClient.h:
(API::ViewClient::enterFullScreen):
(API::ViewClient::exitFullScreen):
* Source/WebKit/UIProcess/API/wpe/PageClientImpl.cpp:
(WebKit::PageClientImpl::wpeView const):
(WebKit::PageClientImpl::hostFileDescriptor):
(WebKit::PageClientImpl::setCursor):
(WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves):
(WebKit::PageClientImpl::enterAcceleratedCompositingMode):
(WebKit::PageClientImpl::exitAcceleratedCompositingMode):
(WebKit::PageClientImpl::updateAcceleratedCompositingMode):
(WebKit::PageClientImpl::enterFullScreen):
(WebKit::PageClientImpl::exitFullScreen):
* Source/WebKit/UIProcess/API/wpe/PageClientImpl.h:
* Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp:
(WKWPE::View::View):
(WKWPE::m_wpeDisplay):
(WKWPE::View::~View):
(WKWPE::View::isFullScreen const):
(WKWPE::View::willEnterFullScreen):
(WKWPE::View::enterFullScreen):
(WKWPE::View::didEnterFullScreen):
(WKWPE::View::willExitFullScreen):
(WKWPE::View::exitFullScreen):
(WKWPE::View::didExitFullScreen):
(WKWPE::View::requestExitFullScreen):
(WKWPE::View::setFullScreen):
(WKWPE::View::updateAcceleratedSurface):
(WKWPE::View::touchPointsForEvent):
(WKWPE::View::setCursor):
(WKWPE::m_backend): Deleted.
* Source/WebKit/UIProcess/API/wpe/WPEWebView.h:
(WKWPE::View::create):
(WKWPE::View::wpeView const):
(WKWPE::View::isFullScreen): Deleted.
* Source/WebKit/UIProcess/API/wpe/WebKitWebViewClient.h:
* Source/WebKit/UIProcess/API/wpe/WebKitWebViewWPE.cpp:
(webkit_web_view_new):
* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::creationParameters):
(WebKit::WebPageProxy::updateCurrentModifierState):
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/glib/DisplayVBlankMonitorDRM.cpp:
(WebKit::DisplayVBlankMonitorDRM::create):
* Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp:
(WebKit::WebProcessPool::platformInitializeWebProcess):
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStoreDMABuf.cpp: Added.
(WebKit::AcceleratedBackingStoreDMABuf::create):
(WebKit::AcceleratedBackingStoreDMABuf::AcceleratedBackingStoreDMABuf):
(WebKit::AcceleratedBackingStoreDMABuf::~AcceleratedBackingStoreDMABuf):
(WebKit::AcceleratedBackingStoreDMABuf::updateSurfaceID):
(WebKit::AcceleratedBackingStoreDMABuf::didCreateBuffer):
(WebKit::AcceleratedBackingStoreDMABuf::didCreateBufferSHM):
(WebKit::AcceleratedBackingStoreDMABuf::didDestroyBuffer):
(WebKit::AcceleratedBackingStoreDMABuf::frame):
(WebKit::AcceleratedBackingStoreDMABuf::frameDone):
(WebKit::AcceleratedBackingStoreDMABuf::bufferRendered):
* Source/WebKit/UIProcess/wpe/AcceleratedBackingStoreDMABuf.h: Added.
* Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp:
(WebKit::WebPageProxy::wpeView const):
(WebKit::WebPageProxy::preferredBufferFormats const):
(WebKit::WebPageProxy::preferredBufferFormatsDidChange):
(WebKit::WebPageProxy::currentStateOfModifierKeys):
* Source/WebKit/WPEPlatform: Added.
* Source/WebKit/WebProcess/WebPage/AcceleratedSurface.cpp:
(WebKit::AcceleratedSurface::create):
* Source/WebKit/WebProcess/WebPage/AcceleratedSurface.h:
(WebKit::AcceleratedSurface::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:
(WebKit::DrawingAreaCoordinatedGraphics::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.h:
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/LayerTreeHost.h:
* Source/WebKit/WebProcess/WebPage/DrawingArea.h:
(WebKit::DrawingArea::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
* Source/WebKit/WebProcess/WebPage/WebPage.h:
* Source/WebKit/WebProcess/WebPage/WebPage.messages.in:
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.cpp:
(WebKit::AcceleratedSurfaceDMABuf::SwapChain::setupBufferFormat):
(WebKit::AcceleratedSurfaceDMABuf::SwapChain::nextTarget):
(WebKit::AcceleratedSurfaceDMABuf::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebPage/dmabuf/AcceleratedSurfaceDMABuf.h:
* Source/WebKit/WebProcess/WebPage/wpe/WebPageWPE.cpp:
(WebKit::WebPage::preferredBufferFormatsDidChange):
* Source/WebKit/WebProcess/WebProcess.h:
* Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
* Source/WebKit/wpe/wpe-webkit-uninstalled.pc.in:
* Source/WebKit/wpe/wpe-webkit.pc.in:
* Source/cmake/FindLibInput.cmake: Added.
* Source/cmake/FindUdev.cmake: Added.
* Source/cmake/OptionsWPE.cmake:
* Tools/MiniBrowser/wpe/CMakeLists.txt:
* Tools/MiniBrowser/wpe/main.cpp:
(createViewBackend):
(createWebView):
(activate):
(main):
* Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(parse_args):
* Tools/Scripts/webkitpy/port/driver.py:
(Driver.cmd_line):
* Tools/Scripts/webkitpy/port/wpe.py:
(WPEPort.setup_environ_for_server):
* Tools/Scripts/webkitpy/style/checker.py:
* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_identifier_name_in_declaration):
* Tools/TestWebKitAPI/wpe/PlatformWebViewWPE.cpp:
(TestWebKitAPI::PlatformWebView::initialize):
* Tools/WebKitTestRunner/EventSenderProxy.h:
* Tools/WebKitTestRunner/Options.cpp:
(WTR::handleOptionWPEPlatformAPI):
(WTR::OptionsHandler::OptionsHandler):
* Tools/WebKitTestRunner/Options.h:
* Tools/WebKitTestRunner/PlatformWPE.cmake:
* Tools/WebKitTestRunner/PlatformWebView.h:
* Tools/WebKitTestRunner/TestController.cpp:
(WTR::TestController::initialize):
* Tools/WebKitTestRunner/TestController.h:
(WTR::TestController::useWPEPlatformAPI const):
* Tools/WebKitTestRunner/libwpe/EventSenderProxyClient.h: Copied from Source/WebKit/UIProcess/API/wpe/APIViewClient.h.
(WTR::EventSenderProxyClient::addTouchPoint):
(WTR::EventSenderProxyClient::updateTouchPoint):
(WTR::EventSenderProxyClient::touchStart):
(WTR::EventSenderProxyClient::touchMove):
(WTR::EventSenderProxyClient::touchEnd):
(WTR::EventSenderProxyClient::touchCancel):
(WTR::EventSenderProxyClient::clearTouchPoints):
(WTR::EventSenderProxyClient::releaseTouchPoint):
(WTR::EventSenderProxyClient::cancelTouchPoint):
(WTR::EventSenderProxyClient::EventSenderProxyClient):
* Tools/WebKitTestRunner/libwpe/EventSenderProxyClientLibWPE.cpp: Copied from Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp.
(WTR::EventSenderProxyClientLibWPE::EventSenderProxyClientLibWPE):
(WTR::viewBackend):
(WTR::secToMsTimestamp):
(WTR::senderButtonToWPEButton):
(WTR::modifierForButton):
(WTR::wkEventModifiersToWPE):
(WTR::EventSenderProxyClientLibWPE::mouseDown):
(WTR::EventSenderProxyClientLibWPE::mouseUp):
(WTR::EventSenderProxyClientLibWPE::mouseMoveTo):
(WTR::EventSenderProxyClientLibWPE::mouseScrollBy):
(WTR::wpeKeySymForKeyRef):
(WTR::EventSenderProxyClientLibWPE::keyDown):
(WTR::EventSenderProxyClientLibWPE::addTouchPoint):
(WTR::EventSenderProxyClientLibWPE::updateTouchPoint):
(WTR::EventSenderProxyClientLibWPE::touchStart):
(WTR::EventSenderProxyClientLibWPE::touchMove):
(WTR::EventSenderProxyClientLibWPE::touchEnd):
(WTR::EventSenderProxyClientLibWPE::touchCancel):
(WTR::EventSenderProxyClientLibWPE::clearTouchPoints):
(WTR::EventSenderProxyClientLibWPE::releaseTouchPoint):
(WTR::EventSenderProxyClientLibWPE::cancelTouchPoint):
(WTR::EventSenderProxyClientLibWPE::getUpdatedTouchEvents):
(WTR::EventSenderProxyClientLibWPE::removeUpdatedTouchEvents):
(WTR::EventSenderProxyClientLibWPE::prepareAndDispatchTouchEvent):
* Tools/WebKitTestRunner/libwpe/EventSenderProxyClientLibWPE.h: Added.
* Tools/WebKitTestRunner/libwpe/EventSenderProxyLibWPE.cpp:
(WTR::EventSenderProxy::EventSenderProxy):
(WTR::EventSenderProxy::mouseDown):
(WTR::EventSenderProxy::mouseUp):
(WTR::EventSenderProxy::mouseMoveTo):
(WTR::EventSenderProxy::mouseScrollBy):
(WTR::EventSenderProxy::keyDown):
(WTR::EventSenderProxy::addTouchPoint):
(WTR::EventSenderProxy::updateTouchPoint):
(WTR::EventSenderProxy::touchStart):
(WTR::EventSenderProxy::touchMove):
(WTR::EventSenderProxy::touchEnd):
(WTR::EventSenderProxy::touchCancel):
(WTR::EventSenderProxy::clearTouchPoints):
(WTR::EventSenderProxy::releaseTouchPoint):
(WTR::EventSenderProxy::cancelTouchPoint):
(WTR::viewBackend): Deleted.
(WTR::secToMsTimestamp): Deleted.
(WTR::senderButtonToWPEButton): Deleted.
(WTR::modifierForButton): Deleted.
(WTR::wkEventModifiersToWPE): Deleted.
(WTR::wpeKeySymForKeyRef): Deleted.
(WTR::EventSenderProxy::getUpdatedTouchEvents): Deleted.
(WTR::EventSenderProxy::removeUpdatedTouchEvents): Deleted.
(WTR::EventSenderProxy::prepareAndDispatchTouchEvent): Deleted.
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClient.h: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
(WTR::PlatformWebViewClient::view const):
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.cpp: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.cpp.
(WTR::PlatformWebViewClientLibWPE::PlatformWebViewClientLibWPE):
(WTR::PlatformWebViewClientLibWPE::~PlatformWebViewClientLibWPE):
(WTR::PlatformWebViewClientLibWPE::addToWindow):
(WTR::PlatformWebViewClientLibWPE::removeFromWindow):
(WTR::PlatformWebViewClientLibWPE::snapshot):
* Tools/WebKitTestRunner/libwpe/PlatformWebViewClientLibWPE.h: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
* Tools/WebKitTestRunner/libwpe/PlatformWebViewLibWPE.cpp:
(WTR::PlatformWebView::PlatformWebView):
(WTR::PlatformWebView::addToWindow):
(WTR::PlatformWebView::removeFromWindow):
(WTR::PlatformWebView::windowSnapshotImage):
* Tools/WebKitTestRunner/wpe/EventSenderProxyClientWPE.cpp: Added.
(WTR::EventSenderProxyClientWPE::EventSenderProxyClientWPE):
(WTR::secToMsTimestamp):
(WTR::wkEventModifiersToWPE):
(WTR::eventSenderButtonToWPEButton):
(WTR::modifierForButton):
(WTR::EventSenderProxyClientWPE::mouseDown):
(WTR::EventSenderProxyClientWPE::mouseUp):
(WTR::EventSenderProxyClientWPE::mouseMoveTo):
(WTR::EventSenderProxyClientWPE::mouseScrollBy):
(WTR::wpeKeyvalForKeyRef):
(WTR::EventSenderProxyClientWPE::keyDown):
* Tools/WebKitTestRunner/wpe/EventSenderProxyClientWPE.h: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp: Added.
(WTR::PlatformWebViewClientWPE::PlatformWebViewClientWPE):
(WTR::PlatformWebViewClientWPE::~PlatformWebViewClientWPE):
(WTR::PlatformWebViewClientWPE::addToWindow):
(WTR::PlatformWebViewClientWPE::removeFromWindow):
(WTR::PlatformWebViewClientWPE::snapshot):
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.h: Copied from Source/WebKit/UIProcess/API/C/wpe/WKView.h.

Canonical link: https://commits.webkit.org/271330@main




More information about the webkit-changes mailing list