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 26 matching lines...) Expand all Loading... |
37 // Creates an AutofillExternalDelegate for the specified AutofillManager and | 37 // Creates an AutofillExternalDelegate for the specified AutofillManager and |
38 // AutofillDriver. | 38 // AutofillDriver. |
39 AutofillExternalDelegate(AutofillManager* manager, | 39 AutofillExternalDelegate(AutofillManager* manager, |
40 AutofillDriver* driver); | 40 AutofillDriver* 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(const base::string16& value, |
| 48 int identifier) OVERRIDE; |
48 virtual void DidAcceptSuggestion(const base::string16& value, | 49 virtual void DidAcceptSuggestion(const base::string16& value, |
49 int identifier) OVERRIDE; | 50 int identifier) OVERRIDE; |
50 virtual void RemoveSuggestion(const base::string16& value, | 51 virtual void RemoveSuggestion(const base::string16& value, |
51 int identifier) OVERRIDE; | 52 int identifier) OVERRIDE; |
52 virtual void ClearPreviewedForm() OVERRIDE; | 53 virtual void ClearPreviewedForm() OVERRIDE; |
53 | 54 |
54 // Records and associates a query_id with web form data. Called | 55 // Records and associates a query_id with web form data. Called |
55 // when the renderer posts an Autofill query to the browser. |bounds| | 56 // when the renderer posts an Autofill query to the browser. |bounds| |
56 // is window relative. |display_warning_if_disabled| tells us if we should | 57 // is window relative. |display_warning_if_disabled| tells us if we should |
57 // display warnings (such as autofill is disabled, but had suggestions). | 58 // display warnings (such as autofill is disabled, but had suggestions). |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 std::vector<base::string16> data_list_labels_; | 163 std::vector<base::string16> data_list_labels_; |
163 | 164 |
164 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 165 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
165 | 166 |
166 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 167 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
167 }; | 168 }; |
168 | 169 |
169 } // namespace autofill | 170 } // namespace autofill |
170 | 171 |
171 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 172 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
OLD | NEW |