Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CHROME_BROWSER_UI_BUBBLE_PROMO_BUBBLE_VIEW_H_ | |
| 6 #define IOS_CHROME_BROWSER_UI_BUBBLE_PROMO_BUBBLE_VIEW_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 enum class BubbleArrowDirection; | |
|
edchin
2017/07/07 04:24:10
I think these enums need to be declared in this he
helenlyang
2017/07/07 23:29:15
Done.
| |
| 11 enum class BubbleAlignment; | |
| 12 | |
| 13 // Speech bubble shaped view that displays a message. | |
| 14 @interface BubbleView : UIView | |
| 15 | |
| 16 @property(nonatomic, readonly) BubbleArrowDirection arrowDirection; | |
|
edchin
2017/07/07 04:24:10
I don't think these two lines are going to be need
gchatz
2017/07/07 04:29:10
Need comments for properties and designated initia
helenlyang
2017/07/07 23:29:15
Done.
| |
| 17 @property(nonatomic, readonly) BubbleAlignment alignment; | |
| 18 | |
| 19 - (instancetype)initWithText:(NSString*)text | |
| 20 direction:(BubbleArrowDirection)arrowDirection | |
| 21 alignment:(BubbleAlignment)alignment | |
| 22 NS_DESIGNATED_INITIALIZER; | |
| 23 | |
| 24 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; | |
| 25 | |
| 26 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; | |
| 27 | |
| 28 - (instancetype)init NS_UNAVAILABLE; | |
| 29 | |
| 30 @end | |
| 31 | |
| 32 #endif // IOS_CHROME_BROWSER_UI_BUBBLE_PROMO_BUBBLE_VIEW_H_ | |
| OLD | NEW |