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.
5 #include "chrome/browser/dom_distiller/tab_utils_android.h"
9 #include "chrome/browser/dom_distiller/tab_utils.h"
10 #include "content/public/browser/web_contents.h"
11 #include "jni/DomDistillerTabUtils_jni.h"
15 void DistillCurrentPageAndView(JNIEnv
* env
,
17 jobject j_web_contents
) {
18 content::WebContents
* web_contents
=
19 content::WebContents::FromJavaWebContents(j_web_contents
);
20 ::DistillCurrentPageAndView(web_contents
);
23 } // namespace android
25 bool RegisterDomDistillerTabUtils(JNIEnv
* env
) {
26 return android::RegisterNativesImpl(env
);