diff --git a/shell/browser/ui/inspectable_web_contents.cc b/shell/browser/ui/inspectable_web_contents.cc index e187919d8c2c..8f0ccfb2cf82 100644 --- a/shell/browser/ui/inspectable_web_contents.cc +++ b/shell/browser/ui/inspectable_web_contents.cc @@ -798,6 +798,7 @@ void InspectableWebContents::SetEyeDropperActive(bool active) { if (delegate_) delegate_->DevToolsSetEyeDropperActive(active); } + void InspectableWebContents::ShowCertificateViewer( const std::string& cert_chain) {} @@ -995,6 +996,13 @@ void InspectableWebContents::CloseContents(content::WebContents* source) { CloseDevTools(); } +std::unique_ptr InspectableWebContents::OpenEyeDropper( + content::RenderFrameHost* frame, + content::EyeDropperListener* listener) { + auto* delegate = web_contents_->GetDelegate(); + return delegate ? delegate->OpenEyeDropper(frame, listener) : nullptr; +} + void InspectableWebContents::RunFileChooser( content::RenderFrameHost* render_frame_host, scoped_refptr listener, diff --git a/shell/browser/ui/inspectable_web_contents.h b/shell/browser/ui/inspectable_web_contents.h index 19a8b3902d22..aeff9595ae7b 100644 --- a/shell/browser/ui/inspectable_web_contents.h +++ b/shell/browser/ui/inspectable_web_contents.h @@ -206,6 +206,9 @@ class InspectableWebContents bool HandleKeyboardEvent(content::WebContents*, const content::NativeWebKeyboardEvent&) override; void CloseContents(content::WebContents* source) override; + std::unique_ptr OpenEyeDropper( + content::RenderFrameHost* frame, + content::EyeDropperListener* listener) override; void RunFileChooser(content::RenderFrameHost* render_frame_host, scoped_refptr listener, const blink::mojom::FileChooserParams& params) override;