Index: chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h |
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h b/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h |
index 95b94464a9d754ae2d00fe9b46937f9e5be0d05c..0d964a178c190a5e4b8a836c63527a8ace6a35a2 100644 |
--- a/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h |
+++ b/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h |
@@ -34,8 +34,18 @@ namespace autofill { |
// Auxiliary textfield. See showInputField: for details. |
@property (readonly, nonatomic) AutofillTextField* inputField; |
-// Set the main suggestion text and the corresponding |icon|. |
-- (void)setSuggestionText:(NSString*)line icon:(NSImage*)icon; |
+// Set the main suggestion text and the corresponding |icon|. The text is set to |
+// |verticallyCompactText| if that can fit without wrapping. Otherwise, the text |
+// is set to |horizontallyCompactText|, with possibly additional wrapping |
+// imposed by the dialog's size constraints. |
+// NOTE: The implementation assumes that all other elements' sizes are already |
+// known. Hence, -showInputField:withIcon: should be called prior to calling |
+// this method, if it is going to be called at all. |
+- (void) |
+ setSuggestionWithVerticallyCompactText:(NSString*)verticallyCompactText |
+ horizontallyCompactText:(NSString*)horizontallyCompactText |
+ icon:(NSImage*)icon |
+ maxWidth:(CGFloat)maxWidth; |
// Shows an auxiliary textfield to the right of the suggestion icon and |
// text. This is currently only used to show a CVC field for the CC section. |