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

Side by Side Diff: ios/chrome/browser/ui/stack_view/stack_view_controller.h

Issue 2810193004: [ObjC ARC] Converts ios/chrome/browser/ui/stack_view:stack_view to ARC. (Closed)
Patch Set: comments Created 3 years, 8 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
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
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
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/stack_view/stack_card.mm ('k') | ios/chrome/browser/ui/stack_view/stack_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698