From 184ae3f1bdc996fb4e80983ace65586968dd34b1 Mon Sep 17 00:00:00 2001 From: "nyquist@chromium.org" Date: Wed, 5 Mar 2014 02:25:20 +0000 Subject: Add UI hook for distilling web pages for test shell. This adds the Java hooks needed and a menu option to distill the current web page in the test shell. BUG=319881 NOTRY=true Review URL: https://codereview.chromium.org/185113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254929 0039d316-1c4b-4281-b951-d872f2087c98 --- components/dom_distiller.gypi | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'components/dom_distiller.gypi') 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' ], + }, + ], + }], ], }], ], -- cgit v1.1