From b4ffe86fd1b60911900e2f0a8962ae756de33de7 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 1 Jun 2021 22:23:08 +0000 Subject: [PATCH] browser(webkit): add missing override annotations (#6829) --- browser_patches/webkit/BUILD_NUMBER | 4 +-- browser_patches/webkit/patches/bootstrap.diff | 26 ++++++++++++++----- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER index efb3ca1fe6..2786859d55 100644 --- a/browser_patches/webkit/BUILD_NUMBER +++ b/browser_patches/webkit/BUILD_NUMBER @@ -1,2 +1,2 @@ -1489 -Changed: yurys@chromium.org Tue 01 Jun 2021 02:51:18 PM PDT +1490 +Changed: yurys@chromium.org Tue 01 Jun 2021 03:20:32 PM PDT diff --git a/browser_patches/webkit/patches/bootstrap.diff b/browser_patches/webkit/patches/bootstrap.diff index 61aa5f66c3..8d52e60981 100644 --- a/browser_patches/webkit/patches/bootstrap.diff +++ b/browser_patches/webkit/patches/bootstrap.diff @@ -4796,14 +4796,20 @@ index 00e69f1aa2e3f8ea2f445e8dd446dd16ea6363df..78dda16d71cc379f07803ca313b47b55 } // namespace WebCore diff --git a/Source/WebCore/inspector/agents/page/PageRuntimeAgent.h b/Source/WebCore/inspector/agents/page/PageRuntimeAgent.h -index 298465c52b42464c2733659e07f3f760174a95eb..ad8a6be61c27bdcbbe3b104b669d682d82c16adf 100644 +index 298465c52b42464c2733659e07f3f760174a95eb..5af56f4aa2d2de51153b1ae2c5e17274d88713d0 100644 --- a/Source/WebCore/inspector/agents/page/PageRuntimeAgent.h +++ b/Source/WebCore/inspector/agents/page/PageRuntimeAgent.h -@@ -57,11 +57,12 @@ public: - Inspector::Protocol::ErrorStringOr enable(); - Inspector::Protocol::ErrorStringOr disable(); - Inspector::Protocol::ErrorStringOr, Optional /* wasThrown */, Optional /* savedResultIndex */>> evaluate(const String& expression, const String& objectGroup, Optional&& includeCommandLineAPI, Optional&& doNotPauseOnExceptionsAndMuteConsole, Optional&&, Optional&& returnByValue, Optional&& generatePreview, Optional&& saveResult, Optional&& emulateUserGesture); +@@ -54,25 +54,25 @@ public: + ~PageRuntimeAgent(); + + // RuntimeBackendDispatcherHandler +- Inspector::Protocol::ErrorStringOr enable(); +- Inspector::Protocol::ErrorStringOr disable(); +- Inspector::Protocol::ErrorStringOr, Optional /* wasThrown */, Optional /* savedResultIndex */>> evaluate(const String& expression, const String& objectGroup, Optional&& includeCommandLineAPI, Optional&& doNotPauseOnExceptionsAndMuteConsole, Optional&&, Optional&& returnByValue, Optional&& generatePreview, Optional&& saveResult, Optional&& emulateUserGesture); - Inspector::Protocol::ErrorStringOr, Optional /* wasThrown */>> callFunctionOn(const Inspector::Protocol::Runtime::RemoteObjectId&, const String& expression, RefPtr&& arguments, Optional&& doNotPauseOnExceptionsAndMuteConsole, Optional&& returnByValue, Optional&& generatePreview, Optional&& emulateUserGesture); ++ Inspector::Protocol::ErrorStringOr enable() override; ++ Inspector::Protocol::ErrorStringOr disable() override; ++ Inspector::Protocol::ErrorStringOr, Optional /* wasThrown */, Optional /* savedResultIndex */>> evaluate(const String& expression, const String& objectGroup, Optional&& includeCommandLineAPI, Optional&& doNotPauseOnExceptionsAndMuteConsole, Optional&&, Optional&& returnByValue, Optional&& generatePreview, Optional&& saveResult, Optional&& emulateUserGesture) override; + void callFunctionOn(const Inspector::Protocol::Runtime::RemoteObjectId&, const String& functionDeclaration, RefPtr&& arguments, Optional&& doNotPauseOnExceptionsAndMuteConsole, Optional&& returnByValue, Optional&& generatePreview, Optional&& emulateUserGesture, Optional&& awaitPromise, Ref&&) override; // InspectorInstrumentation @@ -4812,8 +4818,14 @@ index 298465c52b42464c2733659e07f3f760174a95eb..ad8a6be61c27bdcbbe3b104b669d682d + void didReceiveMainResourceError(Frame&); private: - Inspector::InjectedScript injectedScriptForEval(Inspector::Protocol::ErrorString&, Optional&&); -@@ -72,7 +73,6 @@ private: +- Inspector::InjectedScript injectedScriptForEval(Inspector::Protocol::ErrorString&, Optional&&); +- void muteConsole(); +- void unmuteConsole(); ++ Inspector::InjectedScript injectedScriptForEval(Inspector::Protocol::ErrorString&, Optional&&) override; ++ void muteConsole() override; ++ void unmuteConsole() override; + void reportExecutionContextCreation(); + void notifyContextCreated(const Inspector::Protocol::Network::FrameId&, JSC::JSGlobalObject*, const DOMWrapperWorld&, SecurityOrigin* = nullptr); std::unique_ptr m_frontendDispatcher; RefPtr m_backendDispatcher;