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

Side by Side Diff: components/autofill/ios/browser/form_suggestion.h

Issue 1007813002: [iOS] Upstream autofill component code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added dconnelly to OWNERS Created 5 years, 9 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
« no previous file with comments | « components/autofill/ios/OWNERS ('k') | components/autofill/ios/browser/form_suggestion.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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 COMPONENTS_AUTOFILL_IOS_BROWSER_FORM_SUGGESTION_H_
6 #define COMPONENTS_AUTOFILL_IOS_BROWSER_FORM_SUGGESTION_H_
7
8 #import <Foundation/Foundation.h>
9
10 #include "base/mac/objc_property_releaser.h"
11
12 // Represents a user-selectable suggestion for a single field within a form
13 // on a web page.
14 @interface FormSuggestion : NSObject
15
16 // The string in the form to show to the user to represent the suggestion.
17 @property(copy, readonly, nonatomic) NSString* value;
18
19 // An optional user-visible description for this suggestion.
20 @property(copy, readonly, nonatomic) NSString* displayDescription;
21
22 // The string in the form to identify credit card icon.
23 @property(copy, readonly, nonatomic) NSString* icon;
24
25 // The integer identifier associated with the suggestion. Identifiers greater
26 // than zero are profile or credit card identifiers.
27 @property(assign, readonly, nonatomic) NSUInteger identifier;
28
29 // Returns FormSuggestion (immutable) with given values.
30 + (FormSuggestion*)suggestionWithValue:(NSString*)value
31 displayDescription:(NSString*)displayDescription
32 icon:(NSString*)icon
33 identifier:(NSUInteger)identifier;
34
35 @end
36
37 #endif // COMPONENTS_AUTOFILL_IOS_BROWSER_FORM_SUGGESTION_H_
OLDNEW
« no previous file with comments | « components/autofill/ios/OWNERS ('k') | components/autofill/ios/browser/form_suggestion.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698