Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 1 | # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | source_set("popup") { |
| 6 | sources = [ |
| 7 | "omnibox_popup_coordinator.h", |
| 8 | "omnibox_popup_coordinator.mm", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 9 | "omnibox_popup_mediator.h", |
| 10 | "omnibox_popup_mediator.mm", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 11 | "omnibox_popup_presenter.h", |
| 12 | "omnibox_popup_presenter.mm", |
| 13 | "omnibox_popup_provider.h", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 14 | "omnibox_popup_view_ios.h", |
| 15 | "omnibox_popup_view_ios.mm", |
| 16 | "omnibox_popup_view_suggestions_delegate.h", |
| 17 | ] |
| 18 | deps = [ |
| 19 | ":popup_internal", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 20 | ":popup_ui", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 21 | "//base", |
| 22 | "//components/image_fetcher/ios", |
| 23 | "//components/omnibox/browser", |
| 24 | "//components/open_from_clipboard", |
Robbie Gibson | 2666ab4 | 2019-05-20 12:13:07 | [diff] [blame] | 25 | "//components/search_engines", |
Gauthier Ambard | 900aca7b | 2018-12-10 17:28:00 | [diff] [blame] | 26 | "//ios/chrome/app/strings", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 27 | "//ios/chrome/browser", |
| 28 | "//ios/chrome/browser/browser_state", |
Stepan Khapugin | 2473768 | 2019-04-12 13:27:36 | [diff] [blame] | 29 | "//ios/chrome/browser/favicon", |
Robbie Gibson | 2666ab4 | 2019-05-20 12:13:07 | [diff] [blame] | 30 | "//ios/chrome/browser/search_engines", |
Robbie Gibson | 6f57eba7 | 2019-04-08 11:38:35 | [diff] [blame] | 31 | "//ios/chrome/browser/ui:feature_flags", |
[email protected] | 93a0598 | 2018-03-14 15:40:17 | [diff] [blame] | 32 | "//ios/chrome/browser/ui/commands", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 33 | "//ios/chrome/browser/ui/ntp:util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 34 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
[email protected] | c8da8f8 | 2018-06-22 09:56:23 | [diff] [blame] | 35 | "//ios/chrome/browser/ui/toolbar/buttons", |
Robbie Gibson | ed1ae0a | 2019-08-07 17:06:19 | [diff] [blame] | 36 | "//ios/chrome/browser/ui/toolbar/public", |
Mark Cogan | 02ed6c77 | 2018-05-31 17:00:51 | [diff] [blame] | 37 | "//ios/chrome/browser/ui/toolbar/public:feature_flags", |
Gauthier Ambard | 4d0fb740 | 2019-04-23 13:05:16 | [diff] [blame] | 38 | "//ios/chrome/browser/ui/util", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 39 | "//ios/chrome/browser/web_state_list:web_state_list", |
Robbie Gibson | ed1ae0a | 2019-08-07 17:06:19 | [diff] [blame] | 40 | "//ios/chrome/common/colors", |
Stepan Khapugin | 2473768 | 2019-04-12 13:27:36 | [diff] [blame] | 41 | "//ios/chrome/common/favicon", |
Javier Ernesto Flores Robles | b178276 | 2020-02-14 23:30:00 | [diff] [blame^] | 42 | "//ios/chrome/common/ui/util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 43 | "//ios/web/public:public", |
| 44 | "//net", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 45 | "//ui/base", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 46 | ] |
| 47 | configs += [ "//build/config/compiler:enable_arc" ] |
| 48 | } |
| 49 | |
Stepan Khapugin | 8c350b8 | 2019-07-15 09:40:11 | [diff] [blame] | 50 | source_set("popup_accessibility_identifier_constants") { |
| 51 | sources = [ |
| 52 | "omnibox_popup_accessibility_identifier_constants.h", |
| 53 | "omnibox_popup_accessibility_identifier_constants.mm", |
| 54 | ] |
| 55 | configs += [ "//build/config/compiler:enable_arc" ] |
| 56 | } |
| 57 | |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 58 | source_set("popup_ui") { |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 59 | sources = [ |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 60 | "autocomplete_result_consumer.h", |
| 61 | "autocomplete_suggestion.h", |
Robbie Gibson | b8ace37e | 2019-05-22 12:42:47 | [diff] [blame] | 62 | "favicon_retriever.h", |
| 63 | "image_retriever.h", |
| 64 | "omnibox_icon.h", |
| 65 | "omnibox_icon_view.h", |
| 66 | "omnibox_icon_view.mm", |
Robbie Gibson | 882734b | 2019-03-26 14:19:44 | [diff] [blame] | 67 | "omnibox_popup_row_cell.h", |
| 68 | "omnibox_popup_row_cell.mm", |
Robbie Gibson | 882734b | 2019-03-26 14:19:44 | [diff] [blame] | 69 | "omnibox_popup_view_controller.h", |
| 70 | "omnibox_popup_view_controller.mm", |
[email protected] | de350e4 | 2018-04-13 17:17:57 | [diff] [blame] | 71 | "self_sizing_table_view.h", |
| 72 | "self_sizing_table_view.mm", |
Robbie Gibson | 13d29bc | 2019-05-24 14:29:14 | [diff] [blame] | 73 | "simple_omnibox_icon.h", |
| 74 | "simple_omnibox_icon.mm", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 75 | ] |
| 76 | deps = [ |
Stepan Khapugin | 8c350b8 | 2019-07-15 09:40:11 | [diff] [blame] | 77 | ":popup_accessibility_identifier_constants", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 78 | "resources:omnibox_popup_tab_match", |
Robbie Gibson | cef7fe7 | 2019-08-05 17:54:35 | [diff] [blame] | 79 | "resources:omnibox_suggestion_answer_icon_color", |
| 80 | "resources:omnibox_suggestion_answer_icon_dark_color", |
| 81 | "resources:omnibox_suggestion_icon_color", |
| 82 | "resources:omnibox_suggestion_icon_dark_color", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 83 | "//base", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 84 | "//components/omnibox/common", |
| 85 | "//ios/chrome/app/strings:ios_strings_grit", |
| 86 | "//ios/chrome/app/theme", |
Robbie Gibson | b8ace37e | 2019-05-22 12:42:47 | [diff] [blame] | 87 | "//ios/chrome/browser/ui:feature_flags", |
Robbie Gibson | ed15d79 | 2019-04-26 18:14:18 | [diff] [blame] | 88 | "//ios/chrome/browser/ui/colors", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 89 | "//ios/chrome/browser/ui/commands", |
Robbie Gibson | e475ec7 | 2019-04-05 14:26:09 | [diff] [blame] | 90 | "//ios/chrome/browser/ui/elements", |
Robbie Gibson | fdbb2db | 2019-06-14 11:12:30 | [diff] [blame] | 91 | "//ios/chrome/browser/ui/ntp_tile_views", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 92 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
Robbie Gibson | 13d29bc | 2019-05-24 14:29:14 | [diff] [blame] | 93 | "//ios/chrome/browser/ui/omnibox:omnibox_suggestion_icon_util", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 94 | "//ios/chrome/browser/ui/toolbar/buttons", |
Gauthier Ambard | d0a5d1f4 | 2018-12-03 12:20:53 | [diff] [blame] | 95 | "//ios/chrome/browser/ui/toolbar/public", |
Gauthier Ambard | db6a033 | 2018-10-24 07:43:08 | [diff] [blame] | 96 | "//ios/chrome/browser/ui/util", |
Robbie Gibson | cef7fe7 | 2019-08-05 17:54:35 | [diff] [blame] | 97 | "//ios/chrome/common/colors", |
Javier Ernesto Flores Robles | b178276 | 2020-02-14 23:30:00 | [diff] [blame^] | 98 | "//ios/chrome/common/ui/util", |
Robbie Gibson | 13d29bc | 2019-05-24 14:29:14 | [diff] [blame] | 99 | "//ios/public/provider/chrome/browser", |
| 100 | "//ios/public/provider/chrome/browser/images", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 101 | "//ui/base", |
| 102 | "//url", |
| 103 | ] |
| 104 | configs += [ "//build/config/compiler:enable_arc" ] |
| 105 | } |
| 106 | |
| 107 | source_set("popup_internal") { |
| 108 | sources = [ |
| 109 | "autocomplete_match_formatter.h", |
| 110 | "autocomplete_match_formatter.mm", |
Robbie Gibson | b8ace37e | 2019-05-22 12:42:47 | [diff] [blame] | 111 | "omnibox_icon_formatter.h", |
| 112 | "omnibox_icon_formatter.mm", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 113 | ] |
| 114 | deps = [ |
Robbie Gibson | ef309d8 | 2019-05-16 10:14:44 | [diff] [blame] | 115 | ":popup_ui", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 116 | "//base", |
| 117 | "//components/omnibox/browser", |
| 118 | "//ios/chrome/browser/browser_state", |
Robbie Gibson | 744783d | 2019-05-02 23:16:24 | [diff] [blame] | 119 | "//ios/chrome/browser/ui:feature_flags", |
Robbie Gibson | b8ace37e | 2019-05-22 12:42:47 | [diff] [blame] | 120 | "//ios/chrome/browser/ui/colors", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 121 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
| 122 | "//ios/chrome/browser/ui/util", |
Robbie Gibson | cef7fe7 | 2019-08-05 17:54:35 | [diff] [blame] | 123 | "//ios/chrome/common/colors", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 124 | "//ios/third_party/material_components_ios", |
| 125 | ] |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 126 | configs += [ "//build/config/compiler:enable_arc" ] |
| 127 | } |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 128 | |
| 129 | source_set("unit_tests") { |
| 130 | configs += [ "//build/config/compiler:enable_arc" ] |
| 131 | testonly = true |
Stepan Khapugin | 2036c06 | 2020-01-22 12:04:48 | [diff] [blame] | 132 | sources = [ "omnibox_popup_row_cell_unittest.mm" ] |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 133 | deps = [ |
| 134 | ":popup", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 135 | ":popup_internal", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 136 | ":popup_ui", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 137 | "//base", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 138 | "//components/omnibox/browser", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 139 | "//ios/chrome/app/strings", |
| 140 | "//ios/chrome/browser", |
| 141 | "//testing/gtest", |
| 142 | "//ui/base", |
| 143 | ] |
| 144 | } |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 145 | |
| 146 | source_set("eg_tests") { |
| 147 | testonly = true |
Nico Weber | 272fb933 | 2020-01-14 20:29:10 | [diff] [blame] | 148 | sources = [ "omnibox_popup_egtest.mm" ] |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 149 | deps = [ |
Stepan Khapugin | 8c350b8 | 2019-07-15 09:40:11 | [diff] [blame] | 150 | ":popup_accessibility_identifier_constants", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 151 | ":popup_internal", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 152 | ":popup_ui", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 153 | "//base", |
| 154 | "//base/test:test_support", |
| 155 | "//components/omnibox/browser", |
| 156 | "//ios/chrome/browser/ui:feature_flags", |
Gauthier Ambard | a49a188c2 | 2018-11-27 16:03:33 | [diff] [blame] | 157 | "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant", |
Gauthier Ambard | 54ecc1a | 2018-12-04 14:56:05 | [diff] [blame] | 158 | "//ios/chrome/test/app:test_support", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 159 | "//ios/chrome/test/earl_grey:test_support", |
| 160 | "//ios/testing/earl_grey:earl_grey_support", |
| 161 | "//ios/third_party/earl_grey:earl_grey+link", |
Mark Cogan | cb0a29d | 2019-11-04 14:38:32 | [diff] [blame] | 162 | "//net:test_support", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 163 | "//testing/gmock", |
| 164 | ] |
| 165 | libs = [ "XCTest.framework" ] |
| 166 | configs += [ "//build/config/compiler:enable_arc" ] |
Stepan Khapugin | 8c350b8 | 2019-07-15 09:40:11 | [diff] [blame] | 167 | defines = [ "CHROME_EARL_GREY_1" ] |
| 168 | } |
| 169 | |
| 170 | source_set("eg2_tests") { |
| 171 | defines = [ "CHROME_EARL_GREY_2" ] |
| 172 | configs += [ |
| 173 | "//build/config/compiler:enable_arc", |
| 174 | "//build/config/ios:xctest_config", |
| 175 | ] |
| 176 | testonly = true |
Nico Weber | 272fb933 | 2020-01-14 20:29:10 | [diff] [blame] | 177 | sources = [ "omnibox_popup_egtest.mm" ] |
Stepan Khapugin | 8c350b8 | 2019-07-15 09:40:11 | [diff] [blame] | 178 | deps = [ |
| 179 | ":popup_accessibility_identifier_constants", |
| 180 | "//base", |
| 181 | "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant", |
| 182 | "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| 183 | "//ios/testing/earl_grey:eg_test_support+eg2", |
| 184 | "//ios/third_party/earl_grey2:test_lib", |
| 185 | "//net:test_support", |
| 186 | ] |
| 187 | libs = [ "UIKit.framework" ] |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 188 | } |