[iOS] Add drag-n-drop to the omnibox

Desktop / Chromium - Jean-Fran├žois Geyelin [chromium.org] - 9 August 2017 07:54 EDT

The purpose of the DropAndNavigateInteraction class is to be added to any view where it would make sense to receive a URL. For now, that class only handles drags containing URLs, but it could optionally generate queries for drags only containing NSStrings, UIImages, etc...

Bug: 753331 Change-Id: I9643a40b617fcddbb521ebab4746b4bdb36c0273 Reviewed-on: https://chromium-review.googlesource.com/606648 Commit-Queue: Jean-Fran├žois Geyelin

7f74247 [iOS] Add drag-n-drop to the omnibox.
ios/chrome/browser/BUILD.gn | 1 +
ios/chrome/browser/drag_and_drop/BUILD.gn | 30 +++++++++
ios/chrome/browser/drag_and_drop/OWNERS | 1 +
.../drag_and_drop/drop_and_navigate_delegate.h | 19 ++++++
.../drag_and_drop/drop_and_navigate_interaction.h | 29 +++++++++
.../drag_and_drop/drop_and_navigate_interaction.mm | 75 ++++++++++++++++++++++
.../drop_and_navigate_interaction_unittest.mm | 23 +++++++
ios/chrome/browser/ui/toolbar/BUILD.gn | 1 +
.../browser/ui/toolbar/web_toolbar_controller.mm | 32 ++++++++-
9 files changed, 208 insertions(+), 3 deletions(-)

Upstream: git.chromium.org


  • Share