[iOS] Add SwitchToTab button to the omnibox popup
This CL adds the SwitchToTab image and handling to the omnibox popup
row. It allows to switch easily to an opened tab based on omnibox
suggestions.
Bug: 893121
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: Ib440267802c1210ea416066c679a2ff4e963fbb6
Reviewed-on: https://chromium-review.googlesource.com/c/1268344
Commit-Queue: Gauthier Ambard <[email protected]>
Reviewed-by: Eugene But <[email protected]>
Reviewed-by: Stepan Khapugin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#599155}
diff --git a/ios/chrome/browser/ui/omnibox/popup/BUILD.gn b/ios/chrome/browser/ui/omnibox/popup/BUILD.gn
index d92c3c5f..374dcdc5 100644
--- a/ios/chrome/browser/ui/omnibox/popup/BUILD.gn
+++ b/ios/chrome/browser/ui/omnibox/popup/BUILD.gn
@@ -52,6 +52,7 @@
"self_sizing_table_view.mm",
]
deps = [
+ "resources:omnibox_popup_tab_match",
"//base",
"//components/image_fetcher/ios",
"//components/omnibox/browser",
@@ -73,9 +74,12 @@
]
deps = [
":popup",
+ ":popup_internal",
"//base",
+ "//components/omnibox/browser",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
+ "//ios/chrome/browser/ui/omnibox:omnibox_internal",
"//testing/gtest",
"//ui/base",
]