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

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

Issue 1837243002: Reader Mode support for low-end devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: swipe triggers custom tab Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerDelegate.java
index fc1afdd5bfe36dbbd72e522ae55cd853f0fb5495..a33b201323474fa316259d80f8da6c7afc9a7a6a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManagerDelegate.java
@@ -35,6 +35,12 @@ public interface ReaderModeManagerDelegate {
void createNewTab(String url);
/**
+ * Distill the current page into a custom tab. This should be used for low-end devices that
+ * don't support multiple active renderers.
+ */
+ void distillInCustomTab();
+
+ /**
* Notify the manager that the panel has completely closed.
*/
void onClosed(StateChangeReason reason);
@@ -68,4 +74,9 @@ public interface ReaderModeManagerDelegate {
* Notification that the size of the view has changed.
*/
void onSizeChanged();
+
+ /**
+ * @return True if the current device supports the swipable OverlayPanel user interface.
+ */
+ boolean supportsOverlayPanelUI();
}

Powered by Google App Engine
This is Rietveld 408576698