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

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: Added comment Created 6 years, 7 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 dom_distiller {
14
15 namespace tab_utils {
16
17 namespace android {
18
19 void DistillCurrentPageAndViewJava(JNIEnv* env,
Yaron 2014/05/16 02:02:49 nit: remove "Java" from the name
nyquist 2014/05/20 19:58:37 Done.
20 jclass clazz,
21 jobject j_web_contents) {
22 content::WebContents* web_contents =
23 content::WebContents::FromJavaWebContents(j_web_contents);
24 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698