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", |
| 11 | "omnibox_popup_positioner.h", |
| 12 | "omnibox_popup_presenter.h", |
| 13 | "omnibox_popup_presenter.mm", |
| 14 | "omnibox_popup_provider.h", |
| 15 | "omnibox_popup_view_controller.h", |
| 16 | "omnibox_popup_view_controller.mm", |
| 17 | "omnibox_popup_view_ios.h", |
| 18 | "omnibox_popup_view_ios.mm", |
| 19 | "omnibox_popup_view_suggestions_delegate.h", |
| 20 | ] |
| 21 | deps = [ |
| 22 | ":popup_internal", |
| 23 | "//base", |
| 24 | "//components/image_fetcher/ios", |
| 25 | "//components/omnibox/browser", |
| 26 | "//components/open_from_clipboard", |
| 27 | "//ios/chrome/browser", |
| 28 | "//ios/chrome/browser/browser_state", |
| 29 | "//ios/chrome/browser/ui:ui", |
[email protected] | 93a0598 | 2018-03-14 15:40:17 | [diff] [blame] | 30 | "//ios/chrome/browser/ui/commands", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 31 | "//ios/chrome/browser/ui/ntp:util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 32 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
| 33 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
[email protected] | 46a8d7b9 | 2018-10-09 16:09:40 | [diff] [blame] | 34 | "//ios/chrome/browser/ui/omnibox/popup/shortcuts", |
[email protected] | c8da8f8 | 2018-06-22 09:56:23 | [diff] [blame] | 35 | "//ios/chrome/browser/ui/toolbar/buttons", |
Mark Cogan | 02ed6c77 | 2018-05-31 17:00:51 | [diff] [blame] | 36 | "//ios/chrome/browser/ui/toolbar/public:feature_flags", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 37 | "//ios/chrome/browser/ui/toolbar/public:public", |
Gauthier Ambard | db6a033 | 2018-10-24 07:43:08 | [diff] [blame^] | 38 | "//ios/chrome/browser/ui/util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 39 | "//ios/chrome/browser/ui/util:util", |
[email protected] | 0b8f4b54 | 2018-10-02 15:17:15 | [diff] [blame] | 40 | "//ios/chrome/browser/web_state_list:web_state_list", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 41 | "//ios/web/public:public", |
| 42 | "//net", |
| 43 | ] |
| 44 | configs += [ "//build/config/compiler:enable_arc" ] |
| 45 | } |
| 46 | |
| 47 | source_set("popup_internal") { |
| 48 | sources = [ |
| 49 | "omnibox_popup_row.h", |
| 50 | "omnibox_popup_row.mm", |
[email protected] | de350e4 | 2018-04-13 17:17:57 | [diff] [blame] | 51 | "self_sizing_table_view.h", |
| 52 | "self_sizing_table_view.mm", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 53 | ] |
| 54 | deps = [ |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 55 | "resources:omnibox_popup_tab_match", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 56 | "//base", |
| 57 | "//components/image_fetcher/ios", |
| 58 | "//components/omnibox/browser", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 59 | "//ios/chrome/app/theme:theme", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 60 | "//ios/chrome/browser/browser_state", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 61 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
Gauthier Ambard | db6a033 | 2018-10-24 07:43:08 | [diff] [blame^] | 62 | "//ios/chrome/browser/ui/util", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 63 | "//ios/chrome/browser/ui/util:util", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 64 | "//net", |
| 65 | ] |
| 66 | configs += [ "//build/config/compiler:enable_arc" ] |
| 67 | } |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 68 | |
| 69 | source_set("unit_tests") { |
| 70 | configs += [ "//build/config/compiler:enable_arc" ] |
| 71 | testonly = true |
| 72 | sources = [ |
| 73 | "omnibox_popup_view_controller_unittest.mm", |
| 74 | ] |
| 75 | deps = [ |
| 76 | ":popup", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 77 | ":popup_internal", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 78 | "//base", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 79 | "//components/omnibox/browser", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 80 | "//ios/chrome/app/strings", |
| 81 | "//ios/chrome/browser", |
Gauthier Ambard | 2cc06f1 | 2018-10-12 09:59:56 | [diff] [blame] | 82 | "//ios/chrome/browser/ui/omnibox:omnibox_internal", |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame] | 83 | "//testing/gtest", |
| 84 | "//ui/base", |
| 85 | ] |
| 86 | } |