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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual string16 DialogTitle() const OVERRIDE; | 63 virtual string16 DialogTitle() const OVERRIDE; |
64 virtual string16 AccountChooserText() const OVERRIDE; | 64 virtual string16 AccountChooserText() const OVERRIDE; |
65 virtual string16 EditSuggestionText() const OVERRIDE; | 65 virtual string16 EditSuggestionText() const OVERRIDE; |
66 virtual string16 UseBillingForShippingText() const OVERRIDE; | 66 virtual string16 UseBillingForShippingText() const OVERRIDE; |
67 virtual string16 WalletOptionText() const OVERRIDE; | 67 virtual string16 WalletOptionText() const OVERRIDE; |
68 virtual string16 CancelButtonText() const OVERRIDE; | 68 virtual string16 CancelButtonText() const OVERRIDE; |
69 virtual string16 ConfirmButtonText() const OVERRIDE; | 69 virtual string16 ConfirmButtonText() const OVERRIDE; |
70 virtual string16 SaveLocallyText() const OVERRIDE; | 70 virtual string16 SaveLocallyText() const OVERRIDE; |
71 virtual string16 CancelSignInText() const OVERRIDE; | 71 virtual string16 CancelSignInText() const OVERRIDE; |
72 virtual string16 ProgressBarText() const OVERRIDE; | 72 virtual string16 ProgressBarText() const OVERRIDE; |
| 73 virtual std::vector<string16> FootnoteLinkParts() const OVERRIDE; |
| 74 virtual string16 AcceptFootnoteLinksText() const OVERRIDE; |
73 virtual DialogSignedInState SignedInState() const OVERRIDE; | 75 virtual DialogSignedInState SignedInState() const OVERRIDE; |
74 virtual bool CanPayWithWallet() const OVERRIDE; | 76 virtual bool CanPayWithWallet() const OVERRIDE; |
75 virtual bool AccountChooserEnabled() const OVERRIDE; | 77 virtual bool AccountChooserEnabled() const OVERRIDE; |
76 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 78 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
77 const OVERRIDE; | 79 const OVERRIDE; |
78 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 80 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
79 AutofillFieldType type) OVERRIDE; | 81 AutofillFieldType type) OVERRIDE; |
80 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; | 82 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; |
81 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 83 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
82 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE; | 84 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE; |
83 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE; | 85 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE; |
84 virtual void EditClickedForSection(DialogSection section) OVERRIDE; | 86 virtual void EditClickedForSection(DialogSection section) OVERRIDE; |
85 virtual bool InputIsValid(AutofillFieldType type, const string16& value) | 87 virtual bool InputIsValid(AutofillFieldType type, const string16& value) |
86 OVERRIDE; | 88 OVERRIDE; |
87 virtual void UserEditedOrActivatedInput(const DetailInput* input, | 89 virtual void UserEditedOrActivatedInput(const DetailInput* input, |
88 DialogSection section, | 90 DialogSection section, |
89 gfx::NativeView parent_view, | 91 gfx::NativeView parent_view, |
90 const gfx::Rect& content_bounds, | 92 const gfx::Rect& content_bounds, |
91 const string16& field_contents, | 93 const string16& field_contents, |
92 bool was_edit) OVERRIDE; | 94 bool was_edit) OVERRIDE; |
93 virtual bool HandleKeyPressEventInInput( | 95 virtual bool HandleKeyPressEventInInput( |
94 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 96 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
95 virtual void FocusMoved() OVERRIDE; | 97 virtual void FocusMoved() OVERRIDE; |
96 virtual void ViewClosed(DialogAction action) OVERRIDE; | |
97 virtual DialogNotification CurrentNotification() const OVERRIDE; | 98 virtual DialogNotification CurrentNotification() const OVERRIDE; |
98 virtual void StartSignInFlow() OVERRIDE; | 99 virtual void StartSignInFlow() OVERRIDE; |
99 virtual void EndSignInFlow() OVERRIDE; | 100 virtual void EndSignInFlow() OVERRIDE; |
100 virtual Profile* profile() OVERRIDE; | 101 virtual Profile* profile() OVERRIDE; |
101 virtual content::WebContents* web_contents() OVERRIDE; | 102 virtual content::WebContents* web_contents() OVERRIDE; |
| 103 virtual void LegalDocumentLinkClicked(int index) OVERRIDE; |
| 104 virtual void ViewClosed(DialogAction action) OVERRIDE; |
102 | 105 |
103 // AutofillPopupDelegate implementation. | 106 // AutofillPopupDelegate implementation. |
104 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE; | 107 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE; |
105 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE; | 108 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE; |
106 virtual void DidSelectSuggestion(int identifier) OVERRIDE; | 109 virtual void DidSelectSuggestion(int identifier) OVERRIDE; |
107 virtual void DidAcceptSuggestion(const string16& value, | 110 virtual void DidAcceptSuggestion(const string16& value, |
108 int identifier) OVERRIDE; | 111 int identifier) OVERRIDE; |
109 virtual void RemoveSuggestion(const string16& value, | 112 virtual void RemoveSuggestion(const string16& value, |
110 int identifier) OVERRIDE; | 113 int identifier) OVERRIDE; |
111 virtual void ClearPreviewedForm() OVERRIDE; | 114 virtual void ClearPreviewedForm() OVERRIDE; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 293 |
291 // A NotificationRegistrar for tracking the completion of sign-in. | 294 // A NotificationRegistrar for tracking the completion of sign-in. |
292 content::NotificationRegistrar registrar_; | 295 content::NotificationRegistrar registrar_; |
293 | 296 |
294 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 297 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
295 }; | 298 }; |
296 | 299 |
297 } // namespace autofill | 300 } // namespace autofill |
298 | 301 |
299 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 302 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |