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

Desktop / Chromium - Jean-Fran├žois Geyelin [chromium.org] - 9 August 2017 15:23 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: I5ddc44079e4adeb86b0b9b62eca4153c8a46b5d2 TBR: justincohen@chromium.org Reviewed-on: https://chromium-review.googlesource.com/608131 Commit-Queue: Jean-Fran├žois Geyelin

fc457d6 [iOS][Reland] Add drag-n-drop to the omnibox.
ios/chrome/browser/BUILD.gn | 1 +
ios/chrome/browser/drag_and_drop/BUILD.gn | 31 +++++++++
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 | 26 ++++++++
ios/chrome/browser/ui/toolbar/BUILD.gn | 1 +
.../browser/ui/toolbar/web_toolbar_controller.mm | 32 ++++++++-
ios/chrome/test/BUILD.gn | 1 +
10 files changed, 213 insertions(+), 3 deletions(-)

Upstream: git.chromium.org


  • Share