Create OmniboxPopupMediator

Desktop / Chromium - stkhapugin@chromium.org [chromium.org] - 12 September 2017 11:02 EDT

Creates OmniboxPopupMediator and AutocompleteResultsWrapper, moves logic to these classes form OmniboxPopupMaterialVC.

Bug: Change-Id: I753b37f4831d43956a146ac025cf6d166bf46500 Reviewed-on: https://chromium-review.googlesource.com/608242

ed0a36c Create OmniboxPopupMediator.
ios/chrome/browser/ui/omnibox/BUILD.gn | 7 +
.../ui/omnibox/autocomplete_match_formatter.h | 26 ++
.../ui/omnibox/autocomplete_match_formatter.mm | 357 ++++++++++++++++
.../ui/omnibox/autocomplete_result_consumer.h | 39 ++
.../browser/ui/omnibox/autocomplete_suggestion.h | 42 ++
ios/chrome/browser/ui/omnibox/image_retriever.h | 12 +
.../omnibox_popup_material_view_controller.h | 40 +-
.../omnibox_popup_material_view_controller.mm | 476 +++------------------
.../browser/ui/omnibox/omnibox_popup_mediator.h | 44 ++
.../browser/ui/omnibox/omnibox_popup_mediator.mm | 128 ++++++
.../browser/ui/omnibox/omnibox_popup_view_ios.h | 4 +-
.../browser/ui/omnibox/omnibox_popup_view_ios.mm | 15 +-
12 files changed, 743 insertions(+), 447 deletions(-)

Upstream: git.chromium.org


  • Share