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

Unified Diff: components/translate/ios/browser/BUILD.gn

Issue 1441923003: Add gn implementation for //components/translate/ios/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « components/translate.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/ios/browser/BUILD.gn
diff --git a/components/translate/ios/browser/BUILD.gn b/components/translate/ios/browser/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..420954ac4f7c8fdecb0b19d859e07427046c1891
--- /dev/null
+++ b/components/translate/ios/browser/BUILD.gn
@@ -0,0 +1,59 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# 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")
+
+source_set("browser") {
+ sources = [
+ "ios_translate_driver.h",
+ "ios_translate_driver.mm",
+ "js_language_detection_manager.h",
+ "js_language_detection_manager.mm",
+ "js_translate_manager.h",
+ "js_translate_manager.mm",
+ "language_detection_controller.h",
+ "language_detection_controller.mm",
+ "translate_controller.h",
+ "translate_controller.mm",
+ ]
+
+ deps = [
+ "//base",
+ "//components/translate/core/browser",
+ "//components/translate/core/common",
+ "//components/translate/core/language_detection",
+ "//ios/web",
+ "//url",
+ ":injected_js",
+ ]
+}
+
+js_compile_checked("injected_js") {
+ visibility = [ ":browser" ]
+ sources = [
+ "resources/language_detection.js",
+ "resources/translate_ios.js",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "js_translate_manager_unittest.mm",
+ "language_detection_controller_unittest.mm",
+ "translate_controller_unittest.mm",
+ ]
+
+ deps = [
+ "//base",
+ "//components/resources",
+ "//components/translate/core/common",
+ "//ios/web:test_support",
+ "//testing/gtest",
+ "//third_party/ocmock",
+ "//ui/base",
+ "//url",
+ ":browser",
+ ]
+}
« no previous file with comments | « components/translate.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698