fix: add eyedropper tool functionality to browser view (#27275)

This commit is contained in:
Michaela Laurencin 2021-01-21 13:02:29 -08:00 committed by GitHub
parent 96e8620e1b
commit 4f930b6e42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View file

@ -636,6 +636,9 @@ class WebContents : public gin::Wrappable<WebContents>,
SkColor color,
const std::vector<blink::mojom::ColorSuggestionPtr>& suggestions)
override;
std::unique_ptr<content::EyeDropper> OpenEyeDropper(
content::RenderFrameHost* frame,
content::EyeDropperListener* listener) override;
void RunFileChooser(content::RenderFrameHost* render_frame_host,
scoped_refptr<content::FileSelectListener> listener,
const blink::mojom::FileChooserParams& params) override;