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

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: fix 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
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/autofill/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698