OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/dom_distiller/tab_utils_android.h" | |
6 | |
7 #include <string> | |
8 | |
9 #include "chrome/browser/dom_distiller/tab_utils.h" | |
10 #include "content/public/browser/web_contents.h" | |
11 #include "jni/DomDistillerTabUtils_jni.h" | |
12 | |
13 namespace android { | |
14 | |
15 void DistillCurrentPageAndView(JNIEnv* env, | |
16 jclass clazz, | |
17 jobject j_web_contents) { | |
18 content::WebContents* web_contents = | |
19 content::WebContents::FromJavaWebContents(j_web_contents); | |
20 ::DistillCurrentPageAndView(web_contents); | |
21 } | |
22 | |
23 } // namespace android | |
24 | |
25 bool RegisterDomDistillerTabUtils(JNIEnv* env) { | |
26 return android::RegisterNativesImpl(env); | |
27 } | |
OLD | NEW |