| OLD | NEW |
| 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.base.VisibleForTesting; | 7 import org.chromium.base.VisibleForTesting; |
| 8 import org.chromium.chrome.browser.Tab; | 8 import org.chromium.chrome.browser.Tab; |
| 9 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; | 9 import org.chromium.chrome.browser.tabmodel.TabModel.TabLaunchType; |
| 10 import org.chromium.content.browser.LoadUrlParams; | 10 import org.chromium.content_public.browser.LoadUrlParams; |
| 11 | 11 |
| 12 import java.util.List; | 12 import java.util.List; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * TabModelSelector is a wrapper class containing both a normal and an incognito
TabModel. | 15 * TabModelSelector is a wrapper class containing both a normal and an incognito
TabModel. |
| 16 * This class helps the app know which mode it is currently in, and which TabMod
el it should | 16 * This class helps the app know which mode it is currently in, and which TabMod
el it should |
| 17 * be using. | 17 * be using. |
| 18 */ | 18 */ |
| 19 public interface TabModelSelector { | 19 public interface TabModelSelector { |
| 20 /** | 20 /** |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 * @param changeListener The {@link TabModelSelector.ChangeListener} to remo
ve. | 138 * @param changeListener The {@link TabModelSelector.ChangeListener} to remo
ve. |
| 139 */ | 139 */ |
| 140 void unregisterChangeListener(ChangeListener changeListener); | 140 void unregisterChangeListener(ChangeListener changeListener); |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * Calls {@link TabModel#commitAllTabClosures()} on all {@link TabModel}s ow
ned by this | 143 * Calls {@link TabModel#commitAllTabClosures()} on all {@link TabModel}s ow
ned by this |
| 144 * selector. | 144 * selector. |
| 145 */ | 145 */ |
| 146 void commitAllTabClosures(); | 146 void commitAllTabClosures(); |
| 147 } | 147 } |
| OLD | NEW |