| 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 #import "ios/chrome/browser/ui/bubble/bubble_view.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
| 13 @interface BubbleView () |
| 14 // Label containing the text displayed on the bubble. |
| 15 @property(nonatomic, weak) UILabel* label; |
| 16 @end |
| 17 |
| 18 @implementation BubbleView |
| 19 |
| 20 @synthesize label = _label; |
| 21 |
| 22 - (instancetype)initWithText:(NSString*)text |
| 23 direction:(BubbleArrowDirection)arrowDirection |
| 24 alignment:(BubbleAlignment)alignment { |
| 25 self = [super initWithFrame:CGRectZero]; |
| 26 return self; |
| 27 } |
| 28 |
| 29 #pragma mark - UIView overrides |
| 30 |
| 31 // Override sizeThatFits to return the bubble's optimal size. |
| 32 - (CGSize)sizeThatFits:(CGSize)size { |
| 33 NOTIMPLEMENTED(); |
| 34 return size; |
| 35 } |
| 36 |
| 37 @end |
| OLD | NEW |