| 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.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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 public void commitTabClosure(int tabId); | 141 public void commitTabClosure(int tabId); |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * Cancels a pending {@link Tab} closure, bringing the tab back into this mo
del. Note that this | 144 * Cancels a pending {@link Tab} closure, bringing the tab back into this mo
del. Note that this |
| 145 * will select the rewound {@link Tab}. | 145 * will select the rewound {@link Tab}. |
| 146 * @param tabId The id of the {@link Tab} to undo. | 146 * @param tabId The id of the {@link Tab} to undo. |
| 147 */ | 147 */ |
| 148 public void cancelTabClosure(int tabId); | 148 public void cancelTabClosure(int tabId); |
| 149 | 149 |
| 150 /** | 150 /** |
| 151 * Open recent closed tab. |
| 152 */ |
| 153 public void openRecentClosedTab(); |
| 154 |
| 155 /** |
| 151 * @return The complete {@link TabList} this {@link TabModel} represents. N
ote that this may | 156 * @return The complete {@link TabList} this {@link TabModel} represents. N
ote that this may |
| 152 * be different than this actual {@link TabModel} if it supports pen
ding closures | 157 * be different than this actual {@link TabModel} if it supports pen
ding closures |
| 153 * {@link #supportsPendingClosures()}, as this will include all pend
ing closure tabs. | 158 * {@link #supportsPendingClosures()}, as this will include all pend
ing closure tabs. |
| 154 */ | 159 */ |
| 155 public TabList getComprehensiveModel(); | 160 public TabList getComprehensiveModel(); |
| 156 | 161 |
| 157 /** | 162 /** |
| 158 * Selects a tab by its index. | 163 * Selects a tab by its index. |
| 159 * @param i The index of the tab to select. | 164 * @param i The index of the tab to select. |
| 160 * @param type The type of selection. | 165 * @param type The type of selection. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 * @param observer The observer to be subscribed. | 202 * @param observer The observer to be subscribed. |
| 198 */ | 203 */ |
| 199 void addObserver(TabModelObserver observer); | 204 void addObserver(TabModelObserver observer); |
| 200 | 205 |
| 201 /** | 206 /** |
| 202 * Unsubscribes a previously subscribed {@link TabModelObserver}. | 207 * Unsubscribes a previously subscribed {@link TabModelObserver}. |
| 203 * @param observer The observer to be unsubscribed. | 208 * @param observer The observer to be unsubscribed. |
| 204 */ | 209 */ |
| 205 void removeObserver(TabModelObserver observer); | 210 void removeObserver(TabModelObserver observer); |
| 206 } | 211 } |
| OLD | NEW |