| 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 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 23 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
| 24 #include "chrome/browser/ui/autofill/autofill_popup_delegate.h" | 24 #include "chrome/browser/ui/autofill/autofill_popup_delegate.h" |
| 25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
| 26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
| 27 #include "content/public/common/ssl_status.h" | 27 #include "content/public/common/ssl_status.h" |
| 28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
| 29 #include "ui/base/models/simple_menu_model.h" | 29 #include "ui/base/models/simple_menu_model.h" |
| 30 | 30 |
| 31 class AutofillPopupControllerImpl; | 31 class AutofillPopupControllerImpl; |
| 32 class FormGroup; | 32 class FormGroup; |
| 33 class GURL; |
| 33 class Profile; | 34 class Profile; |
| 34 | 35 |
| 35 namespace content { | 36 namespace content { |
| 36 class WebContents; | 37 class WebContents; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace autofill { | 40 namespace autofill { |
| 40 | 41 |
| 41 class AutofillDialogView; | 42 class AutofillDialogView; |
| 42 | 43 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 63 virtual string16 DialogTitle() const OVERRIDE; | 64 virtual string16 DialogTitle() const OVERRIDE; |
| 64 virtual string16 EditSuggestionText() const OVERRIDE; | 65 virtual string16 EditSuggestionText() const OVERRIDE; |
| 65 virtual string16 UseBillingForShippingText() const OVERRIDE; | 66 virtual string16 UseBillingForShippingText() const OVERRIDE; |
| 66 virtual string16 WalletOptionText() const OVERRIDE; | 67 virtual string16 WalletOptionText() const OVERRIDE; |
| 67 virtual string16 CancelButtonText() const OVERRIDE; | 68 virtual string16 CancelButtonText() const OVERRIDE; |
| 68 virtual string16 ConfirmButtonText() const OVERRIDE; | 69 virtual string16 ConfirmButtonText() const OVERRIDE; |
| 69 virtual string16 SignInText() const OVERRIDE; | 70 virtual string16 SignInText() const OVERRIDE; |
| 70 virtual string16 SaveLocallyText() const OVERRIDE; | 71 virtual string16 SaveLocallyText() const OVERRIDE; |
| 71 virtual string16 CancelSignInText() const OVERRIDE; | 72 virtual string16 CancelSignInText() const OVERRIDE; |
| 72 virtual string16 ProgressBarText() const OVERRIDE; | 73 virtual string16 ProgressBarText() const OVERRIDE; |
| 74 virtual std::vector<string16> FootnoteLinkParts() const OVERRIDE; |
| 75 virtual string16 AcceptChangesText() const OVERRIDE; |
| 73 virtual DialogSignedInState SignedInState() const OVERRIDE; | 76 virtual DialogSignedInState SignedInState() const OVERRIDE; |
| 74 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 77 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
| 75 const OVERRIDE; | 78 const OVERRIDE; |
| 76 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 79 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
| 77 AutofillFieldType type) OVERRIDE; | 80 AutofillFieldType type) OVERRIDE; |
| 78 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; | 81 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; |
| 79 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 82 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
| 80 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE; | 83 virtual string16 SuggestionTextForSection(DialogSection section) OVERRIDE; |
| 81 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE; | 84 virtual gfx::Image SuggestionIconForSection(DialogSection section) OVERRIDE; |
| 82 virtual void EditClickedForSection(DialogSection section) OVERRIDE; | 85 virtual void EditClickedForSection(DialogSection section) OVERRIDE; |
| 83 virtual bool InputIsValid(AutofillFieldType type, const string16& value) | 86 virtual bool InputIsValid(AutofillFieldType type, const string16& value) |
| 84 OVERRIDE; | 87 OVERRIDE; |
| 85 virtual void UserEditedOrActivatedInput(const DetailInput* input, | 88 virtual void UserEditedOrActivatedInput(const DetailInput* input, |
| 86 DialogSection section, | 89 DialogSection section, |
| 87 gfx::NativeView parent_view, | 90 gfx::NativeView parent_view, |
| 88 const gfx::Rect& content_bounds, | 91 const gfx::Rect& content_bounds, |
| 89 const string16& field_contents, | 92 const string16& field_contents, |
| 90 bool was_edit) OVERRIDE; | 93 bool was_edit) OVERRIDE; |
| 91 virtual bool HandleKeyPressEventInInput( | 94 virtual bool HandleKeyPressEventInInput( |
| 92 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 95 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 93 virtual void FocusMoved() OVERRIDE; | 96 virtual void FocusMoved() OVERRIDE; |
| 94 virtual void ViewClosed(DialogAction action) OVERRIDE; | |
| 95 virtual DialogNotification CurrentNotification() const OVERRIDE; | 97 virtual DialogNotification CurrentNotification() const OVERRIDE; |
| 96 virtual void StartSignInFlow() OVERRIDE; | 98 virtual void StartSignInFlow() OVERRIDE; |
| 97 virtual void EndSignInFlow() OVERRIDE; | 99 virtual void EndSignInFlow() OVERRIDE; |
| 98 virtual Profile* profile() OVERRIDE; | 100 virtual Profile* profile() OVERRIDE; |
| 99 virtual content::WebContents* web_contents() OVERRIDE; | 101 virtual content::WebContents* web_contents() OVERRIDE; |
| 102 virtual void LegalDocumentLinkClicked(size_t index) OVERRIDE; |
| 103 virtual void ViewClosed(DialogAction action) OVERRIDE; |
| 100 | 104 |
| 101 // AutofillPopupDelegate implementation. | 105 // AutofillPopupDelegate implementation. |
| 102 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE; | 106 virtual void OnPopupShown(content::KeyboardListener* listener) OVERRIDE; |
| 103 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE; | 107 virtual void OnPopupHidden(content::KeyboardListener* listener) OVERRIDE; |
| 104 virtual void DidSelectSuggestion(int identifier) OVERRIDE; | 108 virtual void DidSelectSuggestion(int identifier) OVERRIDE; |
| 105 virtual void DidAcceptSuggestion(const string16& value, | 109 virtual void DidAcceptSuggestion(const string16& value, |
| 106 int identifier) OVERRIDE; | 110 int identifier) OVERRIDE; |
| 107 virtual void RemoveSuggestion(const string16& value, | 111 virtual void RemoveSuggestion(const string16& value, |
| 108 int identifier) OVERRIDE; | 112 int identifier) OVERRIDE; |
| 109 virtual void ClearPreviewedForm() OVERRIDE; | 113 virtual void ClearPreviewedForm() OVERRIDE; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 275 |
| 272 // A NotificationRegistrar for tracking the completion of sign-in. | 276 // A NotificationRegistrar for tracking the completion of sign-in. |
| 273 content::NotificationRegistrar registrar_; | 277 content::NotificationRegistrar registrar_; |
| 274 | 278 |
| 275 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 279 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 276 }; | 280 }; |
| 277 | 281 |
| 278 } // namespace autofill | 282 } // namespace autofill |
| 279 | 283 |
| 280 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 284 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |