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 287af15da2dbd4d85b8fc6fd351c2b37c48ffe8d..e6aff1864ffa34202d29cd14b0ecc142f33229e8 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 |
@@ -47,7 +47,12 @@ public interface TabModel extends TabList { |
* Opened from the long press context menu. Will not be brought to the foreground. |
* Like FROM_CHROME_UI, but also sets up a parent/child relationship like FROM_LINK. |
*/ |
- FROM_LONGPRESS_BACKGROUND |
+ FROM_LONGPRESS_BACKGROUND, |
+ |
+ /** |
+ * Changed windows by moving from one activity to another. Will be opened in the f |
gone
2016/02/24 18:40:37
nit: f------?
Yusuf
2016/02/24 19:40:35
Done.
|
+ */ |
+ FROM_REPARENTING |
} |
/** |
@@ -181,6 +186,14 @@ public interface TabModel extends TabList { |
void addTab(Tab tab, int index, TabLaunchType type); |
/** |
+ * Removes the given tab from the model without destroying it. The tab should be inserted into |
+ * another model to avoid leaking as after this the link to the old Activity will be broken. |
+ * @param tab The tab to remove. |
+ * @return Whether removing a tab is supported. |
gone
2016/02/24 18:40:37
I don't think @return means what you think it mean
Yusuf
2016/02/24 19:40:35
Done.
|
+ */ |
+ void removeTab(Tab tab); |
+ |
+ /** |
* Subscribes a {@link TabModelObserver} to be notified about changes to this model. |
* @param observer The observer to be subscribed. |
*/ |