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

Unified Diff: components/dom_distiller/content/browser/BUILD.gn

Issue 1487433002: Add more components to "gn check", work on dom_distiller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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
Index: components/dom_distiller/content/browser/BUILD.gn
diff --git a/components/dom_distiller/content/browser/BUILD.gn b/components/dom_distiller/content/browser/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..db8c9fed528ccbf138ed45b14a487513a72c83b6
--- /dev/null
+++ b/components/dom_distiller/content/browser/BUILD.gn
@@ -0,0 +1,72 @@
+# 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.
+
+assert(!is_ios)
+
+# GYP version: components/dom_distiller.gypi:dom_distiller_content_browser
+static_library("browser") {
+ sources = [
+ "distillability_driver.cc",
+ "distillability_driver.h",
+ "distillable_page_utils.cc",
+ "distillable_page_utils.h",
+ "distiller_javascript_service_impl.cc",
+ "distiller_javascript_service_impl.h",
+ "distiller_javascript_utils.cc",
+ "distiller_javascript_utils.h",
+ "distiller_page_web_contents.cc",
+ "distiller_page_web_contents.h",
+ "distiller_ui_handle.h",
+ "dom_distiller_viewer_source.cc",
+ "dom_distiller_viewer_source.h",
+ "web_contents_main_frame_observer.cc",
+ "web_contents_main_frame_observer.h",
+ ]
+
+ public_deps = [
+ "//components/dom_distiller/core",
+ "//content/public/browser",
+ ]
+ deps = [
+ "//base",
+ "//components/dom_distiller/content/common",
+ "//components/dom_distiller/content/common:mojo_bindings",
+ "//components/resources",
+ "//components/strings",
+ "//content/public/browser",
+ "//content/public/common",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/bindings",
+ "//net",
+ "//skia",
+ "//sync",
+ "//third_party/WebKit/public:blink_headers",
+ "//ui/base",
+ "//ui/gfx",
+ "//url",
+ ]
+
+ if (is_android) {
+ sources += [
+ "//components/dom_distiller/android/component_jni_registrar.cc",
+ "//components/dom_distiller/android/component_jni_registrar.h",
+ "distillable_page_utils_android.cc",
+ "distillable_page_utils_android.h",
+ ]
+ deps += [ "//components/dom_distiller/android:jni_headers" ]
+ }
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "dom_distiller_viewer_source_unittest.cc",
+ "web_contents_main_frame_observer_unittest.cc",
+ ]
+ deps = [
+ ":browser",
+ "//content/test:test_support",
+ "//testing/gtest",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698