diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/exo/data_device.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/exo/data_device.h')
-rw-r--r-- | chromium/components/exo/data_device.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chromium/components/exo/data_device.h b/chromium/components/exo/data_device.h index 9f110ef6dfb..8b0bb19b371 100644 --- a/chromium/components/exo/data_device.h +++ b/chromium/components/exo/data_device.h @@ -48,17 +48,15 @@ class DataDevice : public WMHelper::DragDropObserver, // be null if the data will be transferred only in the client. |origin| is // the surface which starts the drag and drop operation. |icon| is the // nullable image which is rendered at the next to cursor while drag - // operation. |serial| is the unique number comes from input events which - // triggers the drag and drop operation. + // operation. void StartDrag(DataSource* source, Surface* origin, Surface* icon, ui::DragDropTypes::DragEventSource event_source); // Sets selection data to the clipboard. - // |source| represents data comes from the client. |serial| is the unique - // number comes from input events which triggers the drag and drop operation. - void SetSelection(DataSource* source, uint32_t serial); + // |source| represents data comes from the client. + void SetSelection(DataSource* source); // Overridden from WMHelper::DragDropObserver: void OnDragEntered(const ui::DropTargetEvent& event) override; @@ -91,6 +89,9 @@ class DataDevice : public WMHelper::DragDropObserver, std::unique_ptr<ScopedDataOffer> data_offer_; std::unique_ptr<ScopedSurface> focused_surface_; + base::OnceClosure quit_closure_; + bool drop_succeeded_; + DISALLOW_COPY_AND_ASSIGN(DataDevice); }; |