Chromium Code Reviews| 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.chrome.browser.Tab; | 7 import org.chromium.chrome.browser.Tab; |
| 8 import org.chromium.chrome.browser.profiles.Profile; | 8 import org.chromium.chrome.browser.profiles.Profile; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Close all tabs on this model. If allowDelegation is true, the model has t he option | 87 * Close all tabs on this model. If allowDelegation is true, the model has t he option |
| 88 * of not closing all tabs and delegating the closure to another class. | 88 * of not closing all tabs and delegating the closure to another class. |
| 89 * @param allowDelegation true iff the model may delegate the close all requ est. | 89 * @param allowDelegation true iff the model may delegate the close all requ est. |
| 90 * false iff the model must close all tabs. | 90 * false iff the model must close all tabs. |
| 91 */ | 91 */ |
| 92 public void closeAllTabs(boolean allowDelegation); | 92 public void closeAllTabs(boolean allowDelegation); |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * Close all the tabs on this model. | |
| 96 * @param uponExit true iff the tabs are being closed upon application exit (after user presses | |
| 97 * the system back button) | |
| 98 */ | |
| 99 public void closeAllTabs(boolean allowDelegation, boolean uponExit); | |
|
David Trainor- moved to gerrit
2014/10/29 17:48:54
Hmm we should get rid of some of these other close
Theresa
2014/10/29 18:00:16
I'll get rid of the closeAllTabs(boolean allowDele
| |
| 100 | |
| 101 /** | |
| 95 * @return Whether or not this model supports pending closures. | 102 * @return Whether or not this model supports pending closures. |
| 96 */ | 103 */ |
| 97 public boolean supportsPendingClosures(); | 104 public boolean supportsPendingClosures(); |
| 98 | 105 |
| 99 /** | 106 /** |
| 100 * Commits all pending closures, closing all tabs that had a chance to be un done. | 107 * Commits all pending closures, closing all tabs that had a chance to be un done. |
| 101 */ | 108 */ |
| 102 public void commitAllTabClosures(); | 109 public void commitAllTabClosures(); |
| 103 | 110 |
| 104 /** | 111 /** |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 * @param observer The observer to be subscribed. | 161 * @param observer The observer to be subscribed. |
| 155 */ | 162 */ |
| 156 void addObserver(TabModelObserver observer); | 163 void addObserver(TabModelObserver observer); |
| 157 | 164 |
| 158 /** | 165 /** |
| 159 * Unsubscribes a previously subscribed {@link TabModelObserver}. | 166 * Unsubscribes a previously subscribed {@link TabModelObserver}. |
| 160 * @param observer The observer to be unsubscribed. | 167 * @param observer The observer to be unsubscribed. |
| 161 */ | 168 */ |
| 162 void removeObserver(TabModelObserver observer); | 169 void removeObserver(TabModelObserver observer); |
| 163 } | 170 } |
| OLD | NEW |