Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: ios/chrome/browser/ui/bubble_promo/bubble_view.mm

Issue 2964233002: [ios] BubbleViewController and BubbleView stubs. (Closed)
Patch Set: Add BubbleView property to BubbleVC Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_promo/bubble_view.h"
6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
11 @interface BubbleView ()
12 @property(nonatomic, readonly, weak) UILabel* label;
edchin 2017/07/07 04:24:10 Remove readonly. You'll want to be able to set it.
gchatz 2017/07/07 04:29:10 Need comment here too.
helenlyang 2017/07/07 23:29:16 My reasoning was that we want to modify the text,
gchatz 2017/07/08 00:39:48 Overall with the label in NumberBadgeView, here is
13 @end
14
15 @implementation BubbleView
16
17 @synthesize arrowDirection = _arrowDirection;
18 @synthesize alignment = _alignment;
19 @synthesize label = _label;
20
21 - (instancetype)initWithText:(NSString*)text
22 direction:(BubbleArrowDirection)arrowDirection
23 alignment:(BubbleAlignment)alignment {
24 self = [super initWithFrame:CGRectZero];
25 return self;
26 }
27
edchin 2017/07/07 04:24:10 Add this line to document this section: #pragma ma
helenlyang 2017/07/07 23:29:15 Done.
28 - (CGSize)sizeThatFits:(CGSize)size {
gchatz 2017/07/07 04:29:10 Should have comment explaining why override is hap
helenlyang 2017/07/07 23:29:15 Done.
29 return CGSizeZero;
30 }
31
32 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698