Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: af3cd7645c2f0124130279549f392f8c89501fcb
      
https://github.com/WebKit/WebKit/commit/af3cd7645c2f0124130279549f392f8c89501fcb
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2024-06-27 (Thu, 27 Jun 2024)

  Changed paths:
    M Source/WebKit/PlatformWPE.cmake
    M Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp
    M Source/WebKit/UIProcess/API/wpe/qt6/WPEDisplayQtQuick.cpp
    A Source/WebKit/UIProcess/API/wpe/qt6/WPEToplevelQtQuick.cpp
    A Source/WebKit/UIProcess/API/wpe/qt6/WPEToplevelQtQuick.h
    M Source/WebKit/UIProcess/API/wpe/qt6/WPEViewQtQuick.cpp
    M Source/WebKit/WPEPlatform/CMakeLists.txt
    A Source/WebKit/WPEPlatform/wpe/WPEToplevel.cpp
    A Source/WebKit/WPEPlatform/wpe/WPEToplevel.h
    A Source/WebKit/WPEPlatform/wpe/WPEToplevelPrivate.h
    M Source/WebKit/WPEPlatform/wpe/WPEView.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEView.h
    A Source/WebKit/WPEPlatform/wpe/WPEViewPrivate.h
    M Source/WebKit/WPEPlatform/wpe/drm/CMakeLists.txt
    M Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEToplevelDRM.cpp
    A Source/WebKit/WPEPlatform/wpe/drm/WPEToplevelDRM.h
    M Source/WebKit/WPEPlatform/wpe/drm/WPEViewDRM.cpp
    M Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h
    M Source/WebKit/WPEPlatform/wpe/headless/CMakeLists.txt
    M Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp
    A Source/WebKit/WPEPlatform/wpe/headless/WPEToplevelHeadless.cpp
    A Source/WebKit/WPEPlatform/wpe/headless/WPEToplevelHeadless.h
    M Source/WebKit/WPEPlatform/wpe/headless/WPEViewHeadless.cpp
    M Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h
    M Source/WebKit/WPEPlatform/wpe/wayland/CMakeLists.txt
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWayland.cpp
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWayland.h
    A Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWaylandPrivate.h
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.cpp
    M Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.h
    M Source/WebKit/WPEPlatform/wpe/wayland/wpe-wayland.h
    M Source/WebKit/WPEPlatform/wpe/wpe-platform.h
    M Tools/MiniBrowser/wpe/main.cpp
    M Tools/Scripts/webkitpy/style/checker.py
    M Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp

  Log Message:
  -----------
  [WPE] WPE Platform: add WPEToplevel
https://bugs.webkit.org/show_bug.cgi?id=275805

Reviewed by Alejandro G. Castro.

Add a new class to handle platform toplevels. This will allow us to
support multiple views in the same toplevel, but for now only one is
supported.

* Source/WebKit/PlatformWPE.cmake:
* Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp:
(WKWPE::m_backend):
(WKWPE::viewToplevelIsFullScreen):
(WKWPE::View::enterFullScreen):
(WKWPE::View::exitFullScreen):
* Source/WebKit/UIProcess/API/wpe/qt6/WPEDisplayQtQuick.cpp:
(wpeDisplayQtQuickCreateView):
* Source/WebKit/UIProcess/API/wpe/qt6/WPEToplevelQtQuick.cpp: Added.
(wpeToplevelQtQuickDispose):
(wpeToplevelQtQuickResize):
(wpe_toplevel_qtquick_class_init):
(wpe_toplevel_qtquick_new):
* Source/WebKit/UIProcess/API/wpe/qt6/WPEToplevelQtQuick.h: Copied from 
Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h.
* Source/WebKit/UIProcess/API/wpe/qt6/WPEViewQtQuick.cpp:
(wpe_view_qtquick_class_init):
(wpeViewQtQuickResize): Deleted.
* Source/WebKit/WPEPlatform/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/WPEToplevel.cpp: Added.
(wpeToplevelGetProperty):
(wpe_toplevel_class_init):
(wpeToplevelAddView):
(wpeToplevelRemoveView):
(wpe_toplevel_get_display):
(wpe_toplevel_set_title):
(wpe_toplevel_get_max_views):
(wpe_toplevel_get_n_views):
(wpe_toplevel_foreach_view):
(wpe_toplevel_closed):
(wpe_toplevel_get_size):
(wpe_toplevel_resize):
(wpe_toplevel_resized):
(wpe_toplevel_get_state):
(wpe_toplevel_state_changed):
(wpe_toplevel_get_scale):
(wpe_toplevel_scale_changed):
(wpe_toplevel_get_monitor):
(wpe_toplevel_monitor_changed):
(wpe_toplevel_fullscreen):
(wpe_toplevel_unfullscreen):
(wpe_toplevel_maximize):
(wpe_toplevel_unmaximize):
(wpe_toplevel_get_preferred_dma_buf_formats):
(wpe_toplevel_preferred_dma_buf_formats_changed):
* Source/WebKit/WPEPlatform/wpe/WPEToplevel.h: Added.
* Source/WebKit/WPEPlatform/wpe/WPEToplevelPrivate.h: Copied from 
Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h.
* Source/WebKit/WPEPlatform/wpe/WPEView.cpp:
(wpeViewGetProperty):
(wpeViewDispose):
(wpe_view_class_init):
(wpeViewToplevelStateChanged):
(wpeViewScaleChanged):
(wpeViewMonitorChanged):
(wpeViewPreferredDMABufFormatsChanged):
(wpe_view_get_toplevel):
(wpe_view_set_toplevel):
(wpe_view_get_toplevel_state):
(wpe_view_get_monitor):
(wpe_view_get_preferred_dma_buf_formats):
(wpe_view_resize): Deleted.
(wpe_view_scale_changed): Deleted.
(wpe_view_get_state): Deleted.
(wpe_view_state_changed): Deleted.
(wpe_view_fullscreen): Deleted.
(wpe_view_unfullscreen): Deleted.
(wpe_view_maximize): Deleted.
(wpe_view_unmaximize): Deleted.
* Source/WebKit/WPEPlatform/wpe/WPEView.h:
* Source/WebKit/WPEPlatform/wpe/WPEViewPrivate.h: Copied from 
Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h.
* Source/WebKit/WPEPlatform/wpe/drm/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/drm/WPEDisplayDRM.cpp:
(wpeDisplayDRMCreateView):
* Source/WebKit/WPEPlatform/wpe/drm/WPEToplevelDRM.cpp: Added.
(wpeToplevelDRMConstructed):
(wpeToplevelDRMGetMonitor):
(wpe_toplevel_drm_class_init):
(wpe_toplevel_drm_new):
* Source/WebKit/WPEPlatform/wpe/drm/WPEToplevelDRM.h: Copied from 
Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h.
* Source/WebKit/WPEPlatform/wpe/drm/WPEViewDRM.cpp:
(wpeViewDRMConstructed):
(wpe_view_drm_class_init):
(wpeViewDRMGetMonitor): Deleted.
* Source/WebKit/WPEPlatform/wpe/drm/wpe-drm.h:
* Source/WebKit/WPEPlatform/wpe/headless/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/headless/WPEDisplayHeadless.cpp:
(wpeDisplayHeadlessCreateView):
* Source/WebKit/WPEPlatform/wpe/headless/WPEToplevelHeadless.cpp: Added.
(wpeToplevelHeadlessResize):
(wpeToplevelHeadlessSetFullscreen):
(wpe_toplevel_headless_class_init):
(wpe_toplevel_headless_new):
* Source/WebKit/WPEPlatform/wpe/headless/WPEToplevelHeadless.h: Copied from 
Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h.
* Source/WebKit/WPEPlatform/wpe/headless/WPEViewHeadless.cpp:
(wpe_view_headless_class_init):
(wpeViewHeadlessResize): Deleted.
(wpeViewHeadlessSetFullscreen): Deleted.
* Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h:
* Source/WebKit/WPEPlatform/wpe/wayland/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp:
(wpeDisplayWaylandCreateView):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWayland.cpp: Added.
(DMABufFeedback::FormatTable::FormatTable):
(DMABufFeedback::FormatTable::operator bool const):
(DMABufFeedback::FormatTable::operator=):
(DMABufFeedback::FormatTable::~FormatTable):
(DMABufFeedback::DMABufFeedback):
(DMABufFeedback::drmDeviceForUsage):
(DMABufFeedback::drmDevice const):
(DMABufFeedback::Tranche::Tranche):
(DMABufFeedback::Tranche::drmDevice const):
(DMABufFeedback::format):
(wpeToplevelWaylandSaveSize):
(wpeToplevelWaylandResized):
(wpeToplevelWaylandConstructed):
(wpeToplevelWaylandDispose):
(wpeToplevelWaylandGetMonitor):
(wpeToplevelWaylandResize):
(wpeToplevelWaylandSetFullscreen):
(wpeToplevelWaylandSetMaximized):
(wpeToplevelWaylandGetPreferredDMABufFormats):
(wpe_toplevel_wayland_class_init):
(regionsEqual):
(wpeToplevelWaylandSetOpaqueRectangles):
(wpeToplevelWaylandUpdateOpaqueRegion):
(wpeToplevelWaylandFindVisibleView):
(wpeToplevelWaylandSetHasPointer):
(wpeToplevelWaylandGetVisibleViewUnderPointer):
(wpeToplevelWaylandSetIsFocused):
(wpeToplevelWaylandGetVisibleFocusedView):
(wpeToplevelWaylandViewVisibilityChanged):
(wpe_toplevel_wayland_new):
(wpe_toplevel_wayland_get_wl_surface):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWayland.h: Copied from 
Source/WebKit/WPEPlatform/wpe/wayland/wpe-wayland.h.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEToplevelWaylandPrivate.h: Copied 
from Source/WebKit/WPEPlatform/wpe/headless/wpe-headless.h.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEViewWayland.cpp:
(wpeViewWaylandConstructed):
(wpeViewWaylandDispose):
(wpeViewWaylandSetOpaqueRectangles):
(wpeViewWaylandCanBeMapped):
(wpe_view_wayland_class_init):
(wpe_view_wayland_get_wl_surface):
(): Deleted.
(DMABufFeedback::FormatTable::FormatTable): Deleted.
(DMABufFeedback::FormatTable::operator bool const): Deleted.
(DMABufFeedback::FormatTable::operator=): Deleted.
(DMABufFeedback::FormatTable::~FormatTable): Deleted.
(DMABufFeedback::DMABufFeedback): Deleted.
(DMABufFeedback::drmDeviceForUsage): Deleted.
(DMABufFeedback::drmDevice const): Deleted.
(DMABufFeedback::Tranche::Tranche): Deleted.
(DMABufFeedback::Tranche::drmDevice const): Deleted.
(DMABufFeedback::format): Deleted.
(wpeViewWaylandSaveSize): Deleted.
(wpeViewWaylandGetMonitor): Deleted.
(wpeViewWaylandResize): Deleted.
(wpeViewWaylandSetFullscreen): Deleted.
(wpeViewWaylandSetMaximized): Deleted.
(wpeViewWaylandGetPreferredDMABufFormats): Deleted.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.cpp:
(WPE::WaylandSeat::updateCursor):
(WPE::WaylandSeat::emitPointerEnter const):
(WPE::WaylandSeat::emitPointerLeave const):
(WPE::WaylandSeat::flushScrollEvent):
(WPE::WaylandSeat::handleKeyEvent):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEWaylandSeat.h:
* Source/WebKit/WPEPlatform/wpe/wayland/wpe-wayland.h:
* Source/WebKit/WPEPlatform/wpe/wpe-platform.h:
* Tools/MiniBrowser/wpe/main.cpp:
* Tools/Scripts/webkitpy/style/checker.py:
* Tools/WebKitTestRunner/wpe/PlatformWebViewClientWPE.cpp:
(WTR::PlatformWebViewClientWPE::PlatformWebViewClientWPE):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to