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

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

Issue 8490017: Setting up external delegate calls to allow a future delegate to handle autofill (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Hard coding input element position Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 18 matching lines...) Expand all
29 class AutofillProfile; 29 class AutofillProfile;
30 class AutofillMetrics; 30 class AutofillMetrics;
31 class CreditCard; 31 class CreditCard;
32 class PersonalDataManager; 32 class PersonalDataManager;
33 class PrefService; 33 class PrefService;
34 class RenderViewHost; 34 class RenderViewHost;
35 class TabContentsWrapper; 35 class TabContentsWrapper;
36 36
37 struct ViewHostMsg_FrameNavigate_Params; 37 struct ViewHostMsg_FrameNavigate_Params;
38 38
39 namespace gfx {
40 class Rect;
41 };
42
39 namespace IPC { 43 namespace IPC {
40 class Message; 44 class Message;
41 } 45 }
42 46
43 namespace webkit_glue { 47 namespace webkit_glue {
44 struct FormData; 48 struct FormData;
45 struct FormField; 49 struct FormField;
46 } 50 }
47 51
48 // Manages saving and restoring the user's personal information entered into web 52 // Manages saving and restoring the user's personal information entered into web
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 140
137 // AutofillDownloadManager::Observer: 141 // AutofillDownloadManager::Observer:
138 virtual void OnLoadedServerPredictions( 142 virtual void OnLoadedServerPredictions(
139 const std::string& response_xml) OVERRIDE; 143 const std::string& response_xml) OVERRIDE;
140 144
141 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms, 145 void OnFormsSeen(const std::vector<webkit_glue::FormData>& forms,
142 const base::TimeTicks& timestamp); 146 const base::TimeTicks& timestamp);
143 void OnTextFieldDidChange(const webkit_glue::FormData& form, 147 void OnTextFieldDidChange(const webkit_glue::FormData& form,
144 const webkit_glue::FormField& field, 148 const webkit_glue::FormField& field,
145 const base::TimeTicks& timestamp); 149 const base::TimeTicks& timestamp);
150
151 // The |bounding_box| is a window relative value.
146 void OnQueryFormFieldAutofill(int query_id, 152 void OnQueryFormFieldAutofill(int query_id,
147 const webkit_glue::FormData& form, 153 const webkit_glue::FormData& form,
148 const webkit_glue::FormField& field); 154 const webkit_glue::FormField& field,
155 const gfx::Rect& bounding_box);
149 void OnFillAutofillFormData(int query_id, 156 void OnFillAutofillFormData(int query_id,
150 const webkit_glue::FormData& form, 157 const webkit_glue::FormData& form,
151 const webkit_glue::FormField& field, 158 const webkit_glue::FormField& field,
152 int unique_id); 159 int unique_id);
153 void OnShowAutofillDialog(); 160 void OnShowAutofillDialog();
154 void OnDidPreviewAutofillFormData(); 161 void OnDidPreviewAutofillFormData();
155 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp); 162 void OnDidFillAutofillFormData(const base::TimeTicks& timestamp);
156 void OnDidShowAutofillSuggestions(bool is_new_popup); 163 void OnDidShowAutofillSuggestions(bool is_new_popup);
164 void OnHideAutofillPopup();
157 165
158 // Fills |host| with the RenderViewHost for this tab. 166 // Fills |host| with the RenderViewHost for this tab.
159 // Returns false if Autofill is disabled or if the host is unavailable. 167 // Returns false if Autofill is disabled or if the host is unavailable.
160 bool GetHost(const std::vector<AutofillProfile*>& profiles, 168 bool GetHost(const std::vector<AutofillProfile*>& profiles,
161 const std::vector<CreditCard*>& credit_cards, 169 const std::vector<CreditCard*>& credit_cards,
162 RenderViewHost** host) const WARN_UNUSED_RESULT; 170 RenderViewHost** host) const WARN_UNUSED_RESULT;
163 171
164 // Unpacks |unique_id| and fills |profile| or |credit_card| with the 172 // Unpacks |unique_id| and fills |profile| or |credit_card| with the
165 // appropriate data source. Returns false if the unpacked id cannot be found. 173 // appropriate data source. Returns false if the unpacked id cannot be found.
166 bool GetProfileOrCreditCard(int unique_id, 174 bool GetProfileOrCreditCard(int unique_id,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 TestTabContentsWithExternalDelegate); 330 TestTabContentsWithExternalDelegate);
323 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 331 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
324 UserHappinessFormLoadAndSubmission); 332 UserHappinessFormLoadAndSubmission);
325 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 333 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
326 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 334 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
327 335
328 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 336 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
329 }; 337 };
330 338
331 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 339 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.h ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698