OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // AutofillDriver. | 38 // AutofillDriver. |
39 AutofillExternalDelegate(AutofillManager* autofill_manager, | 39 AutofillExternalDelegate(AutofillManager* autofill_manager, |
40 AutofillDriver* autofill_driver); | 40 AutofillDriver* autofill_driver); |
41 virtual ~AutofillExternalDelegate(); | 41 virtual ~AutofillExternalDelegate(); |
42 | 42 |
43 // AutofillPopupDelegate implementation. | 43 // AutofillPopupDelegate implementation. |
44 virtual void OnPopupShown() OVERRIDE; | 44 virtual void OnPopupShown() OVERRIDE; |
45 virtual void OnPopupHidden() OVERRIDE; | 45 virtual void OnPopupHidden() OVERRIDE; |
46 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) OVERRIDE; | 46 virtual bool ShouldRepostEvent(const ui::MouseEvent& event) OVERRIDE; |
47 virtual void DidSelectSuggestion(int identifier) OVERRIDE; | 47 virtual void DidSelectSuggestion(int identifier) OVERRIDE; |
| 48 virtual void |
| 49 DidSelectAutocompleteSuggestion(const base::string16& value) OVERRIDE; |
48 virtual void DidAcceptSuggestion(const base::string16& value, | 50 virtual void DidAcceptSuggestion(const base::string16& value, |
49 int identifier) OVERRIDE; | 51 int identifier) OVERRIDE; |
50 virtual void RemoveSuggestion(const base::string16& value, | 52 virtual void RemoveSuggestion(const base::string16& value, |
51 int identifier) OVERRIDE; | 53 int identifier) OVERRIDE; |
52 virtual void ClearPreviewedForm() OVERRIDE; | 54 virtual void ClearPreviewedForm() OVERRIDE; |
| 55 virtual void ClearAutocompletePreviewedField() OVERRIDE; |
53 | 56 |
54 // Records and associates a query_id with web form data. Called | 57 // Records and associates a query_id with web form data. Called |
55 // when the renderer posts an Autofill query to the browser. |bounds| | 58 // when the renderer posts an Autofill query to the browser. |bounds| |
56 // is window relative. |display_warning_if_disabled| tells us if we should | 59 // is window relative. |display_warning_if_disabled| tells us if we should |
57 // display warnings (such as autofill is disabled, but had suggestions). | 60 // display warnings (such as autofill is disabled, but had suggestions). |
58 // We might not want to display the warning if a website has disabled | 61 // We might not want to display the warning if a website has disabled |
59 // Autocomplete because they have their own popup, and showing our popup | 62 // Autocomplete because they have their own popup, and showing our popup |
60 // on to of theirs would be a poor user experience. | 63 // on to of theirs would be a poor user experience. |
61 virtual void OnQuery(int query_id, | 64 virtual void OnQuery(int query_id, |
62 const FormData& form, | 65 const FormData& form, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 std::vector<base::string16> data_list_labels_; | 165 std::vector<base::string16> data_list_labels_; |
163 | 166 |
164 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 167 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
165 | 168 |
166 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 169 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
167 }; | 170 }; |
168 | 171 |
169 } // namespace autofill | 172 } // namespace autofill |
170 | 173 |
171 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 174 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
OLD | NEW |