diff options
author | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 16:48:40 +0000 |
---|---|---|
committer | nyquist@chromium.org <nyquist@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 16:48:40 +0000 |
commit | ad35a60c4285db66d7f13e614fec0d1c3e78210b (patch) | |
tree | 9c99cc4e1c6188f5ae64a0f333c6437f701aedab /components/dom_distiller.gypi | |
parent | 409ab6d55b6aa9cd4e9c00537ee9df00d5b02739 (diff) | |
download | chromium_src-ad35a60c4285db66d7f13e614fec0d1c3e78210b.zip chromium_src-ad35a60c4285db66d7f13e614fec0d1c3e78210b.tar.gz chromium_src-ad35a60c4285db66d7f13e614fec0d1c3e78210b.tar.bz2 |
Add UI hook for distilling web pages for test shell (relanding)
This adds the Java hooks needed and a menu option to distill the current
web page in the test shell.
Original CL: https://codereview.chromium.org/185113002/
BUG=319881
Review URL: https://codereview.chromium.org/183893029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/dom_distiller.gypi')
-rw-r--r-- | components/dom_distiller.gypi | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/components/dom_distiller.gypi b/components/dom_distiller.gypi index 1ad3f07..4e8b6ed 100644 --- a/components/dom_distiller.gypi +++ b/components/dom_distiller.gypi @@ -48,6 +48,8 @@ 'distilled_page_proto', ], 'sources': [ + 'dom_distiller/android/component_jni_registrar.cc', + 'dom_distiller/android/component_jni_registrar.h', 'dom_distiller/core/article_entry.cc', 'dom_distiller/core/article_entry.h', 'dom_distiller/core/distiller.cc', @@ -73,9 +75,18 @@ 'dom_distiller/core/task_tracker.h', 'dom_distiller/core/url_constants.cc', 'dom_distiller/core/url_constants.h', + 'dom_distiller/core/url_utils_android.cc', + 'dom_distiller/core/url_utils_android.h', 'dom_distiller/core/url_utils.cc', 'dom_distiller/core/url_utils.h', ], + 'conditions': [ + ['OS == "android"', { + 'dependencies': [ + 'dom_distiller_core_jni_headers', + ], + }], + ], }, { 'target_name': 'dom_distiller_test_support', @@ -137,6 +148,32 @@ }, ], }], + ['OS=="android"', { + 'targets': [ + { + 'target_name': 'dom_distiller_core_java', + 'type': 'none', + 'dependencies': [ + '../base/base.gyp:base', + ], + 'variables': { + 'java_in_dir': 'dom_distiller/android/java', + }, + 'includes': [ '../build/java.gypi' ], + }, + { + 'target_name': 'dom_distiller_core_jni_headers', + 'type': 'none', + 'sources': [ + 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java', + ], + 'variables': { + 'jni_gen_package': 'dom_distiller_core', + }, + 'includes': [ '../build/jni_generator.gypi' ], + }, + ], + }], ], }], ], |