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

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