OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 5 #ifndef CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 6 #define CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 void OnSuggestionsReturned(int query_id, | 95 void OnSuggestionsReturned(int query_id, |
96 const std::vector<string16>& values, | 96 const std::vector<string16>& values, |
97 const std::vector<string16>& labels, | 97 const std::vector<string16>& labels, |
98 const std::vector<string16>& icons, | 98 const std::vector<string16>& icons, |
99 const std::vector<int>& unique_ids); | 99 const std::vector<int>& unique_ids); |
100 void OnFormDataFilled(int query_id, const webkit_glue::FormData& form); | 100 void OnFormDataFilled(int query_id, const webkit_glue::FormData& form); |
101 void OnFieldTypePredictionsAvailable( | 101 void OnFieldTypePredictionsAvailable( |
102 const std::vector<webkit_glue::FormDataPredictions>& forms); | 102 const std::vector<webkit_glue::FormDataPredictions>& forms); |
103 | 103 |
104 // For external Autofill selection. | 104 // For external Autofill selection. |
105 void OnSelectAutofillSuggestionAtIndex(int listIndex); | 105 void OnSelectAutofillSuggestionAtIndex(int listIndex); |
106 | 106 |
107 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug | 107 // Called in a posted task by textFieldDidChange() to work-around a WebKit bug |
108 // http://bugs.webkit.org/show_bug.cgi?id=16976 | 108 // http://bugs.webkit.org/show_bug.cgi?id=16976 |
109 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); | 109 void TextFieldDidChangeImpl(const WebKit::WebInputElement& element); |
110 | 110 |
111 // Shows the autofill suggestions for |element|. | 111 // Shows the autofill suggestions for |element|. |
112 // This call is asynchronous and may or may not lead to the showing of a | 112 // This call is asynchronous and may or may not lead to the showing of a |
113 // suggestion popup (no popup is shown if there are no available suggestions). | 113 // suggestion popup (no popup is shown if there are no available suggestions). |
114 // |autofill_on_empty_values| specifies whether suggestions should be shown | 114 // |autofill_on_empty_values| specifies whether suggestions should be shown |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 182 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
183 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 183 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
184 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 184 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 186 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace autofill | 189 } // namespace autofill |
190 | 190 |
191 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 191 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |