Skip to content

Commit

Permalink
4874216: Portals: Cancel drag-drop in predecessor before activation
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Sep 23, 2023
1 parent b34e0ee commit b67905d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/browser/osr/osr_web_contents_view.cc
Expand Up @@ -104,6 +104,8 @@ content::DropData* OffScreenWebContentsView::GetDropData() const {
return nullptr;
}

void OffScreenWebContentsView::CancelDragDropForPortalActivation() {}

gfx::Rect OffScreenWebContentsView::GetViewBounds() const {
return GetView() ? GetView()->GetViewBounds() : gfx::Rect();
}
Expand Down
1 change: 1 addition & 0 deletions shell/browser/osr/osr_web_contents_view.h
Expand Up @@ -53,6 +53,7 @@ class OffScreenWebContentsView : public content::WebContentsView,
void RestoreFocus() override;
void FocusThroughTabTraversal(bool reverse) override;
content::DropData* GetDropData() const override;
void CancelDragDropForPortalActivation() override;
gfx::Rect GetViewBounds() const override;
void CreateView(gfx::NativeView context) override;
content::RenderWidgetHostViewBase* CreateViewForWidget(
Expand Down

0 comments on commit b67905d

Please sign in to comment.