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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Fills |form| and |field| with the FormData and FormField corresponding to | 163 // Fills |form| and |field| with the FormData and FormField corresponding to |
164 // |node|. Returns true if the data was found; and false otherwise. | 164 // |node|. Returns true if the data was found; and false otherwise. |
165 bool FindFormAndFieldForNode( | 165 bool FindFormAndFieldForNode( |
166 const WebKit::WebNode& node, | 166 const WebKit::WebNode& node, |
167 FormData* form, | 167 FormData* form, |
168 FormFieldData* field) WARN_UNUSED_RESULT; | 168 FormFieldData* field) WARN_UNUSED_RESULT; |
169 | 169 |
170 // Set |node| to display the given |value|. | 170 // Set |node| to display the given |value|. |
171 void SetNodeText(const string16& value, WebKit::WebInputElement* node); | 171 void SetNodeText(const string16& value, WebKit::WebInputElement* node); |
172 | 172 |
173 // Hides any currently showing Autofill popups. | 173 // Hides any currently showing Autofill popups in the renderer or browser. |
174 void HidePopups(); | 174 void HidePopups(); |
175 | 175 |
| 176 // Hides any currently showing Autofill popups in the browser only. |
| 177 void HideHostPopups(); |
| 178 |
176 FormCache form_cache_; | 179 FormCache form_cache_; |
177 | 180 |
178 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. | 181 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. |
179 | 182 |
180 // The ID of the last request sent for form field Autofill. Used to ignore | 183 // The ID of the last request sent for form field Autofill. Used to ignore |
181 // out of date responses. | 184 // out of date responses. |
182 int autofill_query_id_; | 185 int autofill_query_id_; |
183 | 186 |
184 // The element corresponding to the last request sent for form field Autofill. | 187 // The element corresponding to the last request sent for form field Autofill. |
185 WebKit::WebInputElement element_; | 188 WebKit::WebInputElement element_; |
(...skipping 25 matching lines...) Expand all Loading... |
211 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); | 214 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); |
212 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); | 215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); |
213 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); | 216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); |
214 | 217 |
215 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 218 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
216 }; | 219 }; |
217 | 220 |
218 } // namespace autofill | 221 } // namespace autofill |
219 | 222 |
220 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ | 223 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ |
OLD | NEW |