OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher.h" | 10 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 - (void)stackViewControllerShowWithSelectedTabAnimationDidStart; | 21 - (void)stackViewControllerShowWithSelectedTabAnimationDidStart; |
22 // Informs the delegate that the show tab animation finished. | 22 // Informs the delegate that the show tab animation finished. |
23 - (void)stackViewControllerShowWithSelectedTabAnimationDidEnd; | 23 - (void)stackViewControllerShowWithSelectedTabAnimationDidEnd; |
24 // Informs the delegate that the preload of card views finished. | 24 // Informs the delegate that the preload of card views finished. |
25 - (void)stackViewControllerPreloadCardViewsDidEnd; | 25 - (void)stackViewControllerPreloadCardViewsDidEnd; |
26 @end | 26 @end |
27 | 27 |
28 // Controller for the tab-switching UI displayed as a stack of tabs. | 28 // Controller for the tab-switching UI displayed as a stack of tabs. |
29 @interface StackViewController : UIViewController<TabSwitcher> | 29 @interface StackViewController : UIViewController<TabSwitcher> |
30 | 30 |
31 @property(nonatomic, assign) id<TabSwitcherDelegate> delegate; | 31 @property(nonatomic, weak) id<TabSwitcherDelegate> delegate; |
32 @property(nonatomic, assign) id<StackViewControllerTestDelegate> testDelegate; | 32 @property(nonatomic, weak) id<StackViewControllerTestDelegate> testDelegate; |
33 | 33 |
34 // Initializes with the given tab models, which must not be nil. | 34 // Initializes with the given tab models, which must not be nil. |
35 // |activeTabModel| is the model which starts active, and must be one of the | 35 // |activeTabModel| is the model which starts active, and must be one of the |
36 // other two models. | 36 // other two models. |
37 // TODO(stuartmorgan): Replace the word 'active' in these methods and the | 37 // TODO(stuartmorgan): Replace the word 'active' in these methods and the |
38 // corresponding delegate methods. crbug.com/513782 | 38 // corresponding delegate methods. crbug.com/513782 |
39 - (instancetype)initWithMainTabModel:(TabModel*)mainModel | 39 - (instancetype)initWithMainTabModel:(TabModel*)mainModel |
40 otrTabModel:(TabModel*)otrModel | 40 otrTabModel:(TabModel*)otrModel |
41 activeTabModel:(TabModel*)activeModel; | 41 activeTabModel:(TabModel*)activeModel; |
42 | 42 |
(...skipping 27 matching lines...) Expand all Loading... |
70 // |position| with |transition|. Otherwise, simply returns nil. | 70 // |position| with |transition|. Otherwise, simply returns nil. |
71 // If |position| == NSNotFound the tab will be added at the end of the stack. | 71 // If |position| == NSNotFound the tab will be added at the end of the stack. |
72 - (Tab*)dismissWithNewTabAnimationToModel:(TabModel*)targetModel | 72 - (Tab*)dismissWithNewTabAnimationToModel:(TabModel*)targetModel |
73 withURL:(const GURL&)url | 73 withURL:(const GURL&)url |
74 atIndex:(NSUInteger)position | 74 atIndex:(NSUInteger)position |
75 transition:(ui::PageTransition)transition; | 75 transition:(ui::PageTransition)transition; |
76 | 76 |
77 @end | 77 @end |
78 | 78 |
79 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ | 79 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ |
OLD | NEW |