From 905adcb95ffcec3de94e30843c15fe001e9d9118 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 30 Sep 2021 11:25:49 +0200 Subject: Export a base background-color override from WebView again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit web_view_impl.h does not compile outside of blink, so we need the setter in WebView. Change-Id: Ibdd48b86cd026270a5c48c4d6ba7e3c251062438 Reviewed-by: Jüri Valdmann --- chromium/third_party/blink/public/web/web_view.h | 1 + chromium/third_party/blink/renderer/core/exported/web_view_impl.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chromium/third_party/blink/public/web/web_view.h b/chromium/third_party/blink/public/web/web_view.h index 7acd3f2bf49..7f799c8a700 100644 --- a/chromium/third_party/blink/public/web/web_view.h +++ b/chromium/third_party/blink/public/web/web_view.h @@ -357,6 +357,7 @@ class WebView { // know a background colour. This can be overridden by the methods below as // well. virtual void SetBaseBackgroundColor(SkColor) {} + virtual void SetBaseBackgroundColorOverrideForInspector(absl::optional) {} virtual void SetDeviceColorSpaceForTesting( const gfx::ColorSpace& color_space) = 0; diff --git a/chromium/third_party/blink/renderer/core/exported/web_view_impl.h b/chromium/third_party/blink/renderer/core/exported/web_view_impl.h index c2e704e745d..b48ff484883 100644 --- a/chromium/third_party/blink/renderer/core/exported/web_view_impl.h +++ b/chromium/third_party/blink/renderer/core/exported/web_view_impl.h @@ -247,7 +247,7 @@ class CORE_EXPORT WebViewImpl final : public WebView, void SetBackgroundColorOverrideForFullscreenController( absl::optional); void SetBaseBackgroundColorOverrideTransparent(bool override_to_transparent); - void SetBaseBackgroundColorOverrideForInspector(absl::optional); + void SetBaseBackgroundColorOverrideForInspector(absl::optional) override; // Resize the WebView. You likely should be using // MainFrameWidget()->Resize instead. -- cgit v1.2.1