| 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_CARD_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_STACK_VIEW_CARD_VIEW_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_CARD_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_STACK_VIEW_CARD_VIEW_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 struct LayoutRect; | 10 struct LayoutRect; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // A view class for displaying a card in the tab-switching stack. Has a title | 45 // A view class for displaying a card in the tab-switching stack. Has a title |
| 46 // and an image. On its target, has actions for when the close box is clicked, | 46 // and an image. On its target, has actions for when the close box is clicked, |
| 47 // when the card is selected, when it's dragged, and when VoiceOver focuses on | 47 // when the card is selected, when it's dragged, and when VoiceOver focuses on |
| 48 // its title label or close button. | 48 // its title label or close button. |
| 49 @interface CardView : UIView | 49 @interface CardView : UIView |
| 50 | 50 |
| 51 // |YES| if this card represents the current active tab. | 51 // |YES| if this card represents the current active tab. |
| 52 @property(nonatomic, assign) BOOL isActiveTab; | 52 @property(nonatomic, assign) BOOL isActiveTab; |
| 53 | 53 |
| 54 // The snapshot displayed on the card. | 54 // The snapshot displayed on the card. |
| 55 @property(nonatomic, retain) UIImage* image; | 55 @property(nonatomic, strong) UIImage* image; |
| 56 | 56 |
| 57 // Whether the card view should render its shadow. | 57 // Whether the card view should render its shadow. |
| 58 @property(nonatomic, assign) BOOL shouldShowShadow; | 58 @property(nonatomic, assign) BOOL shouldShowShadow; |
| 59 | 59 |
| 60 // Whether the card view should mask its shadow to only the overlapping portion. | 60 // Whether the card view should mask its shadow to only the overlapping portion. |
| 61 @property(nonatomic, assign) BOOL shouldMaskShadow; | 61 @property(nonatomic, assign) BOOL shouldMaskShadow; |
| 62 | 62 |
| 63 // The side on which to draw the close button. | 63 // The side on which to draw the close button. |
| 64 @property(nonatomic, assign) CardCloseButtonSide closeButtonSide; | 64 @property(nonatomic, assign) CardCloseButtonSide closeButtonSide; |
| 65 | 65 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 // The LayoutRect for CardTabView. | 132 // The LayoutRect for CardTabView. |
| 133 - (LayoutRect)tabLayout; | 133 - (LayoutRect)tabLayout; |
| 134 | 134 |
| 135 // The a11y ID of the "close" button in the find-in-page bar. | 135 // The a11y ID of the "close" button in the find-in-page bar. |
| 136 @property(nonatomic, readonly) NSString* closeButtonId; | 136 @property(nonatomic, readonly) NSString* closeButtonId; |
| 137 | 137 |
| 138 @end | 138 @end |
| 139 | 139 |
| 140 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_CARD_VIEW_H_ | 140 #endif // IOS_CHROME_BROWSER_UI_STACK_VIEW_CARD_VIEW_H_ |
| OLD | NEW |