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

Side by Side Diff: ios/clean/chrome/browser/ui/dialogs/dialog_text_field_item.mm

Issue 2929563002: [iOS Clean] Added dialogs UI support.
Patch Set: Added DialogMediator Created 3 years, 6 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/clean/chrome/browser/ui/dialogs/dialog_text_field_item.h"
6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
11 @interface DialogTextFieldItem ()
12
13 // Initializer used by the factory method.
14 - (instancetype)initWithDefaultText:(NSString*)defaultText
15 placeholderText:(NSString*)placeholderText
16 secure:(BOOL)secure NS_DESIGNATED_INITIALIZER;
17
18 @end
19
20 @implementation DialogTextFieldItem
21
22 @synthesize defaultText = _defaultText;
23 @synthesize placeholderText = _placeholderText;
24 @synthesize secure = _secure;
25
26 - (instancetype)initWithDefaultText:(NSString*)defaultText
27 placeholderText:(NSString*)placeholderText
28 secure:(BOOL)secure {
29 if ((self = [super init])) {
30 _defaultText = defaultText;
marq (ping after 24h) 2017/06/14 10:52:15 copy strings.
kkhorimoto 2017/06/23 06:24:18 Done.
31 _placeholderText = placeholderText;
32 _secure = secure;
33 }
34 return self;
35 }
36
37 #pragma mark - Public
38
39 + (instancetype)itemWithDefaultText:(NSString*)defaultText
40 placeholderText:(NSString*)placeholderText
41 secure:(BOOL)secure {
42 return [[[self class] alloc] initWithDefaultText:defaultText
43 placeholderText:placeholderText
44 secure:secure];
45 }
46
47 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698