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_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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Fills |form| and |field| with the FormData and FormField corresponding to | 157 // Fills |form| and |field| with the FormData and FormField corresponding to |
158 // |node|. Returns true if the data was found; and false otherwise. | 158 // |node|. Returns true if the data was found; and false otherwise. |
159 bool FindFormAndFieldForNode( | 159 bool FindFormAndFieldForNode( |
160 const WebKit::WebNode& node, | 160 const WebKit::WebNode& node, |
161 webkit::forms::FormData* form, | 161 webkit::forms::FormData* form, |
162 webkit::forms::FormField* field) WARN_UNUSED_RESULT; | 162 webkit::forms::FormField* field) WARN_UNUSED_RESULT; |
163 | 163 |
164 // Set |node| to display the given |value|. | 164 // Set |node| to display the given |value|. |
165 void SetNodeText(const string16& value, WebKit::WebInputElement* node); | 165 void SetNodeText(const string16& value, WebKit::WebInputElement* node); |
166 | 166 |
| 167 void HidePopups(); |
| 168 |
167 FormCache form_cache_; | 169 FormCache form_cache_; |
168 | 170 |
169 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. | 171 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. |
170 | 172 |
171 // The ID of the last request sent for form field Autofill. Used to ignore | 173 // The ID of the last request sent for form field Autofill. Used to ignore |
172 // out of date responses. | 174 // out of date responses. |
173 int autofill_query_id_; | 175 int autofill_query_id_; |
174 | 176 |
175 // The element corresponding to the last request sent for form field Autofill. | 177 // The element corresponding to the last request sent for form field Autofill. |
176 WebKit::WebInputElement element_; | 178 WebKit::WebInputElement element_; |
(...skipping 19 matching lines...) Expand all Loading... |
196 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 198 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
197 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 199 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
198 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 200 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
199 | 201 |
200 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 202 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
201 }; | 203 }; |
202 | 204 |
203 } // namespace autofill | 205 } // namespace autofill |
204 | 206 |
205 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 207 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |