| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // The input set by ShowTextfield. | 28 // The input set by ShowTextfield. |
| 29 base::scoped_nsobject<AutofillTextField> inputField_; | 29 base::scoped_nsobject<AutofillTextField> inputField_; |
| 30 | 30 |
| 31 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. | 31 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. |
| 32 } | 32 } |
| 33 | 33 |
| 34 // Auxiliary textfield. See showInputField: for details. | 34 // Auxiliary textfield. See showInputField: for details. |
| 35 @property (readonly, nonatomic) AutofillTextField* inputField; | 35 @property (readonly, nonatomic) AutofillTextField* inputField; |
| 36 | 36 |
| 37 // Set the main suggestion text and the corresponding |icon|. | 37 // Set the main suggestion text and the corresponding |icon|. |
| 38 - (void)setSuggestionText:(NSString*)line icon:(NSImage*)icon; | 38 // Attempts to wrap the text if |wrapText| is set. |
| 39 - (void)setSuggestionText:(NSString*)line |
| 40 icon:(NSImage*)icon |
| 41 wrapText:(BOOL)wrapText; |
| 39 | 42 |
| 40 // Shows an auxiliary textfield to the right of the suggestion icon and | 43 // Shows an auxiliary textfield to the right of the suggestion icon and |
| 41 // text. This is currently only used to show a CVC field for the CC section. | 44 // text. This is currently only used to show a CVC field for the CC section. |
| 42 - (void)showInputField:(NSString*)text withIcon:(NSImage*)icon; | 45 - (void)showInputField:(NSString*)text withIcon:(NSImage*)icon; |
| 43 | 46 |
| 44 @end | 47 @end |
| 45 | 48 |
| 46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ | 49 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_ |
| OLD | NEW |