| 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" |
| 11 #include "ui/base/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 @class Tab; | 14 @class Tab; |
| 15 @class TabModel; | 15 @class TabModel; |
| 16 | 16 |
| 17 // A protocol used by the StackViewController for test purposes. | 17 // A protocol used by the StackViewController for test purposes. |
| 18 @protocol StackViewControllerTestDelegate | 18 @protocol StackViewControllerTestDelegate |
| 19 @required | |
| 20 // Informs the delegate that the show tab animation starts. | 19 // Informs the delegate that the show tab animation starts. |
| 21 - (void)stackViewControllerShowWithSelectedTabAnimationDidStart; | 20 - (void)stackViewControllerShowWithSelectedTabAnimationDidStart; |
| 22 // Informs the delegate that the show tab animation finished. | 21 // Informs the delegate that the show tab animation finished. |
| 23 - (void)stackViewControllerShowWithSelectedTabAnimationDidEnd; | 22 - (void)stackViewControllerShowWithSelectedTabAnimationDidEnd; |
| 24 // Informs the delegate that the preload of card views finished. | 23 // Informs the delegate that the preload of card views finished. |
| 25 - (void)stackViewControllerPreloadCardViewsDidEnd; | 24 - (void)stackViewControllerPreloadCardViewsDidEnd; |
| 26 @end | 25 @end |
| 27 | 26 |
| 28 // Controller for the tab-switching UI displayed as a stack of tabs. | 27 // Controller for the tab-switching UI displayed as a stack of tabs. |
| 29 @interface StackViewController : UIViewController<TabSwitcher> | 28 @interface StackViewController : UIViewController<TabSwitcher> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // |position| with |transition|. Otherwise, simply returns nil. | 69 // |position| with |transition|. Otherwise, simply returns nil. |
| 71 // If |position| == NSNotFound the tab will be added at the end of the stack. | 70 // If |position| == NSNotFound the tab will be added at the end of the stack. |
| 72 - (Tab*)dismissWithNewTabAnimationToModel:(TabModel*)targetModel | 71 - (Tab*)dismissWithNewTabAnimationToModel:(TabModel*)targetModel |
| 73 withURL:(const GURL&)url | 72 withURL:(const GURL&)url |
| 74 atIndex:(NSUInteger)position | 73 atIndex:(NSUInteger)position |
| 75 transition:(ui::PageTransition)transition; | 74 transition:(ui::PageTransition)transition; |
| 76 | 75 |
| 77 @end | 76 @end |
| 78 | 77 |
| 79 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ | 78 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_H_ |
| OLD | NEW |