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 dom_distiller { |
| 14 |
| 15 namespace tab_utils { |
| 16 |
| 17 namespace android { |
| 18 |
| 19 void DistillCurrentPageAndView(JNIEnv* env, |
| 20 jclass clazz, |
| 21 jobject j_web_contents) { |
| 22 content::WebContents* web_contents = |
| 23 content::WebContents::FromJavaWebContents(j_web_contents); |
| 24 tab_utils::DistillCurrentPageAndView(web_contents); |
| 25 } |
| 26 |
| 27 bool RegisterTabUtils(JNIEnv* env) { |
| 28 return RegisterNativesImpl(env); |
| 29 } |
| 30 |
| 31 } // namespace android |
| 32 |
| 33 } // namespace tab_utils |
| 34 |
| 35 } // namespace dom_distiller |
OLD | NEW |