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

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

Issue 2899053004: [Home] Ensure incognito tab model is created when NTP opened (Closed)
Patch Set: [Home] Ensure incognito tab model is created when NTP opened Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.tabmodel; 5 package org.chromium.chrome.browser.tabmodel;
6 6
7 import org.chromium.chrome.browser.profiles.Profile; 7 import org.chromium.chrome.browser.profiles.Profile;
8 import org.chromium.chrome.browser.tab.Tab; 8 import org.chromium.chrome.browser.tab.Tab;
9 9
10 /** 10 /**
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void addTab(Tab tab, int index, TabLaunchType type); 203 void addTab(Tab tab, int index, TabLaunchType type);
204 204
205 /** 205 /**
206 * Removes the given tab from the model without destroying it. The tab shoul d be inserted into 206 * Removes the given tab from the model without destroying it. The tab shoul d be inserted into
207 * another model to avoid leaking as after this the link to the old Activity will be broken. 207 * another model to avoid leaking as after this the link to the old Activity will be broken.
208 * @param tab The tab to remove. 208 * @param tab The tab to remove.
209 */ 209 */
210 void removeTab(Tab tab); 210 void removeTab(Tab tab);
211 211
212 /** 212 /**
213 * Indicates that a new tab may be created soon. Allows the model to initial ize anything
214 * necessary for the creation of a tab or perform cleanup if a new tab may n o longer be created
215 * soon.
216 * @param mayAddTab Whether a new tab may be created soon.
217 */
218 public void setMayAddTab(boolean mayAddTab);
Ted C 2017/05/23 23:50:17 bikesheading...I like something like setIsPendingT
Theresa 2017/05/24 16:52:08 Done.
219
220 /**
213 * Subscribes a {@link TabModelObserver} to be notified about changes to thi s model. 221 * Subscribes a {@link TabModelObserver} to be notified about changes to thi s model.
214 * @param observer The observer to be subscribed. 222 * @param observer The observer to be subscribed.
215 */ 223 */
216 void addObserver(TabModelObserver observer); 224 void addObserver(TabModelObserver observer);
217 225
218 /** 226 /**
219 * Unsubscribes a previously subscribed {@link TabModelObserver}. 227 * Unsubscribes a previously subscribed {@link TabModelObserver}.
220 * @param observer The observer to be unsubscribed. 228 * @param observer The observer to be unsubscribed.
221 */ 229 */
222 void removeObserver(TabModelObserver observer); 230 void removeObserver(TabModelObserver observer);
223 } 231 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698