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", |
Gauthier Ambard | 900aca7b | 2018-12-10 17:28:00 | [diff] [blame] | 25 | "//ios/chrome/app/strings", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 26 | "//ios/chrome/browser", |
| 27 | "//ios/chrome/browser/browser_state", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 28 | "//ios/chrome/browser/ui", |
[email protected] | 93a0598 | 2018-03-14 15:40:17 | [diff] [blame] | 29 | "//ios/chrome/browser/ui/commands", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 30 | "//ios/chrome/browser/ui/ntp:util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 31 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
[email protected] | 46a8d7b9 | 2018-10-09 16:09:40 | [diff] [blame] | 32 | "//ios/chrome/browser/ui/omnibox/popup/shortcuts", |
[email protected] | c8da8f8 | 2018-06-22 09:56:23 | [diff] [blame] | 33 | "//ios/chrome/browser/ui/toolbar/buttons", |
Mark Cogan | 02ed6c77 | 2018-05-31 17:00:51 | [diff] [blame] | 34 | "//ios/chrome/browser/ui/toolbar/public:feature_flags", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 35 | "//ios/chrome/browser/web_state_list:web_state_list", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 36 | "//ios/web/public:public", |
| 37 | "//net", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 38 | "//ui/base", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 39 | ] |
| 40 | configs += [ "//build/config/compiler:enable_arc" ] |
| 41 | } |
| 42 | |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 43 | source_set("popup_ui") { |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 44 | sources = [ |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 45 | "autocomplete_result_consumer.h", |
| 46 | "autocomplete_suggestion.h", |
| 47 | "image_retriever.h", |
| 48 | "omnibox_popup_base_view_controller+internal.h", |
| 49 | "omnibox_popup_base_view_controller.h", |
| 50 | "omnibox_popup_base_view_controller.mm", |
| 51 | "omnibox_popup_legacy_view_controller.h", |
| 52 | "omnibox_popup_legacy_view_controller.mm", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 53 | "omnibox_popup_row.h", |
| 54 | "omnibox_popup_row.mm", |
Robbie Gibson | 882734b | 2019-03-26 14:19:44 | [diff] [blame] | 55 | "omnibox_popup_row_cell.h", |
| 56 | "omnibox_popup_row_cell.mm", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 57 | "omnibox_popup_truncating_label.h", |
| 58 | "omnibox_popup_truncating_label.mm", |
Robbie Gibson | 882734b | 2019-03-26 14:19:44 | [diff] [blame] | 59 | "omnibox_popup_view_controller.h", |
| 60 | "omnibox_popup_view_controller.mm", |
[email protected] | de350e4 | 2018-04-13 17:17:57 | [diff] [blame] | 61 | "self_sizing_table_view.h", |
| 62 | "self_sizing_table_view.mm", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 63 | ] |
| 64 | deps = [ |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 65 | "resources:omnibox_popup_tab_match", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 66 | "//base", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 67 | "//components/omnibox/common", |
| 68 | "//ios/chrome/app/strings:ios_strings_grit", |
| 69 | "//ios/chrome/app/theme", |
| 70 | "//ios/chrome/browser/ui/commands", |
Robbie Gibson | e475ec7 | 2019-04-05 14:26:09 | [diff] [blame^] | 71 | "//ios/chrome/browser/ui/elements", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 72 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 73 | "//ios/chrome/browser/ui/toolbar/buttons", |
Gauthier Ambard | d0a5d1f4 | 2018-12-03 12:20:53 | [diff] [blame] | 74 | "//ios/chrome/browser/ui/toolbar/public", |
Gauthier Ambard | db6a033 | 2018-10-24 07:43:08 | [diff] [blame] | 75 | "//ios/chrome/browser/ui/util", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 76 | "//ios/chrome/common/ui_util", |
| 77 | "//ui/base", |
| 78 | "//url", |
| 79 | ] |
| 80 | configs += [ "//build/config/compiler:enable_arc" ] |
| 81 | } |
| 82 | |
| 83 | source_set("popup_internal") { |
| 84 | sources = [ |
| 85 | "autocomplete_match_formatter.h", |
| 86 | "autocomplete_match_formatter.mm", |
| 87 | ] |
| 88 | deps = [ |
| 89 | "//base", |
| 90 | "//components/omnibox/browser", |
| 91 | "//ios/chrome/browser/browser_state", |
| 92 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
| 93 | "//ios/chrome/browser/ui/util", |
| 94 | "//ios/third_party/material_components_ios", |
| 95 | ] |
| 96 | |
| 97 | # Temporary until ios_internal CL is submitted |
| 98 | public_deps = [ |
| 99 | ":popup_ui", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 100 | ] |
| 101 | configs += [ "//build/config/compiler:enable_arc" ] |
| 102 | } |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 103 | |
| 104 | source_set("unit_tests") { |
| 105 | configs += [ "//build/config/compiler:enable_arc" ] |
| 106 | testonly = true |
| 107 | sources = [ |
| 108 | "omnibox_popup_view_controller_unittest.mm", |
| 109 | ] |
| 110 | deps = [ |
| 111 | ":popup", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 112 | ":popup_internal", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 113 | ":popup_ui", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 114 | "//base", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 115 | "//components/omnibox/browser", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 116 | "//ios/chrome/app/strings", |
| 117 | "//ios/chrome/browser", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 118 | "//testing/gtest", |
| 119 | "//ui/base", |
| 120 | ] |
| 121 | } |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 122 | |
| 123 | source_set("eg_tests") { |
| 124 | testonly = true |
| 125 | sources = [ |
| 126 | "omnibox_popup_egtest.mm", |
| 127 | ] |
| 128 | deps = [ |
| 129 | ":popup_internal", |
Robbie Gibson | 78f7e55 | 2019-03-26 11:40:33 | [diff] [blame] | 130 | ":popup_ui", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 131 | "//base", |
| 132 | "//base/test:test_support", |
| 133 | "//components/omnibox/browser", |
| 134 | "//ios/chrome/browser/ui:feature_flags", |
Gauthier Ambard | a49a188c2 | 2018-11-27 16:03:33 | [diff] [blame] | 135 | "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 136 | "//ios/chrome/browser/ui/tab_grid:egtest_support", |
Gauthier Ambard | 54ecc1a | 2018-12-04 14:56:05 | [diff] [blame] | 137 | "//ios/chrome/test/app:test_support", |
Gauthier Ambard | 0810035 | 2018-11-23 15:26:56 | [diff] [blame] | 138 | "//ios/chrome/test/earl_grey:test_support", |
| 139 | "//ios/testing/earl_grey:earl_grey_support", |
| 140 | "//ios/third_party/earl_grey:earl_grey+link", |
| 141 | "//testing/gmock", |
| 142 | ] |
| 143 | libs = [ "XCTest.framework" ] |
| 144 | configs += [ "//build/config/compiler:enable_arc" ] |
| 145 | } |