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

Unified Diff: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix browsertest, merge webkit CL, merge http://crrev.com/1403413004 Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/dom_distiller/DEPS ('k') | components/dom_distiller/content/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java
index 0f7c794f5c0563b8ade4b8b985593851727e547e..9638e54e6ccda1e0975c8c6293b628891997d3fb 100644
--- a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java
+++ b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java
@@ -17,21 +17,20 @@ public final class DistillablePageUtils {
* Callback for handling the result of isPageDistillable.
*/
public static interface PageDistillableCallback {
- public void onIsPageDistillableResult(boolean isDistillable);
+ public void onIsPageDistillableResult(boolean isDistillable, boolean isLast);
}
- public static void isPageDistillable(WebContents webContents, boolean isMobileOptimized,
+ public static void setCallback(WebContents webContents,
PageDistillableCallback callback) {
- nativeIsPageDistillable(webContents, isMobileOptimized, callback);
+ nativeSetCallback(webContents, callback);
}
@CalledByNative
private static void callOnIsPageDistillableResult(
- PageDistillableCallback callback, boolean isDistillable) {
- callback.onIsPageDistillableResult(isDistillable);
+ PageDistillableCallback callback, boolean isDistillable, boolean isLast) {
+ callback.onIsPageDistillableResult(isDistillable, isLast);
}
- private static native void nativeIsPageDistillable(
- WebContents webContents, boolean isMobileOptimized, PageDistillableCallback callback);
+ private static native void nativeSetCallback(
+ WebContents webContents, PageDistillableCallback callback);
}
-
« no previous file with comments | « components/dom_distiller/DEPS ('k') | components/dom_distiller/content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698