mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
2668974: WebShare: Implement SharingServicePicker
https://chromium-review.googlesource.com/c/chromium/src/+/2668974
This commit is contained in:
committed by
Samuel Attard
parent
d1746d0021
commit
74577f2156
@@ -645,6 +645,13 @@ void OffScreenRenderWidgetHostView::SpeakSelection() {}
|
||||
void OffScreenRenderWidgetHostView::SetWindowFrameInScreen(
|
||||
const gfx::Rect& rect) {}
|
||||
|
||||
void OffScreenRenderWidgetHostView::ShowSharePicker(
|
||||
const std::string& title,
|
||||
const std::string& text,
|
||||
const std::string& url,
|
||||
const std::vector<std::string>& file_paths,
|
||||
blink::mojom::ShareService::ShareCallback callback) {}
|
||||
|
||||
bool OffScreenRenderWidgetHostView::UpdateNSViewAndDisplay() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -100,6 +100,12 @@ class OffScreenRenderWidgetHostView : public content::RenderWidgetHostViewBase,
|
||||
void ShowDefinitionForSelection() override;
|
||||
void SpeakSelection() override;
|
||||
void SetWindowFrameInScreen(const gfx::Rect& rect) override;
|
||||
void ShowSharePicker(
|
||||
const std::string& title,
|
||||
const std::string& text,
|
||||
const std::string& url,
|
||||
const std::vector<std::string>& file_paths,
|
||||
blink::mojom::ShareService::ShareCallback callback) override;
|
||||
bool UpdateNSViewAndDisplay();
|
||||
#endif // defined(OS_MAC)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user