OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Strings ------------------------------------------------------------------- | 37 // Strings ------------------------------------------------------------------- |
38 | 38 |
39 virtual string16 DialogTitle() const = 0; | 39 virtual string16 DialogTitle() const = 0; |
40 virtual string16 EditSuggestionText() const = 0; | 40 virtual string16 EditSuggestionText() const = 0; |
41 virtual string16 UseBillingForShippingText() const = 0; | 41 virtual string16 UseBillingForShippingText() const = 0; |
42 virtual string16 WalletOptionText() const = 0; | 42 virtual string16 WalletOptionText() const = 0; |
43 virtual string16 CancelButtonText() const = 0; | 43 virtual string16 CancelButtonText() const = 0; |
44 virtual string16 ConfirmButtonText() const = 0; | 44 virtual string16 ConfirmButtonText() const = 0; |
45 virtual string16 SignInText() const = 0; | 45 virtual string16 SignInText() const = 0; |
46 virtual string16 CancelSignInText() const = 0; | 46 virtual string16 CancelSignInText() const = 0; |
| 47 virtual string16 SaveLocallyText() const = 0; |
47 | 48 |
48 // Detail inputs ------------------------------------------------------------- | 49 // Detail inputs ------------------------------------------------------------- |
49 | 50 |
50 // Returns the set of inputs the page has requested which fall under | 51 // Returns the set of inputs the page has requested which fall under |
51 // |section|. | 52 // |section|. |
52 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 53 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
53 const = 0; | 54 const = 0; |
54 // Returns the combobox model for inputs of type |type|, or NULL if the input | 55 // Returns the combobox model for inputs of type |type|, or NULL if the input |
55 // should be a text field. | 56 // should be a text field. |
56 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 57 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // The web contents that prompted the dialog. | 95 // The web contents that prompted the dialog. |
95 virtual content::WebContents* web_contents() = 0; | 96 virtual content::WebContents* web_contents() = 0; |
96 | 97 |
97 protected: | 98 protected: |
98 virtual ~AutofillDialogController(); | 99 virtual ~AutofillDialogController(); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace autofill | 102 } // namespace autofill |
102 | 103 |
103 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ | 104 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ |
OLD | NEW |