Title: [292236] trunk/Source/WebKit
Revision
292236
Author
commit-qu...@webkit.org
Date
2022-04-01 14:38:56 -0700 (Fri, 01 Apr 2022)

Log Message

Expose WebKitWebView from WPEQtView
https://bugs.webkit.org/show_bug.cgi?id=236746

Patch by Tusooa Zhu <tus...@kazv.moe> on 2022-04-01
Reviewed by Adrian Perez de Castro.

WPEQtView currently does not allow manipulating the underlying WebKitWebView.
This patch allows retrieving the WebKitWebView from the WPEQtView.

No tests needed, as this patch only adds a trivial getter.

* UIProcess/API/wpe/qt/WPEQtView.cpp:
(WPEQtView::webView const):
* UIProcess/API/wpe/qt/WPEQtView.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (292235 => 292236)


--- trunk/Source/WebKit/ChangeLog	2022-04-01 21:29:44 UTC (rev 292235)
+++ trunk/Source/WebKit/ChangeLog	2022-04-01 21:38:56 UTC (rev 292236)
@@ -1,3 +1,19 @@
+2022-04-01  Tusooa Zhu  <tus...@kazv.moe>
+
+        Expose WebKitWebView from WPEQtView
+        https://bugs.webkit.org/show_bug.cgi?id=236746
+
+        Reviewed by Adrian Perez de Castro.
+
+        WPEQtView currently does not allow manipulating the underlying WebKitWebView.
+        This patch allows retrieving the WebKitWebView from the WPEQtView.
+
+        No tests needed, as this patch only adds a trivial getter.
+
+        * UIProcess/API/wpe/qt/WPEQtView.cpp:
+        (WPEQtView::webView const):
+        * UIProcess/API/wpe/qt/WPEQtView.h:
+
 2022-04-01  Ben Nham  <n...@apple.com>
 
         Add more push-related logging

Modified: trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.cpp (292235 => 292236)


--- trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.cpp	2022-04-01 21:29:44 UTC (rev 292235)
+++ trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.cpp	2022-04-01 21:38:56 UTC (rev 292236)
@@ -513,3 +513,8 @@
     if (m_backend)
         m_backend->dispatchTouchEvent(event);
 }
+
+WebKitWebView* WPEQtView::webView() const
+{
+    return m_webView;
+}

Modified: trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.h (292235 => 292236)


--- trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.h	2022-04-01 21:29:44 UTC (rev 292235)
+++ trunk/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.h	2022-04-01 21:38:56 UTC (rev 292236)
@@ -62,6 +62,8 @@
     bool isLoading() const;
     bool canGoForward() const;
 
+    WebKitWebView* webView() const;
+
 public Q_SLOTS:
     void goBack();
     void goForward();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to