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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.cc

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/autofill/core/browser/test_autofill_client.h"
6
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8
9 namespace autofill {
10
11 TestAutofillClient::TestAutofillClient() {
12 }
13 TestAutofillClient::~TestAutofillClient() {
14 }
15
16 PersonalDataManager* TestAutofillClient::GetPersonalDataManager() {
17 return NULL;
18 }
19
20 scoped_refptr<AutofillWebDataService> TestAutofillClient::GetDatabase() {
21 return scoped_refptr<AutofillWebDataService>(NULL);
22 }
23
24 PrefService* TestAutofillClient::GetPrefs() {
25 return prefs_.get();
26 }
27
28 void TestAutofillClient::HideRequestAutocompleteDialog() {
29 }
30
31 void TestAutofillClient::ShowAutofillSettings() {
32 }
33
34 void TestAutofillClient::ConfirmSaveCreditCard(
35 const AutofillMetrics& metric_logger,
36 const base::Closure& save_card_callback) {
37 }
38
39 void TestAutofillClient::ShowRequestAutocompleteDialog(
40 const FormData& form,
41 const GURL& source_url,
42 const ResultCallback& callback) {
43 }
44
45 void TestAutofillClient::ShowAutofillPopup(
46 const gfx::RectF& element_bounds,
47 base::i18n::TextDirection text_direction,
48 const std::vector<base::string16>& values,
49 const std::vector<base::string16>& labels,
50 const std::vector<base::string16>& icons,
51 const std::vector<int>& identifiers,
52 base::WeakPtr<AutofillPopupDelegate> delegate) {
53 }
54
55 void TestAutofillClient::UpdateAutofillPopupDataListValues(
56 const std::vector<base::string16>& values,
57 const std::vector<base::string16>& labels) {
58 }
59
60 void TestAutofillClient::HideAutofillPopup() {
61 }
62
63 bool TestAutofillClient::IsAutocompleteEnabled() {
64 return true;
65 }
66
67 void TestAutofillClient::DetectAccountCreationForms(
68 const std::vector<autofill::FormStructure*>& forms) {
69 }
70
71 void TestAutofillClient::DidFillOrPreviewField(
72 const base::string16& autofilled_value,
73 const base::string16& profile_full_name) {
74 }
75
76 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698