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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java

Issue 657983003: Add TabModel.closeAllTabs(boolean allowDelegation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/tabmodel/TabModel.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
index 87945efbffe8759042b5ee75d6edf9a872d88dc4..565cfc041fad14c19557cb07b68c81869d3cde68 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModel.java
@@ -84,6 +84,14 @@ public interface TabModel extends TabList {
public void closeAllTabs();
/**
+ * Close all tabs on this model. If allowDelegation is true, the model has the option
+ * of not closing all tabs and delegating the closure to another class.
+ * @param allowDelegation true iff the model may delegate the close all request.
+ * false iff the model must close all tabs.
+ */
+ public void closeAllTabs(boolean allowDelegation);
+
+ /**
* @return Whether or not this model supports pending closures.
*/
public boolean supportsPendingClosures();

Powered by Google App Engine
This is Rietveld 408576698