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

Side by Side Diff: ios/chrome/browser/tabs/tab_model_order_controller.h

Issue 2703333006: Move the notion of current Tab from TabModel to WebStateList. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab_model_observers_bridge.mm ('k') | ios/chrome/browser/tabs/tab_model_order_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698