OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 source_set("omnibox") { | 5 source_set("omnibox") { |
6 sources = [ | 6 sources = [ |
7 "omnibox_util.cc", | 7 "omnibox_util.cc", |
8 "omnibox_util.h", | 8 "omnibox_util.h", |
9 "web_omnibox_edit_controller.cc", | 9 "web_omnibox_edit_controller.cc", |
10 "web_omnibox_edit_controller.h", | 10 "web_omnibox_edit_controller.h", |
(...skipping 12 matching lines...) Expand all Loading... |
23 "resources/omnibox_background@2x.png", | 23 "resources/omnibox_background@2x.png", |
24 "resources/omnibox_background@3x.png", | 24 "resources/omnibox_background@3x.png", |
25 "resources/omnibox_transparent_background.png", | 25 "resources/omnibox_transparent_background.png", |
26 "resources/omnibox_transparent_background@2x.png", | 26 "resources/omnibox_transparent_background@2x.png", |
27 "resources/omnibox_transparent_background@3x.png", | 27 "resources/omnibox_transparent_background@3x.png", |
28 ] | 28 ] |
29 outputs = [ | 29 outputs = [ |
30 "{{bundle_resources_dir}}/{{source_file_part}}", | 30 "{{bundle_resources_dir}}/{{source_file_part}}", |
31 ] | 31 ] |
32 } | 32 } |
33 | |
34 source_set("omnibox_internal") { | |
35 sources = [ | |
36 "chrome_omnibox_client_ios.h", | |
37 "chrome_omnibox_client_ios.mm", | |
38 "location_bar_view_ios.h", | |
39 "location_bar_view_ios.mm", | |
40 "omnibox_popup_material_row.h", | |
41 "omnibox_popup_material_row.mm", | |
42 "omnibox_popup_material_view_controller.h", | |
43 "omnibox_popup_material_view_controller.mm", | |
44 "omnibox_popup_positioner.h", | |
45 "omnibox_popup_view_ios.h", | |
46 "omnibox_popup_view_ios.mm", | |
47 "omnibox_text_field_ios.h", | |
48 "omnibox_text_field_ios.mm", | |
49 "omnibox_view_ios.h", | |
50 "omnibox_view_ios.mm", | |
51 "page_info_model.cc", | |
52 "page_info_model.h", | |
53 "page_info_model_observer.h", | |
54 "page_info_view_controller.h", | |
55 "page_info_view_controller.mm", | |
56 "preload_provider.h", | |
57 "truncating_attributed_label.h", | |
58 "truncating_attributed_label.mm", | |
59 ] | |
60 deps = [ | |
61 "//base", | |
62 "//base:i18n", | |
63 "//components/favicon/ios", | |
64 "//components/keyed_service/core", | |
65 "//components/open_from_clipboard", | |
66 "//components/resources", | |
67 "//components/search_engines", | |
68 "//components/ssl_errors", | |
69 "//components/strings", | |
70 "//components/toolbar", | |
71 "//ios/chrome/app/strings", | |
72 "//ios/chrome/app/theme", | |
73 "//ios/chrome/browser", | |
74 "//ios/chrome/browser/autocomplete", | |
75 "//ios/chrome/browser/bookmarks", | |
76 "//ios/chrome/browser/bookmarks:bookmarks_utils", | |
77 "//ios/chrome/browser/browser_state", | |
78 "//ios/chrome/browser/net", | |
79 "//ios/chrome/browser/search_engines", | |
80 "//ios/chrome/browser/sessions", | |
81 "//ios/chrome/browser/ui", | |
82 "//ios/chrome/browser/ui/commands", | |
83 "//ios/chrome/browser/ui/fancy_ui", | |
84 "//ios/chrome/browser/ui/omnibox", | |
85 "//ios/chrome/browser/ui/omnibox:resources", | |
86 "//ios/chrome/browser/ui/popup_menu", | |
87 "//ios/chrome/common", | |
88 "//ios/public/provider/chrome/browser", | |
89 "//ios/third_party/material_components_ios", | |
90 "//ios/third_party/material_roboto_font_loader_ios", | |
91 "//ios/web", | |
92 "//ios/web/public/image_fetcher", | |
93 "//net", | |
94 "//skia", | |
95 "//third_party/google_toolbox_for_mac", | |
96 "//ui/base", | |
97 "//ui/gfx", | |
98 "//ui/gfx/geometry", | |
99 "//url", | |
100 ] | |
101 public_deps = [ | |
102 "//components/omnibox/browser", | |
103 ] | |
104 libs = [ | |
105 "CoreText.framework", | |
106 "MobileCoreServices.framework", | |
107 "QuartzCore.framework", | |
108 "UIKit.framework", | |
109 ] | |
110 } | |
111 | |
112 source_set("unit_tests") { | |
113 testonly = true | |
114 sources = [ | |
115 "omnibox_text_field_ios_unittest.mm", | |
116 ] | |
117 deps = [ | |
118 ":omnibox_internal", | |
119 ":resources_unit_tests", | |
120 "//base", | |
121 "//ios/chrome/app/strings", | |
122 "//ios/chrome/browser", | |
123 "//testing/gtest", | |
124 "//ui/base", | |
125 ] | |
126 } | |
127 | |
128 bundle_data("resources_unit_tests") { | |
129 visibility = [ ":unit_tests" ] | |
130 testonly = true | |
131 sources = [ | |
132 "//ios/chrome/test/data/omnibox/selected_ranges.txt", | |
133 ] | |
134 outputs = [ | |
135 "{{bundle_resources_dir}}/" + | |
136 "ios/chrome/test/data/omnibox/{{source_file_part}}", | |
137 ] | |
138 } | |
OLD | NEW |