| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PRIVATE_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_PRIVATE_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_PRIVATE_H_ | 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_PRIVATE_H_ |
| 7 | 7 |
| 8 #import "ios/chrome/browser/ui/stack_view/card_set.h" | 8 #import "ios/chrome/browser/ui/stack_view/card_set.h" |
| 9 #import "ios/chrome/browser/ui/stack_view/stack_view_controller.h" | 9 #import "ios/chrome/browser/ui/stack_view/stack_view_controller.h" |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Makes |cardSet| the active set, updating the UI accordingly. | 61 // Makes |cardSet| the active set, updating the UI accordingly. |
| 62 - (void)setActiveCardSet:(CardSet*)cardSet; | 62 - (void)setActiveCardSet:(CardSet*)cardSet; |
| 63 | 63 |
| 64 // Returns YES if both decks should be visible. | 64 // Returns YES if both decks should be visible. |
| 65 - (BOOL)bothDecksShouldBeDisplayed; | 65 - (BOOL)bothDecksShouldBeDisplayed; |
| 66 | 66 |
| 67 // Returns the region, in scroll view coordinates, of the inactive deck. | 67 // Returns the region, in scroll view coordinates, of the inactive deck. |
| 68 - (CGRect)inactiveDeckRegion; | 68 - (CGRect)inactiveDeckRegion; |
| 69 | 69 |
| 70 // The currently active card set. | 70 // The currently active card set. |
| 71 @property(nonatomic, readonly) CardSet* activeCardSet; | 71 @property(nonatomic, weak, readonly) CardSet* activeCardSet; |
| 72 | 72 |
| 73 // The current transition style. | 73 // The current transition style. |
| 74 @property(nonatomic, assign) StackTransitionStyle transitionStyle; | 74 @property(nonatomic, assign) StackTransitionStyle transitionStyle; |
| 75 | 75 |
| 76 // Will be set to YES when a transition animation is cancelled before it can | 76 // Will be set to YES when a transition animation is cancelled before it can |
| 77 // finish. | 77 // finish. |
| 78 @property(nonatomic, assign) BOOL transitionWasCancelled; | 78 @property(nonatomic, assign) BOOL transitionWasCancelled; |
| 79 | 79 |
| 80 // The owner of |transitionToolbarController|. | 80 // The owner of |transitionToolbarController|. |
| 81 @property(nonatomic, retain) id<ToolbarOwner> transitionToolbarOwner; | 81 @property(nonatomic, strong) id<ToolbarOwner> transitionToolbarOwner; |
| 82 | 82 |
| 83 // The toolbar controller used in transition animations. | 83 // The toolbar controller used in transition animations. |
| 84 @property(nonatomic, retain) ToolbarController* transitionToolbarController; | 84 @property(nonatomic, strong) ToolbarController* transitionToolbarController; |
| 85 | 85 |
| 86 // The dummy view used in the transition animation. | 86 // The dummy view used in the transition animation. |
| 87 @property(nonatomic, retain) UIView* dummyToolbarBackgroundView; | 87 @property(nonatomic, strong) UIView* dummyToolbarBackgroundView; |
| 88 | 88 |
| 89 // The cached frame of the transition toolbar's frame. | 89 // The cached frame of the transition toolbar's frame. |
| 90 @property(nonatomic, assign) CGRect transitionToolbarFrame; | 90 @property(nonatomic, assign) CGRect transitionToolbarFrame; |
| 91 | 91 |
| 92 // Records which card was tapped mid-presentation animation, if any. | 92 // Records which card was tapped mid-presentation animation, if any. |
| 93 // TODO(crbug.com/546209): Implement reversed animations for dismissing with a | 93 // TODO(crbug.com/546209): Implement reversed animations for dismissing with a |
| 94 // new selected card mid-presentation. | 94 // new selected card mid-presentation. |
| 95 @property(nonatomic, retain) StackCard* transitionTappedCard; | 95 @property(nonatomic, strong) StackCard* transitionTappedCard; |
| 96 | 96 |
| 97 // |YES| if there is card set animation being processed. | 97 // |YES| if there is card set animation being processed. |
| 98 @property(nonatomic, readonly) BOOL inActiveDeckChangeAnimation; | 98 @property(nonatomic, readonly) BOOL inActiveDeckChangeAnimation; |
| 99 | 99 |
| 100 @end | 100 @end |
| 101 | 101 |
| 102 @interface StackViewController (Testing) | 102 @interface StackViewController (Testing) |
| 103 | 103 |
| 104 // The driver of scroll events. | 104 // The driver of scroll events. |
| 105 @property(nonatomic, readonly) UIScrollView* scrollView; | 105 @property(nonatomic, readonly) UIScrollView* scrollView; |
| 106 | 106 |
| 107 @end | 107 @end |
| 108 | 108 |
| 109 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_PRIVATE_H_ | 109 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_STACK_VIEW_CONTROLLER_PRIVATE_H_ |
| OLD | NEW |