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_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_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 30 matching lines...) Expand all Loading... | |
41 public AutofillPopupDelegate { | 41 public AutofillPopupDelegate { |
42 public: | 42 public: |
43 // Creates an AutofillExternalDelegate and attaches it to the specified | 43 // Creates an AutofillExternalDelegate and attaches it to the specified |
44 // contents; the second argument is an AutofillManager managing Autofill for | 44 // contents; the second argument is an AutofillManager managing Autofill for |
45 // that WebContents. | 45 // that WebContents. |
46 static void CreateForWebContentsAndManager(content::WebContents* web_contents, | 46 static void CreateForWebContentsAndManager(content::WebContents* web_contents, |
47 AutofillManager* autofill_manager); | 47 AutofillManager* autofill_manager); |
48 | 48 |
49 // AutofillPopupDelegate implementation. | 49 // AutofillPopupDelegate implementation. |
50 virtual void SelectAutofillSuggestion(int unique_id) OVERRIDE; | 50 virtual void SelectAutofillSuggestion(int unique_id) OVERRIDE; |
51 virtual bool DidAcceptAutofillSuggestion(const string16& value, | 51 virtual void DidAcceptAutofillSuggestion(const string16& value, |
52 int unique_id, | 52 int unique_id) OVERRIDE; |
Ilya Sherman
2012/12/20 04:34:52
nit: Should we drop "Autofill" from these method n
Evan Stade
2012/12/20 20:01:25
Done.
| |
53 unsigned index) OVERRIDE; | |
54 virtual void ClearPreviewedForm() OVERRIDE; | 53 virtual void ClearPreviewedForm() OVERRIDE; |
55 virtual void RemoveAutocompleteEntry(const string16& value) OVERRIDE; | 54 virtual void RemoveAutocompleteEntry(const string16& value) OVERRIDE; |
56 virtual void RemoveAutofillProfileOrCreditCard(int unique_id) OVERRIDE; | 55 virtual void RemoveAutofillProfileOrCreditCard(int unique_id) OVERRIDE; |
57 virtual void ControllerDestroyed() OVERRIDE; | 56 virtual void ControllerDestroyed() OVERRIDE; |
58 | 57 |
59 // Records and associates a query_id with web form data. Called | 58 // Records and associates a query_id with web form data. Called |
60 // when the renderer posts an Autofill query to the browser. |bounds| | 59 // when the renderer posts an Autofill query to the browser. |bounds| |
61 // is window relative. |display_warning_if_disabled| tells us if we should | 60 // is window relative. |display_warning_if_disabled| tells us if we should |
62 // display warnings (such as autofill is disabled, but had suggestions). | 61 // display warnings (such as autofill is disabled, but had suggestions). |
63 // We might not want to display the warning if a website has disabled | 62 // We might not want to display the warning if a website has disabled |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
189 // The current data list values. | 188 // The current data list values. |
190 std::vector<string16> data_list_values_; | 189 std::vector<string16> data_list_values_; |
191 std::vector<string16> data_list_labels_; | 190 std::vector<string16> data_list_labels_; |
192 std::vector<string16> data_list_icons_; | 191 std::vector<string16> data_list_icons_; |
193 std::vector<int> data_list_unique_ids_; | 192 std::vector<int> data_list_unique_ids_; |
194 | 193 |
195 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 194 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
196 }; | 195 }; |
197 | 196 |
198 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ | 197 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ |
OLD | NEW |