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

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: Address comments Created 5 years, 4 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
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 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
6
5 if (!is_ios) { 7 if (!is_ios) {
6 # GYP version: components/dom_distiller.gypi:dom_distiller_content 8 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings
9 mojom("mojo_bindings") {
10 sources = [
11 "common/distiller_javascript_service.mojom",
12 "common/distiller_page_notifier_service.mojom",
13 ]
14 }
15
16 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser
7 static_library("content_browser") { 17 static_library("content_browser") {
8 sources = [ 18 sources = [
9 "browser/distillable_page_utils.cc", 19 "browser/distillable_page_utils.cc",
10 "browser/distillable_page_utils.h", 20 "browser/distillable_page_utils.h",
21 "browser/distiller_javascript_service_impl.cc",
22 "browser/distiller_javascript_service_impl.h",
11 "browser/distiller_javascript_utils.cc", 23 "browser/distiller_javascript_utils.cc",
12 "browser/distiller_javascript_utils.h", 24 "browser/distiller_javascript_utils.h",
13 "browser/distiller_page_web_contents.cc", 25 "browser/distiller_page_web_contents.cc",
14 "browser/distiller_page_web_contents.h", 26 "browser/distiller_page_web_contents.h",
15 "browser/dom_distiller_viewer_source.cc", 27 "browser/dom_distiller_viewer_source.cc",
16 "browser/dom_distiller_viewer_source.h", 28 "browser/dom_distiller_viewer_source.h",
17 "browser/external_feedback_reporter.h", 29 "browser/external_feedback_reporter.h",
18 "browser/web_contents_main_frame_observer.cc", 30 "browser/web_contents_main_frame_observer.cc",
19 "browser/web_contents_main_frame_observer.h", 31 "browser/web_contents_main_frame_observer.h",
20 ] 32 ]
21 33
22 public_deps = [ 34 public_deps = [
23 "//components/dom_distiller/core", 35 "//components/dom_distiller/core",
24 ] 36 ]
25 deps = [ 37 deps = [
38 ":mojo_bindings",
26 "//base", 39 "//base",
27 "//components/resources", 40 "//components/resources",
28 "//components/strings", 41 "//components/strings",
29 "//content/public/browser", 42 "//content/public/browser",
43 "//mojo/environment:chromium",
30 "//net", 44 "//net",
31 "//skia", 45 "//skia",
32 "//sync", 46 "//sync",
47 "//third_party/mojo/src/mojo/public/cpp/bindings",
48 "//third_party/WebKit/public:blink_headers",
33 "//ui/gfx", 49 "//ui/gfx",
34 "//url", 50 "//url",
35 ] 51 ]
36 52
37 if (is_android) { 53 if (is_android) {
38 sources += [ 54 sources += [
39 "browser/distillable_page_utils_android.cc", 55 "browser/distillable_page_utils_android.cc",
40 "browser/distillable_page_utils_android.h", 56 "browser/distillable_page_utils_android.h",
41 ] 57 ]
42 deps += [ ":jni_headers" ] 58 deps += [ ":jni_headers" ]
43 } 59 }
44 } 60 }
45 61
62 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer
63 static_library("content_renderer") {
64 sources = [
65 "renderer/distiller_js_render_frame_observer.cc",
66 "renderer/distiller_js_render_frame_observer.h",
67 "renderer/distiller_native_javascript.cc",
68 "renderer/distiller_native_javascript.h",
69 "renderer/distiller_page_notifier_service_impl.cc",
70 "renderer/distiller_page_notifier_service_impl.h",
71 ]
72
73 deps = [
74 ":mojo_bindings",
75 "//base",
76 "//content/public/browser",
77 "//mojo/environment:chromium",
78 "//third_party/mojo/src/mojo/public/cpp/bindings",
79 "//third_party/WebKit/public:blink_headers",
80 ]
81 }
82
46 if (is_android) { 83 if (is_android) {
47 import("//build/config/android/rules.gni") 84 import("//build/config/android/rules.gni")
48 85
49 generate_jni("jni_headers") { 86 generate_jni("jni_headers") {
50 sources = [ 87 sources = [
51 "../android/java/src/org/chromium/components/dom_distiller/content/Disti llablePageUtils.java", 88 "../android/java/src/org/chromium/components/dom_distiller/content/Disti llablePageUtils.java",
52 ] 89 ]
53 jni_package = "dom_distiller_content" 90 jni_package = "dom_distiller_content"
54 } 91 }
55 } 92 }
56 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698