mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 91.0.4472.0 (#870763)
This commit is contained in:
@@ -325,8 +325,9 @@ void CefBrowserPlatformDelegateOsr::DragTargetDragEnter(
|
||||
return;
|
||||
}
|
||||
|
||||
current_rwh_for_drag_->DragTargetDragEnter(
|
||||
*drop_data, transformed_pt, gfx::PointF(screen_pt), ops, modifiers);
|
||||
current_rwh_for_drag_->DragTargetDragEnter(*drop_data, transformed_pt,
|
||||
gfx::PointF(screen_pt), ops,
|
||||
modifiers, base::DoNothing());
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateOsr::DragTargetDragOver(
|
||||
@@ -381,7 +382,7 @@ void CefBrowserPlatformDelegateOsr::DragTargetDragOver(
|
||||
int modifiers = TranslateWebEventModifiers(event.modifiers);
|
||||
|
||||
target_rwh->DragTargetDragOver(transformed_pt, gfx::PointF(screen_pt), ops,
|
||||
modifiers);
|
||||
modifiers, base::DoNothing());
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateOsr::DragTargetDragLeave() {
|
||||
@@ -451,7 +452,8 @@ void CefBrowserPlatformDelegateOsr::DragTargetDrop(const CefMouseEvent& event) {
|
||||
int modifiers = TranslateWebEventModifiers(event.modifiers);
|
||||
|
||||
target_rwh->DragTargetDrop(*drop_data, transformed_pt,
|
||||
gfx::PointF(screen_pt), modifiers);
|
||||
gfx::PointF(screen_pt), modifiers,
|
||||
base::DoNothing());
|
||||
}
|
||||
|
||||
drag_data_ = nullptr;
|
||||
|
@@ -653,7 +653,7 @@ void CefRenderWidgetHostViewOSR::Destroy() {
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SetTooltipText(
|
||||
const base::string16& tooltip_text) {
|
||||
const std::u16string& tooltip_text) {
|
||||
if (!browser_impl_.get())
|
||||
return;
|
||||
|
||||
@@ -817,7 +817,7 @@ void CefRenderWidgetHostViewOSR::ImeCancelComposition() {
|
||||
RequestImeCompositionUpdate(false);
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SelectionChanged(const base::string16& text,
|
||||
void CefRenderWidgetHostViewOSR::SelectionChanged(const std::u16string& text,
|
||||
size_t offset,
|
||||
const gfx::Range& range) {
|
||||
RenderWidgetHostViewBase::SelectionChanged(text, offset, range);
|
||||
@@ -1406,6 +1406,15 @@ void CefRenderWidgetHostViewOSR::SpeakSelection() {}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SetWindowFrameInScreen(const gfx::Rect& rect) {
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::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) {
|
||||
std::move(callback).Run(blink::mojom::ShareError::INTERNAL_ERROR);
|
||||
}
|
||||
#endif // defined(OS_MAC)
|
||||
|
||||
void CefRenderWidgetHostViewOSR::OnPaint(const gfx::Rect& damage_rect,
|
||||
|
@@ -134,6 +134,12 @@ class CefRenderWidgetHostViewOSR
|
||||
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;
|
||||
#endif // defined(OS_MAC)
|
||||
|
||||
// RenderWidgetHostViewBase implementation.
|
||||
@@ -144,7 +150,7 @@ class CefRenderWidgetHostViewOSR
|
||||
void SetIsLoading(bool is_loading) override;
|
||||
void RenderProcessGone() override;
|
||||
void Destroy() override;
|
||||
void SetTooltipText(const base::string16& tooltip_text) override;
|
||||
void SetTooltipText(const std::u16string& tooltip_text) override;
|
||||
content::CursorManager* GetCursorManager() override;
|
||||
gfx::Size GetCompositorViewportPixelSize() override;
|
||||
void CopyFromSurface(
|
||||
@@ -171,7 +177,7 @@ class CefRenderWidgetHostViewOSR
|
||||
RenderWidgetHostViewBase* target_view,
|
||||
gfx::PointF* transformed_point) override;
|
||||
void DidNavigate() override;
|
||||
void SelectionChanged(const base::string16& text,
|
||||
void SelectionChanged(const std::u16string& text,
|
||||
size_t offset,
|
||||
const gfx::Range& range) override;
|
||||
const viz::LocalSurfaceId& GetLocalSurfaceId() const override;
|
||||
|
@@ -128,7 +128,7 @@ CefWebContentsViewOSR::CreateViewForChildWidget(
|
||||
render_widget_host, view);
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::SetPageTitle(const base::string16& title) {}
|
||||
void CefWebContentsViewOSR::SetPageTitle(const std::u16string& title) {}
|
||||
|
||||
void CefWebContentsViewOSR::RenderViewReady() {
|
||||
RenderViewCreated();
|
||||
|
@@ -50,7 +50,7 @@ class CefWebContentsViewOSR : public content::WebContentsView,
|
||||
content::RenderWidgetHost* render_widget_host) override;
|
||||
content::RenderWidgetHostViewBase* CreateViewForChildWidget(
|
||||
content::RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const base::string16& title) override;
|
||||
void SetPageTitle(const std::u16string& title) override;
|
||||
void RenderViewReady() override;
|
||||
void RenderViewHostChanged(content::RenderViewHost* old_host,
|
||||
content::RenderViewHost* new_host) override;
|
||||
|
Reference in New Issue
Block a user