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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java

Issue 1422023005: Hook up new distillability with Clank UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@push
Patch Set: merge master and fix 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 | « chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManager.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java
index cc389ecd0a6ee08c3ba0e6f437d670acd2559fe9..050caa42f79f867e2c632d409fb19ec2a04ab387 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeTabInfo.java
@@ -23,6 +23,10 @@ public class ReaderModeTabInfo {
// back from distiller and the user has already loaded a new URL.
private String mCurrentUrl;
+ // The distillability heuristics now use a callback to notify the manager that a page can
+ // be distilled. This flag is used to detect if the callback is set for this tab.
+ private boolean mIsCallbackSet;
+
/**
* @param observer The WebContentsObserver for the tab this object represents.
*/
@@ -78,5 +82,19 @@ public class ReaderModeTabInfo {
public String getUrl() {
return mCurrentUrl;
}
+
+ /**
+ * @return If the distillability callback is set for this object's tab.
+ */
+ public boolean isCallbackSet() {
+ return mIsCallbackSet;
+ }
+
+ /**
+ * @param isSet Set if this object's tab has a distillability callback.
+ */
+ public void setIsCallbackSet(boolean isSet) {
+ mIsCallbackSet = isSet;
+ }
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698