Title: [254663] trunk/Source/WebKit
Revision
254663
Author
ross.kirsl...@sony.com
Date
2020-01-15 19:10:18 -0800 (Wed, 15 Jan 2020)

Log Message

[PlayStation] Add stubs for WebContextMenuClient
https://bugs.webkit.org/show_bug.cgi?id=206324

Reviewed by Don Olmstead.

* WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
(WebKit::WebContextMenuClient::lookUpInDictionary):
(WebKit::WebContextMenuClient::isSpeaking):
(WebKit::WebContextMenuClient::speak):
(WebKit::WebContextMenuClient::stopSpeaking):
* WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
(WebKit::WebContextMenuClient::lookUpInDictionary): Deleted.
(WebKit::WebContextMenuClient::isSpeaking): Deleted.
(WebKit::WebContextMenuClient::speak): Deleted.
(WebKit::WebContextMenuClient::stopSpeaking): Deleted.
Bring GTK/WPE stubs down for broader use.

Modified Paths

Removed Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (254662 => 254663)


--- trunk/Source/WebKit/ChangeLog	2020-01-16 03:02:24 UTC (rev 254662)
+++ trunk/Source/WebKit/ChangeLog	2020-01-16 03:10:18 UTC (rev 254663)
@@ -1,5 +1,24 @@
 2020-01-15  Ross Kirsling  <ross.kirsl...@sony.com>
 
+        [PlayStation] Add stubs for WebContextMenuClient
+        https://bugs.webkit.org/show_bug.cgi?id=206324
+
+        Reviewed by Don Olmstead.
+
+        * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
+        (WebKit::WebContextMenuClient::lookUpInDictionary):
+        (WebKit::WebContextMenuClient::isSpeaking):
+        (WebKit::WebContextMenuClient::speak):
+        (WebKit::WebContextMenuClient::stopSpeaking):
+        * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
+        (WebKit::WebContextMenuClient::lookUpInDictionary): Deleted.
+        (WebKit::WebContextMenuClient::isSpeaking): Deleted.
+        (WebKit::WebContextMenuClient::speak): Deleted.
+        (WebKit::WebContextMenuClient::stopSpeaking): Deleted.
+        Bring GTK/WPE stubs down for broader use.
+
+2020-01-15  Ross Kirsling  <ross.kirsl...@sony.com>
+
         [PlayStation] Add stub for WebPopupMenu::setUpPlatformData
         https://bugs.webkit.org/show_bug.cgi?id=206323
 

Modified: trunk/Source/WebKit/SourcesWPE.txt (254662 => 254663)


--- trunk/Source/WebKit/SourcesWPE.txt	2020-01-16 03:02:24 UTC (rev 254662)
+++ trunk/Source/WebKit/SourcesWPE.txt	2020-01-16 03:10:18 UTC (rev 254663)
@@ -241,7 +241,6 @@
 
 WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
 
-WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp
 WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp
 
 WebProcess/WebPage/AcceleratedSurface.cpp

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp (254662 => 254663)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp	2020-01-16 03:02:24 UTC (rev 254662)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebContextMenuClient.cpp	2020-01-16 03:10:18 UTC (rev 254663)
@@ -70,6 +70,27 @@
         page->mainFrame().loader().urlSelected(URL { URL { }, url }, { }, nullptr, LockHistory::No, LockBackForwardList::No, MaybeSendReferrer, ShouldOpenExternalURLsPolicy::ShouldNotAllow);
     }
 }
+
+void WebContextMenuClient::lookUpInDictionary(WebCore::Frame*)
+{
+    notImplemented();
+}
+
+bool WebContextMenuClient::isSpeaking()
+{
+    notImplemented();
+    return false;
+}
+
+void WebContextMenuClient::speak(const String&)
+{
+    notImplemented();
+}
+
+void WebContextMenuClient::stopSpeaking()
+{
+    notImplemented();
+}
 #endif
 
 #if USE(ACCESSIBILITY_CONTEXT_MENUS)

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp (254662 => 254663)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp	2020-01-16 03:02:24 UTC (rev 254662)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp	2020-01-16 03:10:18 UTC (rev 254663)
@@ -30,32 +30,9 @@
 #if ENABLE(CONTEXT_MENUS)
 
 #include "WebPage.h"
-#include <WebCore/NotImplemented.h>
 
 namespace WebKit {
-using namespace WebCore;
 
-void WebContextMenuClient::lookUpInDictionary(Frame*)
-{
-    notImplemented();
-}
-
-bool WebContextMenuClient::isSpeaking()
-{
-    notImplemented();
-    return false;
-}
-
-void WebContextMenuClient::speak(const String&)
-{
-    notImplemented();
-}
-
-void WebContextMenuClient::stopSpeaking()
-{
-    notImplemented();
-}
-
 void WebContextMenuClient::insertEmoji(Frame& frame)
 {
     m_page->showEmojiPicker(frame);

Deleted: trunk/Source/WebKit/WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp (254662 => 254663)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp	2020-01-16 03:02:24 UTC (rev 254662)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/wpe/WebContextMenuClientWPE.cpp	2020-01-16 03:10:18 UTC (rev 254663)
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2014 Igalia S.L.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "WebContextMenuClient.h"
-
-#if ENABLE(CONTEXT_MENUS)
-
-#include <WebCore/NotImplemented.h>
-
-namespace WebKit {
-
-void WebContextMenuClient::lookUpInDictionary(WebCore::Frame*)
-{
-    notImplemented();
-}
-
-bool WebContextMenuClient::isSpeaking()
-{
-    notImplemented();
-    return false;
-}
-
-void WebContextMenuClient::speak(const String&)
-{
-    notImplemented();
-}
-
-void WebContextMenuClient::stopSpeaking()
-{
-    notImplemented();
-}
-
-} // namespace WebKit
-
-#endif // ENABLE(CONTEXT_MENUS)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to