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] | 7bef881 | 2018-06-20 20:17:13 | [diff] [blame] | 9 | "omnibox_popup_generic_presenter.h", |
| 10 | "omnibox_popup_legacy_presenter.h", |
| 11 | "omnibox_popup_legacy_presenter.mm", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 12 | "omnibox_popup_mediator.h", |
| 13 | "omnibox_popup_mediator.mm", |
| 14 | "omnibox_popup_positioner.h", |
| 15 | "omnibox_popup_presenter.h", |
| 16 | "omnibox_popup_presenter.mm", |
| 17 | "omnibox_popup_provider.h", |
| 18 | "omnibox_popup_view_controller.h", |
| 19 | "omnibox_popup_view_controller.mm", |
| 20 | "omnibox_popup_view_ios.h", |
| 21 | "omnibox_popup_view_ios.mm", |
| 22 | "omnibox_popup_view_suggestions_delegate.h", |
| 23 | ] |
| 24 | deps = [ |
| 25 | ":popup_internal", |
| 26 | "//base", |
| 27 | "//components/image_fetcher/ios", |
| 28 | "//components/omnibox/browser", |
| 29 | "//components/open_from_clipboard", |
| 30 | "//ios/chrome/browser", |
| 31 | "//ios/chrome/browser/browser_state", |
| 32 | "//ios/chrome/browser/ui:ui", |
| 33 | "//ios/chrome/browser/ui:ui_util", |
[email protected] | 93a0598 | 2018-03-14 15:40:17 | [diff] [blame] | 34 | "//ios/chrome/browser/ui/commands", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 35 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
| 36 | "//ios/chrome/browser/ui/omnibox:omnibox_util", |
[email protected] | c8da8f8 | 2018-06-22 09:56:23 | [diff] [blame] | 37 | "//ios/chrome/browser/ui/toolbar/buttons", |
Mark Cogan | 02ed6c77 | 2018-05-31 17:00:51 | [diff] [blame] | 38 | "//ios/chrome/browser/ui/toolbar/public:feature_flags", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 39 | "//ios/chrome/browser/ui/toolbar/public:public", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 40 | "//ios/chrome/browser/ui/util:util", |
| 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 = [ |
| 55 | "//base", |
| 56 | "//components/image_fetcher/ios", |
| 57 | "//components/omnibox/browser", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 58 | "//ios/chrome/app/theme:theme", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 59 | "//ios/chrome/browser/browser_state", |
[email protected] | 4ef09407 | 2018-03-05 16:59:29 | [diff] [blame] | 60 | "//ios/chrome/browser/ui:ui_util", |
| 61 | "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared", |
| 62 | "//ios/chrome/browser/ui/util:util", |
Gauthier Ambard | e685b2df | 2017-12-14 14:16:58 | [diff] [blame] | 63 | "//net", |
| 64 | ] |
| 65 | configs += [ "//build/config/compiler:enable_arc" ] |
| 66 | } |
[email protected] | 4da02a0f | 2018-10-02 13:18:11 | [diff] [blame^] | 67 | |
| 68 | source_set("unit_tests") { |
| 69 | configs += [ "//build/config/compiler:enable_arc" ] |
| 70 | testonly = true |
| 71 | sources = [ |
| 72 | "omnibox_popup_view_controller_unittest.mm", |
| 73 | ] |
| 74 | deps = [ |
| 75 | ":popup", |
| 76 | "//base", |
| 77 | "//ios/chrome/app/strings", |
| 78 | "//ios/chrome/browser", |
| 79 | "//testing/gtest", |
| 80 | "//ui/base", |
| 81 | ] |
| 82 | } |