OLD | NEW |
(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_ |
OLD | NEW |