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

Side by Side Diff: components/dom_distiller/content/BUILD.gn

Issue 1231083007: Expose distiller functions to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-content
Patch Set: Move dependencies to correct files Created 5 years, 3 months 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 unified diff | Download patch
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/browser/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 assert(!is_ios) 5 assert(!is_ios)
6 6
7 # GYP version: components/dom_distiller.gypi:dom_distiller_content 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
8 source_set("content_browser") { 8
9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings
10 mojom("mojo_bindings") {
11 sources = [
12 "common/distiller_javascript_service.mojom",
13 "common/distiller_page_notifier_service.mojom",
14 ]
15 }
16
17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser
18 static_library("content_browser") {
9 sources = [ 19 sources = [
10 "browser/distillable_page_utils.cc", 20 "browser/distillable_page_utils.cc",
11 "browser/distillable_page_utils.h", 21 "browser/distillable_page_utils.h",
22 "browser/distiller_javascript_service_impl.cc",
23 "browser/distiller_javascript_service_impl.h",
12 "browser/distiller_javascript_utils.cc", 24 "browser/distiller_javascript_utils.cc",
13 "browser/distiller_javascript_utils.h", 25 "browser/distiller_javascript_utils.h",
14 "browser/distiller_page_web_contents.cc", 26 "browser/distiller_page_web_contents.cc",
15 "browser/distiller_page_web_contents.h", 27 "browser/distiller_page_web_contents.h",
16 "browser/dom_distiller_viewer_source.cc", 28 "browser/dom_distiller_viewer_source.cc",
17 "browser/dom_distiller_viewer_source.h", 29 "browser/dom_distiller_viewer_source.h",
18 "browser/external_feedback_reporter.h", 30 "browser/external_feedback_reporter.h",
19 "browser/web_contents_main_frame_observer.cc", 31 "browser/web_contents_main_frame_observer.cc",
20 "browser/web_contents_main_frame_observer.h", 32 "browser/web_contents_main_frame_observer.h",
21 ] 33 ]
22 34
23 public_deps = [ 35 public_deps = [
24 "//components/dom_distiller/core", 36 "//components/dom_distiller/core",
25 "//content/public/browser", 37 "//content/public/browser",
26 ] 38 ]
27 deps = [ 39 deps = [
40 ":mojo_bindings",
28 "//base", 41 "//base",
29 "//components/resources", 42 "//components/resources",
30 "//components/strings", 43 "//components/strings",
44 "//content/public/browser",
45 "//mojo/environment:chromium",
31 "//net", 46 "//net",
32 "//skia", 47 "//skia",
33 "//sync", 48 "//sync",
49 "//third_party/mojo/src/mojo/public/cpp/bindings",
50 "//third_party/WebKit/public:blink_headers",
34 "//ui/gfx", 51 "//ui/gfx",
35 "//url", 52 "//url",
36 ] 53 ]
37 54
38 if (is_android) { 55 if (is_android) {
39 sources += [ 56 sources += [
40 "browser/distillable_page_utils_android.cc", 57 "browser/distillable_page_utils_android.cc",
41 "browser/distillable_page_utils_android.h", 58 "browser/distillable_page_utils_android.h",
42 ] 59 ]
43 deps += [ ":jni_headers" ] 60 deps += [ ":jni_headers" ]
44 } 61 }
45 } 62 }
46 63
64 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer
65 static_library("content_renderer") {
66 sources = [
67 "renderer/distiller_js_render_frame_observer.cc",
68 "renderer/distiller_js_render_frame_observer.h",
69 "renderer/distiller_native_javascript.cc",
70 "renderer/distiller_native_javascript.h",
71 "renderer/distiller_page_notifier_service_impl.cc",
72 "renderer/distiller_page_notifier_service_impl.h",
73 ]
74
75 deps = [
76 ":mojo_bindings",
77 "//base",
78 "//content/public/browser",
79 "//mojo/environment:chromium",
80 "//third_party/mojo/src/mojo/public/cpp/bindings",
81 "//third_party/WebKit/public:blink_headers",
82 ]
83 }
84
47 if (is_android) { 85 if (is_android) {
48 import("//build/config/android/rules.gni") 86 import("//build/config/android/rules.gni")
49 87
50 generate_jni("jni_headers") { 88 generate_jni("jni_headers") {
51 sources = [ 89 sources = [
52 "../android/java/src/org/chromium/components/dom_distiller/content/Distill ablePageUtils.java", 90 "../android/java/src/org/chromium/components/dom_distiller/content/Distill ablePageUtils.java",
53 ] 91 ]
54 jni_package = "dom_distiller_content" 92 jni_package = "dom_distiller_content"
55 } 93 }
56 } 94 }
57 95
58 source_set("unit_tests") { 96 source_set("unit_tests") {
59 testonly = true 97 testonly = true
60 sources = [ 98 sources = [
61 "browser/dom_distiller_viewer_source_unittest.cc", 99 "browser/dom_distiller_viewer_source_unittest.cc",
62 "browser/web_contents_main_frame_observer_unittest.cc", 100 "browser/web_contents_main_frame_observer_unittest.cc",
63 ] 101 ]
64 deps = [ 102 deps = [
65 ":content_browser", 103 ":content_browser",
66 "//testing/gtest", 104 "//testing/gtest",
67 ] 105 ]
68 } 106 }
OLDNEW
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698