fix: EyeDropper working in devtools (31-x-y) (#43895)
fix: EyeDropper working in devtools (#43685) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
4e5de0ca44
commit
f387325079
2 changed files with 11 additions and 0 deletions
|
@ -798,6 +798,7 @@ void InspectableWebContents::SetEyeDropperActive(bool active) {
|
||||||
if (delegate_)
|
if (delegate_)
|
||||||
delegate_->DevToolsSetEyeDropperActive(active);
|
delegate_->DevToolsSetEyeDropperActive(active);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContents::ShowCertificateViewer(
|
void InspectableWebContents::ShowCertificateViewer(
|
||||||
const std::string& cert_chain) {}
|
const std::string& cert_chain) {}
|
||||||
|
|
||||||
|
@ -995,6 +996,13 @@ void InspectableWebContents::CloseContents(content::WebContents* source) {
|
||||||
CloseDevTools();
|
CloseDevTools();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<content::EyeDropper> InspectableWebContents::OpenEyeDropper(
|
||||||
|
content::RenderFrameHost* frame,
|
||||||
|
content::EyeDropperListener* listener) {
|
||||||
|
auto* delegate = web_contents_->GetDelegate();
|
||||||
|
return delegate ? delegate->OpenEyeDropper(frame, listener) : nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void InspectableWebContents::RunFileChooser(
|
void InspectableWebContents::RunFileChooser(
|
||||||
content::RenderFrameHost* render_frame_host,
|
content::RenderFrameHost* render_frame_host,
|
||||||
scoped_refptr<content::FileSelectListener> listener,
|
scoped_refptr<content::FileSelectListener> listener,
|
||||||
|
|
|
@ -206,6 +206,9 @@ class InspectableWebContents
|
||||||
bool HandleKeyboardEvent(content::WebContents*,
|
bool HandleKeyboardEvent(content::WebContents*,
|
||||||
const content::NativeWebKeyboardEvent&) override;
|
const content::NativeWebKeyboardEvent&) override;
|
||||||
void CloseContents(content::WebContents* source) override;
|
void CloseContents(content::WebContents* source) override;
|
||||||
|
std::unique_ptr<content::EyeDropper> OpenEyeDropper(
|
||||||
|
content::RenderFrameHost* frame,
|
||||||
|
content::EyeDropperListener* listener) override;
|
||||||
void RunFileChooser(content::RenderFrameHost* render_frame_host,
|
void RunFileChooser(content::RenderFrameHost* render_frame_host,
|
||||||
scoped_refptr<content::FileSelectListener> listener,
|
scoped_refptr<content::FileSelectListener> listener,
|
||||||
const blink::mojom::FileChooserParams& params) override;
|
const blink::mojom::FileChooserParams& params) override;
|
||||||
|
|
Loading…
Reference in a new issue