Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: chrome/renderer/autofill/autofill_agent.h

Issue 11273096: [autofill] When hiding popups in the renderer also hide those in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: isherman@ review Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 FormCache form_cache_; 176 FormCache form_cache_;
177 177
178 PasswordAutofillManager* password_autofill_manager_; // WEAK reference. 178 PasswordAutofillManager* password_autofill_manager_; // WEAK reference.
179 179
180 // The ID of the last request sent for form field Autofill. Used to ignore 180 // The ID of the last request sent for form field Autofill. Used to ignore
181 // out of date responses. 181 // out of date responses.
182 int autofill_query_id_; 182 int autofill_query_id_;
183 183
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername); 215 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, WaitUsername);
216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept); 216 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionAccept);
217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect); 217 FRIEND_TEST_ALL_PREFIXES(PasswordAutofillManagerTest, SuggestionSelect);
218 218
219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 219 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
220 }; 220 };
221 221
222 } // namespace autofill 222 } // namespace autofill
223 223
224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_ 224 #endif // CHROME_RENDERER_AUTOFILL_AUTOFILL_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | chrome/renderer/autofill/autofill_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698