Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ios/chrome/browser/ui/contextual_search/BUILD.gn

Issue 2553563004: [ios] Adds JS resources for various features. (Closed)
Patch Set: Upload. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/contextual_search/BUILD.gn
diff --git a/ios/chrome/browser/ui/contextual_search/BUILD.gn b/ios/chrome/browser/ui/contextual_search/BUILD.gn
index 3ec61b2d015309c2d51495e0f73104fce94049ae..40e833966809b38ad0b9beabbb9496aa8c6344b3 100644
--- a/ios/chrome/browser/ui/contextual_search/BUILD.gn
+++ b/ios/chrome/browser/ui/contextual_search/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//ios/web/js_compile.gni")
+
bundle_data("resources") {
sources = [
"resources/expand_less.png",
@@ -12,3 +14,19 @@ bundle_data("resources") {
"{{bundle_resources_dir}}/{{source_file_part}}",
]
}
+
+js_compile_unchecked("injected_js") {
+ sources = [
+ "resources/contextualsearch.js",
+ ]
+}
+
+bundle_data("resources_unit_tests") {
+ testonly = true
+ sources = [
+ "resources/contextualsearch_unittest.js",
+ ]
+ outputs = [
+ "{{bundle_resources_dir}}/{{source_file_part}}",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698