blob: 129f15433cc565bf56cf71f6c585bbdd68f359b3 [file] [log] [blame]
Gauthier Ambarde685b2df2017-12-14 14:16:581# 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
5source_set("popup") {
6 sources = [
7 "omnibox_popup_coordinator.h",
8 "omnibox_popup_coordinator.mm",
[email protected]4ef094072018-03-05 16:59:299 "omnibox_popup_mediator.h",
10 "omnibox_popup_mediator.mm",
[email protected]4ef094072018-03-05 16:59:2911 "omnibox_popup_presenter.h",
12 "omnibox_popup_presenter.mm",
13 "omnibox_popup_provider.h",
[email protected]4ef094072018-03-05 16:59:2914 "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 Gibson78f7e552019-03-26 11:40:3320 ":popup_ui",
[email protected]4ef094072018-03-05 16:59:2921 "//base",
22 "//components/image_fetcher/ios",
23 "//components/omnibox/browser",
24 "//components/open_from_clipboard",
Gauthier Ambard900aca7b2018-12-10 17:28:0025 "//ios/chrome/app/strings",
[email protected]4ef094072018-03-05 16:59:2926 "//ios/chrome/browser",
27 "//ios/chrome/browser/browser_state",
Robbie Gibson78f7e552019-03-26 11:40:3328 "//ios/chrome/browser/ui",
[email protected]93a05982018-03-14 15:40:1729 "//ios/chrome/browser/ui/commands",
[email protected]0b8f4b542018-10-02 15:17:1530 "//ios/chrome/browser/ui/ntp:util",
[email protected]4ef094072018-03-05 16:59:2931 "//ios/chrome/browser/ui/omnibox:omnibox_util",
[email protected]46a8d7b92018-10-09 16:09:4032 "//ios/chrome/browser/ui/omnibox/popup/shortcuts",
[email protected]c8da8f82018-06-22 09:56:2333 "//ios/chrome/browser/ui/toolbar/buttons",
Mark Cogan02ed6c772018-05-31 17:00:5134 "//ios/chrome/browser/ui/toolbar/public:feature_flags",
[email protected]0b8f4b542018-10-02 15:17:1535 "//ios/chrome/browser/web_state_list:web_state_list",
[email protected]4ef094072018-03-05 16:59:2936 "//ios/web/public:public",
37 "//net",
Robbie Gibson78f7e552019-03-26 11:40:3338 "//ui/base",
[email protected]4ef094072018-03-05 16:59:2939 ]
40 configs += [ "//build/config/compiler:enable_arc" ]
41}
42
Robbie Gibson78f7e552019-03-26 11:40:3343source_set("popup_ui") {
[email protected]4ef094072018-03-05 16:59:2944 sources = [
Robbie Gibson78f7e552019-03-26 11:40:3345 "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]4ef094072018-03-05 16:59:2953 "omnibox_popup_row.h",
54 "omnibox_popup_row.mm",
Robbie Gibson78f7e552019-03-26 11:40:3355 "omnibox_popup_truncating_label.h",
56 "omnibox_popup_truncating_label.mm",
[email protected]de350e42018-04-13 17:17:5757 "self_sizing_table_view.h",
58 "self_sizing_table_view.mm",
Gauthier Ambarde685b2df2017-12-14 14:16:5859 ]
60 deps = [
Gauthier Ambard2cc06f12018-10-12 09:59:5661 "resources:omnibox_popup_tab_match",
Gauthier Ambarde685b2df2017-12-14 14:16:5862 "//base",
Robbie Gibson78f7e552019-03-26 11:40:3363 "//components/omnibox/common",
64 "//ios/chrome/app/strings:ios_strings_grit",
65 "//ios/chrome/app/theme",
66 "//ios/chrome/browser/ui/commands",
[email protected]4ef094072018-03-05 16:59:2967 "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
Robbie Gibson78f7e552019-03-26 11:40:3368 "//ios/chrome/browser/ui/toolbar/buttons",
Gauthier Ambardd0a5d1f42018-12-03 12:20:5369 "//ios/chrome/browser/ui/toolbar/public",
Gauthier Ambarddb6a0332018-10-24 07:43:0870 "//ios/chrome/browser/ui/util",
Robbie Gibson78f7e552019-03-26 11:40:3371 "//ios/chrome/common/ui_util",
72 "//ui/base",
73 "//url",
74 ]
75 configs += [ "//build/config/compiler:enable_arc" ]
76}
77
78source_set("popup_internal") {
79 sources = [
80 "autocomplete_match_formatter.h",
81 "autocomplete_match_formatter.mm",
82 ]
83 deps = [
84 "//base",
85 "//components/omnibox/browser",
86 "//ios/chrome/browser/browser_state",
87 "//ios/chrome/browser/ui/omnibox:omnibox_util",
88 "//ios/chrome/browser/ui/util",
89 "//ios/third_party/material_components_ios",
90 ]
91
92 # Temporary until ios_internal CL is submitted
93 public_deps = [
94 ":popup_ui",
Gauthier Ambarde685b2df2017-12-14 14:16:5895 ]
96 configs += [ "//build/config/compiler:enable_arc" ]
97}
[email protected]4da02a0f2018-10-02 13:18:1198
99source_set("unit_tests") {
100 configs += [ "//build/config/compiler:enable_arc" ]
101 testonly = true
102 sources = [
103 "omnibox_popup_view_controller_unittest.mm",
104 ]
105 deps = [
106 ":popup",
Gauthier Ambard2cc06f12018-10-12 09:59:56107 ":popup_internal",
Robbie Gibson78f7e552019-03-26 11:40:33108 ":popup_ui",
[email protected]4da02a0f2018-10-02 13:18:11109 "//base",
Gauthier Ambard2cc06f12018-10-12 09:59:56110 "//components/omnibox/browser",
[email protected]4da02a0f2018-10-02 13:18:11111 "//ios/chrome/app/strings",
112 "//ios/chrome/browser",
[email protected]4da02a0f2018-10-02 13:18:11113 "//testing/gtest",
114 "//ui/base",
115 ]
116}
Gauthier Ambard08100352018-11-23 15:26:56117
118source_set("eg_tests") {
119 testonly = true
120 sources = [
121 "omnibox_popup_egtest.mm",
122 ]
123 deps = [
124 ":popup_internal",
Robbie Gibson78f7e552019-03-26 11:40:33125 ":popup_ui",
Gauthier Ambard08100352018-11-23 15:26:56126 "//base",
127 "//base/test:test_support",
128 "//components/omnibox/browser",
129 "//ios/chrome/browser/ui:feature_flags",
Gauthier Ambarda49a188c22018-11-27 16:03:33130 "//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
Gauthier Ambard08100352018-11-23 15:26:56131 "//ios/chrome/browser/ui/tab_grid:egtest_support",
Gauthier Ambard54ecc1a2018-12-04 14:56:05132 "//ios/chrome/test/app:test_support",
Gauthier Ambard08100352018-11-23 15:26:56133 "//ios/chrome/test/earl_grey:test_support",
134 "//ios/testing/earl_grey:earl_grey_support",
135 "//ios/third_party/earl_grey:earl_grey+link",
136 "//testing/gmock",
137 ]
138 libs = [ "XCTest.framework" ]
139 configs += [ "//build/config/compiler:enable_arc" ]
140}