OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROME_AUTOFILL_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 public content::WebContentsUserData<ChromeAutofillClient>, | 33 public content::WebContentsUserData<ChromeAutofillClient>, |
34 public content::WebContentsObserver, | 34 public content::WebContentsObserver, |
35 public ZoomObserver { | 35 public ZoomObserver { |
36 public: | 36 public: |
37 virtual ~ChromeAutofillClient(); | 37 virtual ~ChromeAutofillClient(); |
38 | 38 |
39 // Called when the tab corresponding to |this| instance is activated. | 39 // Called when the tab corresponding to |this| instance is activated. |
40 void TabActivated(); | 40 void TabActivated(); |
41 | 41 |
42 // AutofillClient: | 42 // AutofillClient: |
43 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; | 43 virtual PersonalDataManager* GetPersonalDataManager() override; |
44 virtual scoped_refptr<AutofillWebDataService> GetDatabase() OVERRIDE; | 44 virtual scoped_refptr<AutofillWebDataService> GetDatabase() override; |
45 virtual PrefService* GetPrefs() OVERRIDE; | 45 virtual PrefService* GetPrefs() override; |
46 virtual void HideRequestAutocompleteDialog() OVERRIDE; | 46 virtual void HideRequestAutocompleteDialog() override; |
47 virtual void ShowAutofillSettings() OVERRIDE; | 47 virtual void ShowAutofillSettings() override; |
48 virtual void ConfirmSaveCreditCard( | 48 virtual void ConfirmSaveCreditCard( |
49 const AutofillMetrics& metric_logger, | 49 const AutofillMetrics& metric_logger, |
50 const base::Closure& save_card_callback) OVERRIDE; | 50 const base::Closure& save_card_callback) override; |
51 virtual void ShowRequestAutocompleteDialog( | 51 virtual void ShowRequestAutocompleteDialog( |
52 const FormData& form, | 52 const FormData& form, |
53 const GURL& source_url, | 53 const GURL& source_url, |
54 const ResultCallback& callback) OVERRIDE; | 54 const ResultCallback& callback) override; |
55 virtual void ShowAutofillPopup( | 55 virtual void ShowAutofillPopup( |
56 const gfx::RectF& element_bounds, | 56 const gfx::RectF& element_bounds, |
57 base::i18n::TextDirection text_direction, | 57 base::i18n::TextDirection text_direction, |
58 const std::vector<base::string16>& values, | 58 const std::vector<base::string16>& values, |
59 const std::vector<base::string16>& labels, | 59 const std::vector<base::string16>& labels, |
60 const std::vector<base::string16>& icons, | 60 const std::vector<base::string16>& icons, |
61 const std::vector<int>& identifiers, | 61 const std::vector<int>& identifiers, |
62 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; | 62 base::WeakPtr<AutofillPopupDelegate> delegate) override; |
63 virtual void UpdateAutofillPopupDataListValues( | 63 virtual void UpdateAutofillPopupDataListValues( |
64 const std::vector<base::string16>& values, | 64 const std::vector<base::string16>& values, |
65 const std::vector<base::string16>& labels) OVERRIDE; | 65 const std::vector<base::string16>& labels) override; |
66 virtual void HideAutofillPopup() OVERRIDE; | 66 virtual void HideAutofillPopup() override; |
67 virtual bool IsAutocompleteEnabled() OVERRIDE; | 67 virtual bool IsAutocompleteEnabled() override; |
68 virtual void DetectAccountCreationForms( | 68 virtual void DetectAccountCreationForms( |
69 const std::vector<autofill::FormStructure*>& forms) OVERRIDE; | 69 const std::vector<autofill::FormStructure*>& forms) override; |
70 virtual void DidFillOrPreviewField( | 70 virtual void DidFillOrPreviewField( |
71 const base::string16& autofilled_value, | 71 const base::string16& autofilled_value, |
72 const base::string16& profile_full_name) OVERRIDE; | 72 const base::string16& profile_full_name) override; |
73 | 73 |
74 // content::WebContentsObserver implementation. | 74 // content::WebContentsObserver implementation. |
75 virtual void WebContentsDestroyed() OVERRIDE; | 75 virtual void WebContentsDestroyed() override; |
76 | 76 |
77 // ZoomObserver implementation. | 77 // ZoomObserver implementation. |
78 virtual void OnZoomChanged( | 78 virtual void OnZoomChanged( |
79 const ZoomController::ZoomChangedEventData& data) OVERRIDE; | 79 const ZoomController::ZoomChangedEventData& data) override; |
80 | 80 |
81 // Exposed for testing. | 81 // Exposed for testing. |
82 AutofillDialogController* GetDialogControllerForTesting() { | 82 AutofillDialogController* GetDialogControllerForTesting() { |
83 return dialog_controller_.get(); | 83 return dialog_controller_.get(); |
84 } | 84 } |
85 void SetDialogControllerForTesting( | 85 void SetDialogControllerForTesting( |
86 const base::WeakPtr<AutofillDialogController>& dialog_controller) { | 86 const base::WeakPtr<AutofillDialogController>& dialog_controller) { |
87 dialog_controller_ = dialog_controller; | 87 dialog_controller_ = dialog_controller; |
88 } | 88 } |
89 | 89 |
(...skipping 24 matching lines...) Expand all Loading... |
114 // scoped_ptr. | 114 // scoped_ptr. |
115 AutofillKeystoneBridgeWrapper* bridge_wrapper_; | 115 AutofillKeystoneBridgeWrapper* bridge_wrapper_; |
116 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 116 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); | 118 DISALLOW_COPY_AND_ASSIGN(ChromeAutofillClient); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace autofill | 121 } // namespace autofill |
122 | 122 |
123 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ | 123 #endif // CHROME_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_ |
OLD | NEW |