mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 119.0.6045.0 (#1204232)
Mac: 13.5+ build system w/ 14.0 base SDK (Xcode 15.0) is now required.
This commit is contained in:
@@ -347,6 +347,7 @@ void CefBrowserPlatformDelegateOsr::DragTargetDragEnter(
|
||||
CefDragDataImpl* data_impl = static_cast<CefDragDataImpl*>(drag_data.get());
|
||||
base::AutoLock lock_scope(data_impl->lock());
|
||||
content::DropData* drop_data = data_impl->drop_data();
|
||||
drop_data->document_is_handling_drag = document_is_handling_drag_;
|
||||
const gfx::Point& screen_pt =
|
||||
GetScreenPoint(client_pt, /*want_dip_coords=*/false);
|
||||
blink::DragOperationsMask ops =
|
||||
@@ -494,6 +495,7 @@ void CefBrowserPlatformDelegateOsr::DragTargetDrop(const CefMouseEvent& event) {
|
||||
static_cast<CefDragDataImpl*>(drag_data_.get());
|
||||
base::AutoLock lock_scope(data_impl->lock());
|
||||
content::DropData* drop_data = data_impl->drop_data();
|
||||
drop_data->document_is_handling_drag = document_is_handling_drag_;
|
||||
int modifiers = TranslateWebEventModifiers(event.modifiers);
|
||||
|
||||
target_rwh->DragTargetDrop(*drop_data, transformed_pt,
|
||||
@@ -535,8 +537,11 @@ void CefBrowserPlatformDelegateOsr::StartDragging(
|
||||
}
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateOsr::UpdateDragCursor(
|
||||
ui::mojom::DragOperation operation) {
|
||||
void CefBrowserPlatformDelegateOsr::UpdateDragOperation(
|
||||
ui::mojom::DragOperation operation,
|
||||
bool document_is_handling_drag) {
|
||||
document_is_handling_drag_ = document_is_handling_drag;
|
||||
|
||||
CefRefPtr<CefRenderHandler> handler =
|
||||
browser_->GetClient()->GetRenderHandler();
|
||||
if (handler.get()) {
|
||||
|
@@ -82,7 +82,8 @@ class CefBrowserPlatformDelegateOsr
|
||||
const gfx::Vector2d& image_offset,
|
||||
const blink::mojom::DragEventSourceInfo& event_info,
|
||||
content::RenderWidgetHostImpl* source_rwh) override;
|
||||
void UpdateDragCursor(ui::mojom::DragOperation operation) override;
|
||||
void UpdateDragOperation(ui::mojom::DragOperation operation,
|
||||
bool document_is_handling_drag) override;
|
||||
void DragSourceEndedAt(int x, int y, cef_drag_operations_mask_t op) override;
|
||||
void DragSourceSystemDragEnded() override;
|
||||
void AccessibilityEventReceived(
|
||||
@@ -125,11 +126,16 @@ class CefBrowserPlatformDelegateOsr
|
||||
// We also keep track of the RenderViewHost we're dragging over to avoid
|
||||
// sending the drag exited message after leaving the current
|
||||
// view. |current_rvh_for_drag_| should not be dereferenced.
|
||||
void* current_rvh_for_drag_;
|
||||
void* current_rvh_for_drag_ = nullptr;
|
||||
|
||||
// We keep track of the RenderWidgetHost from which the current drag started,
|
||||
// in order to properly route the drag end message to it.
|
||||
base::WeakPtr<content::RenderWidgetHostImpl> drag_start_rwh_;
|
||||
|
||||
// Set to true when the document is handling the drag. This means that the
|
||||
// document has registered an interest in the dropped data and the renderer
|
||||
// process should pass the data to the document on drop.
|
||||
bool document_is_handling_drag_ = false;
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_OSR_BROWSER_PLATFORM_DELEGATE_OSR_H_
|
||||
|
@@ -108,7 +108,7 @@ struct PopulateAxNodeAttributes {
|
||||
case ax::mojom::IntAttribute::kInPageLinkTargetId:
|
||||
case ax::mojom::IntAttribute::kErrormessageIdDeprecated:
|
||||
case ax::mojom::IntAttribute::kDOMNodeId:
|
||||
case ax::mojom::IntAttribute::kDropeffect:
|
||||
case ax::mojom::IntAttribute::kDropeffectDeprecated:
|
||||
case ax::mojom::IntAttribute::kMemberOfId:
|
||||
case ax::mojom::IntAttribute::kNextFocusId:
|
||||
case ax::mojom::IntAttribute::kNextWindowFocusId:
|
||||
|
@@ -44,32 +44,10 @@ void CefWebContentsViewOSR::RenderViewCreated() {
|
||||
}
|
||||
}
|
||||
|
||||
gfx::NativeView CefWebContentsViewOSR::GetNativeView() const {
|
||||
return gfx::NativeView();
|
||||
}
|
||||
|
||||
gfx::NativeView CefWebContentsViewOSR::GetContentNativeView() const {
|
||||
return gfx::NativeView();
|
||||
}
|
||||
|
||||
gfx::NativeWindow CefWebContentsViewOSR::GetTopLevelNativeWindow() const {
|
||||
return gfx::NativeWindow();
|
||||
}
|
||||
|
||||
gfx::Rect CefWebContentsViewOSR::GetContainerBounds() const {
|
||||
return GetViewBounds();
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::Focus() {}
|
||||
|
||||
void CefWebContentsViewOSR::SetInitialFocus() {}
|
||||
|
||||
void CefWebContentsViewOSR::StoreFocus() {}
|
||||
|
||||
void CefWebContentsViewOSR::RestoreFocus() {}
|
||||
|
||||
void CefWebContentsViewOSR::FocusThroughTabTraversal(bool reverse) {}
|
||||
|
||||
void CefWebContentsViewOSR::GotFocus(
|
||||
content::RenderWidgetHostImpl* render_widget_host) {
|
||||
if (web_contents_) {
|
||||
@@ -98,19 +76,11 @@ void CefWebContentsViewOSR::TakeFocus(bool reverse) {
|
||||
}
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::FullscreenStateChanged(bool is_fullscreen) {}
|
||||
|
||||
content::DropData* CefWebContentsViewOSR::GetDropData() const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
gfx::Rect CefWebContentsViewOSR::GetViewBounds() const {
|
||||
CefRenderWidgetHostViewOSR* view = GetView();
|
||||
return view ? view->GetViewBounds() : gfx::Rect();
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::CreateView(gfx::NativeView context) {}
|
||||
|
||||
content::RenderWidgetHostViewBase* CefWebContentsViewOSR::CreateViewForWidget(
|
||||
content::RenderWidgetHost* render_widget_host) {
|
||||
if (render_widget_host->GetView()) {
|
||||
@@ -135,29 +105,6 @@ CefWebContentsViewOSR::CreateViewForChildWidget(
|
||||
render_widget_host, view);
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::SetPageTitle(const std::u16string& title) {}
|
||||
|
||||
void CefWebContentsViewOSR::RenderViewReady() {
|
||||
RenderViewCreated();
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::RenderViewHostChanged(
|
||||
content::RenderViewHost* old_host,
|
||||
content::RenderViewHost* new_host) {}
|
||||
|
||||
void CefWebContentsViewOSR::SetOverscrollControllerEnabled(bool enabled) {}
|
||||
|
||||
void CefWebContentsViewOSR::OnCapturerCountChanged() {}
|
||||
|
||||
void CefWebContentsViewOSR::UpdateWindowControlsOverlay(
|
||||
const gfx::Rect& bounding_rect) {}
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
bool CefWebContentsViewOSR::CloseTabAfterEventTrackingIfNeeded() {
|
||||
return false;
|
||||
}
|
||||
#endif // BUILDFLAG(IS_MAC)
|
||||
|
||||
void CefWebContentsViewOSR::ShowContextMenu(
|
||||
content::RenderFrameHost& render_frame_host,
|
||||
const content::ContextMenuParams& params) {
|
||||
@@ -176,6 +123,7 @@ void CefWebContentsViewOSR::ShowContextMenu(
|
||||
|
||||
void CefWebContentsViewOSR::StartDragging(
|
||||
const content::DropData& drop_data,
|
||||
const url::Origin& source_origin,
|
||||
blink::DragOperationsMask allowed_ops,
|
||||
const gfx::ImageSkia& image,
|
||||
const gfx::Vector2d& cursor_offset,
|
||||
@@ -192,11 +140,12 @@ void CefWebContentsViewOSR::StartDragging(
|
||||
}
|
||||
}
|
||||
|
||||
void CefWebContentsViewOSR::UpdateDragCursor(
|
||||
ui::mojom::DragOperation operation) {
|
||||
void CefWebContentsViewOSR::UpdateDragOperation(
|
||||
ui::mojom::DragOperation operation,
|
||||
bool document_is_handling_drag) {
|
||||
CefRefPtr<AlloyBrowserHostImpl> browser = GetBrowser();
|
||||
if (browser.get()) {
|
||||
browser->UpdateDragCursor(operation);
|
||||
browser->UpdateDragOperation(operation, document_is_handling_drag);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -39,51 +39,58 @@ class CefWebContentsViewOSR : public content::WebContentsView,
|
||||
void RenderViewCreated();
|
||||
|
||||
// WebContentsView methods.
|
||||
gfx::NativeView GetNativeView() const override;
|
||||
gfx::NativeView GetContentNativeView() const override;
|
||||
gfx::NativeWindow GetTopLevelNativeWindow() const override;
|
||||
gfx::NativeView GetNativeView() const override { return gfx::NativeView(); }
|
||||
gfx::NativeView GetContentNativeView() const override {
|
||||
return gfx::NativeView();
|
||||
}
|
||||
gfx::NativeWindow GetTopLevelNativeWindow() const override {
|
||||
return gfx::NativeWindow();
|
||||
}
|
||||
gfx::Rect GetContainerBounds() const override;
|
||||
void Focus() override;
|
||||
void SetInitialFocus() override;
|
||||
void StoreFocus() override;
|
||||
void RestoreFocus() override;
|
||||
void FocusThroughTabTraversal(bool reverse) override;
|
||||
content::DropData* GetDropData() const override;
|
||||
void Focus() override {}
|
||||
void SetInitialFocus() override {}
|
||||
void StoreFocus() override {}
|
||||
void RestoreFocus() override {}
|
||||
void FocusThroughTabTraversal(bool reverse) override {}
|
||||
content::DropData* GetDropData() const override { return nullptr; }
|
||||
gfx::Rect GetViewBounds() const override;
|
||||
void CreateView(gfx::NativeView context) override;
|
||||
void CreateView(gfx::NativeView context) override {}
|
||||
content::RenderWidgetHostViewBase* CreateViewForWidget(
|
||||
content::RenderWidgetHost* render_widget_host) override;
|
||||
content::RenderWidgetHostViewBase* CreateViewForChildWidget(
|
||||
content::RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const std::u16string& title) override;
|
||||
void RenderViewReady() override;
|
||||
void SetPageTitle(const std::u16string& title) override {}
|
||||
void RenderViewReady() override {}
|
||||
void RenderViewHostChanged(content::RenderViewHost* old_host,
|
||||
content::RenderViewHost* new_host) override;
|
||||
void SetOverscrollControllerEnabled(bool enabled) override;
|
||||
void OnCapturerCountChanged() override;
|
||||
void UpdateWindowControlsOverlay(const gfx::Rect& bounding_rect) override;
|
||||
content::RenderViewHost* new_host) override {}
|
||||
void SetOverscrollControllerEnabled(bool enabled) override {}
|
||||
void OnCapturerCountChanged() override {}
|
||||
void UpdateWindowControlsOverlay(const gfx::Rect& bounding_rect) override {}
|
||||
void CancelDragDropForPortalActivation() override {}
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
bool CloseTabAfterEventTrackingIfNeeded() override;
|
||||
bool CloseTabAfterEventTrackingIfNeeded() override { return false; }
|
||||
#endif
|
||||
|
||||
// RenderViewHostDelegateView methods.
|
||||
void ShowContextMenu(content::RenderFrameHost& render_frame_host,
|
||||
const content::ContextMenuParams& params) override;
|
||||
void StartDragging(const content::DropData& drop_data,
|
||||
const url::Origin& source_origin,
|
||||
blink::DragOperationsMask allowed_ops,
|
||||
const gfx::ImageSkia& image,
|
||||
const gfx::Vector2d& cursor_offset,
|
||||
const gfx::Rect& drag_obj_rect,
|
||||
const blink::mojom::DragEventSourceInfo& event_info,
|
||||
content::RenderWidgetHostImpl* source_rwh) override;
|
||||
void UpdateDragCursor(ui::mojom::DragOperation operation) override;
|
||||
void UpdateDragOperation(ui::mojom::DragOperation operation,
|
||||
bool document_is_handling_drag) override;
|
||||
virtual void GotFocus(
|
||||
content::RenderWidgetHostImpl* render_widget_host) override;
|
||||
virtual void LostFocus(
|
||||
content::RenderWidgetHostImpl* render_widget_host) override;
|
||||
virtual void TakeFocus(bool reverse) override;
|
||||
virtual void FullscreenStateChanged(bool is_fullscreen) override;
|
||||
virtual void FullscreenStateChanged(bool is_fullscreen) override {}
|
||||
|
||||
private:
|
||||
CefRenderWidgetHostViewOSR* GetView() const;
|
||||
|
Reference in New Issue
Block a user