Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/browser/dom_distiller/tab_utils_android.cc

Issue 266073003: Add support for distilling current WebContents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_distiller/tab_utils_android.h ('k') | chrome/browser/dom_distiller/tab_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698