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

Side by Side Diff: chrome/browser/autofill/autofill_manager.h

Issue 12188020: Adding the page and DPI scale adjustment for Autofill Popups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing Autofill unittests Created 7 years, 10 months 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_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 namespace content { 59 namespace content {
60 class RenderViewHost; 60 class RenderViewHost;
61 class WebContents; 61 class WebContents;
62 62
63 struct PasswordForm; 63 struct PasswordForm;
64 } 64 }
65 65
66 namespace gfx { 66 namespace gfx {
67 class Rect; 67 class Rect;
68 class RectF;
68 } 69 }
69 70
70 namespace IPC { 71 namespace IPC {
71 class Message; 72 class Message;
72 } 73 }
73 74
74 // Manages saving and restoring the user's personal information entered into web 75 // Manages saving and restoring the user's personal information entered into web
75 // forms. 76 // forms.
76 class AutofillManager : public content::WebContentsObserver, 77 class AutofillManager : public content::WebContentsObserver,
77 public AutofillDownloadManager::Observer, 78 public AutofillDownloadManager::Observer,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void OnFormsSeen(const std::vector<FormData>& forms, 226 void OnFormsSeen(const std::vector<FormData>& forms,
226 const base::TimeTicks& timestamp); 227 const base::TimeTicks& timestamp);
227 void OnTextFieldDidChange(const FormData& form, 228 void OnTextFieldDidChange(const FormData& form,
228 const FormFieldData& field, 229 const FormFieldData& field,
229 const base::TimeTicks& timestamp); 230 const base::TimeTicks& timestamp);
230 231
231 // The |bounding_box| is a window relative value. 232 // The |bounding_box| is a window relative value.
232 void OnQueryFormFieldAutofill(int query_id, 233 void OnQueryFormFieldAutofill(int query_id,
233 const FormData& form, 234 const FormData& form,
234 const FormFieldData& field, 235 const FormFieldData& field,
235 const gfx::Rect& bounding_box, 236 const gfx::RectF& bounding_box,
236 bool display_warning); 237 bool display_warning);
237 void OnDidEndTextFieldEditing(); 238 void OnDidEndTextFieldEditing();
238 void OnHideAutofillPopup(); 239 void OnHideAutofillPopup();
239 void OnAddPasswordFormMapping( 240 void OnAddPasswordFormMapping(
240 const FormFieldData& form, 241 const FormFieldData& form,
241 const PasswordFormFillData& fill_data); 242 const PasswordFormFillData& fill_data);
242 void OnShowPasswordSuggestions(const FormFieldData& field, 243 void OnShowPasswordSuggestions(const FormFieldData& field,
243 const gfx::Rect& bounds, 244 const gfx::RectF& bounds,
244 const std::vector<string16>& suggestions); 245 const std::vector<string16>& suggestions);
245 void OnSetDataList(const std::vector<string16>& values, 246 void OnSetDataList(const std::vector<string16>& values,
246 const std::vector<string16>& labels, 247 const std::vector<string16>& labels,
247 const std::vector<string16>& icons, 248 const std::vector<string16>& icons,
248 const std::vector<int>& unique_ids); 249 const std::vector<int>& unique_ids);
249 250
250 // Requests an interactive autocomplete UI be shown. 251 // Requests an interactive autocomplete UI be shown.
251 void OnRequestAutocomplete(const FormData& form, 252 void OnRequestAutocomplete(const FormData& form,
252 const GURL& frame_url, 253 const GURL& frame_url,
253 const content::SSLStatus& ssl_status); 254 const content::SSLStatus& ssl_status);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 422 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
422 TestTabContentsWithExternalDelegate); 423 TestTabContentsWithExternalDelegate);
423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 424 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
424 UserHappinessFormLoadAndSubmission); 425 UserHappinessFormLoadAndSubmission);
425 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 426 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
426 427
427 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 428 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
428 }; 429 };
429 430
430 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 431 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698