From 01126f4480cd33ce1bded0f7c86123f668af89bd Mon Sep 17 00:00:00 2001 From: chenxin128 Date: Mon, 23 Dec 2024 18:41:35 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=BF=AE=E5=A4=8D=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E5=90=8E=EF=BC=8C=E7=A7=BB=E5=8A=A8=E6=89=8B?= =?UTF-8?q?=E6=9F=84=E6=B6=88=E5=A4=B1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a9e235dfdd1e4bbdc27088621489574542bd2de3. Signed-off-by: chenxin128 --- libcef/browser/osr/browser_platform_delegate_osr.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libcef/browser/osr/browser_platform_delegate_osr.cc b/libcef/browser/osr/browser_platform_delegate_osr.cc index c7851fc9a..ddb14a991 100644 --- a/libcef/browser/osr/browser_platform_delegate_osr.cc +++ b/libcef/browser/osr/browser_platform_delegate_osr.cc @@ -21,12 +21,6 @@ #include "ui/display/screen.h" #include "ui/events/base_event_utils.h" -#if defined(OHOS_EX_FREE_COPY) -#include "base/base_switches.h" -#include "base/command_line.h" -#include "content/public/common/content_switches.h" -#endif - #ifdef OHOS_HTML_SELECT namespace { void ConvertSelectPopupItem(const blink::mojom::MenuItemPtr& menu_ptr, @@ -968,13 +962,6 @@ void CefBrowserPlatformDelegateOsr::DragSourceSystemDragEnded() { view->SetTextHandlesTemporarilyHiddenByDrag(false, false); } #endif - -#ifdef OHOS_EX_FREE_COPY - if (web_contents && - base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNwebExFreeCopy)) { - web_contents->SetShowingContextMenu(true); - } -#endif } void CefBrowserPlatformDelegateOsr::AccessibilityEventReceived( -- Gitee