OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #ifndef IOS_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ |
10 #define IOS_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ |
11 | 11 |
12 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
13 | 13 |
14 #import "ios/chrome/browser/ui/animators/zoom_transition_delegate.h" | 14 #import "ios/clean/chrome/browser/ui/animators/zoom_transition_delegate.h" |
15 | 15 |
16 // A transition animator object. The transition (for presentation) will begin | 16 // A transition animator object. The transition (for presentation) will begin |
17 // with the presented view occupying a rectangle supplied by the delegate, or | 17 // with the presented view occupying a rectangle supplied by the delegate, or |
18 // defaulting to a square in the center of the presenter's view. The | 18 // defaulting to a square in the center of the presenter's view. The |
19 // presentation animation will change the size of the rectangle to match the | 19 // presentation animation will change the size of the rectangle to match the |
20 // final presented size. For dismissal, the same animation is done in reverse. | 20 // final presented size. For dismissal, the same animation is done in reverse. |
21 @interface ZoomTransitionAnimator | 21 @interface ZoomTransitionAnimator |
22 : NSObject<UIViewControllerAnimatedTransitioning> | 22 : NSObject<UIViewControllerAnimatedTransitioning> |
23 | 23 |
24 // YES if the receiver is used for a presentation, NO (the default) if used | 24 // YES if the receiver is used for a presentation, NO (the default) if used |
(...skipping 13 matching lines...) Expand all Loading... |
38 // implement the ZoomTransitionDelegate protocol. For example, either the | 38 // implement the ZoomTransitionDelegate protocol. For example, either the |
39 // source or presenting view controller (or neither) might implement the | 39 // source or presenting view controller (or neither) might implement the |
40 // protocol. If |possibleDelegates| is empty, or if no object it contains | 40 // protocol. If |possibleDelegates| is empty, or if no object it contains |
41 // conforms to ZoomTransitionDelegate, then the receiver's delegate will be | 41 // conforms to ZoomTransitionDelegate, then the receiver's delegate will be |
42 // nil. If multiple objects in |possibleDelegates| conforms to the protocol, | 42 // nil. If multiple objects in |possibleDelegates| conforms to the protocol, |
43 // then the first one will become the receiver's delegate. | 43 // then the first one will become the receiver's delegate. |
44 - (void)selectDelegate:(NSArray<id<NSObject>>*)possibleDelegates; | 44 - (void)selectDelegate:(NSArray<id<NSObject>>*)possibleDelegates; |
45 | 45 |
46 @end | 46 @end |
47 | 47 |
48 #endif // IOS_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ | 48 #endif // IOS_CLEAN_CHROME_BROWSER_UI_ANIMATORS_ZOOM_TRANSITION_ANIMATOR_H_ |
OLD | NEW |