| OLD | NEW |
| (Empty) |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_MODEL_ORDER_CONTROLLER_H_ | |
| 6 #define IOS_CHROME_BROWSER_TABS_TAB_MODEL_ORDER_CONTROLLER_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 #import "ios/chrome/browser/tabs/tab_model.h" | |
| 11 | |
| 12 // An object that allows different types of ordering and reselection to be | |
| 13 // heuristics plugged into a TabStripModel. Closely parallels | |
| 14 // chrome/browser/tabs/tab_strip_model_order_controller.h | |
| 15 // but without the dependence on TabContentsWrapper and TabStripModel. | |
| 16 @interface TabModelOrderController : NSObject | |
| 17 | |
| 18 // Initializer, |model| must be non-nil and is not retained. | |
| 19 - (instancetype)initWithTabModel:(TabModel*)model; | |
| 20 | |
| 21 // Returns the tab in which to shift selection after a tab is closed. May | |
| 22 // return nil if there are no more tabs. | |
| 23 - (Tab*)determineNewSelectedTabFromRemovedTab:(Tab*)removedTab; | |
| 24 | |
| 25 @end | |
| 26 | |
| 27 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_ORDER_CONTROLLER_H_ | |
| OLD | NEW |