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

Side by Side Diff: components/autofill/core/browser/test_autofill_manager_delegate.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_manager_delegate.h"
6 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
7
8 namespace autofill {
9
10 TestAutofillManagerDelegate::TestAutofillManagerDelegate() {}
11 TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {}
12
13 PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() {
14 return NULL;
15 }
16
17 scoped_refptr<AutofillWebDataService>
18 TestAutofillManagerDelegate::GetDatabase() {
19 return scoped_refptr<AutofillWebDataService>(NULL);
20 }
21
22 PrefService* TestAutofillManagerDelegate::GetPrefs() { return prefs_.get(); }
23
24 void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {}
25
26 void TestAutofillManagerDelegate::ShowAutofillSettings() {}
27
28 void TestAutofillManagerDelegate::ConfirmSaveCreditCard(
29 const AutofillMetrics& metric_logger,
30 const base::Closure& save_card_callback) {}
31
32 void TestAutofillManagerDelegate::ShowRequestAutocompleteDialog(
33 const FormData& form,
34 const GURL& source_url,
35 const ResultCallback& callback) {}
36
37 void TestAutofillManagerDelegate::ShowAutofillPopup(
38 const gfx::RectF& element_bounds,
39 base::i18n::TextDirection text_direction,
40 const std::vector<base::string16>& values,
41 const std::vector<base::string16>& labels,
42 const std::vector<base::string16>& icons,
43 const std::vector<int>& identifiers,
44 base::WeakPtr<AutofillPopupDelegate> delegate) {}
45
46 void TestAutofillManagerDelegate::UpdateAutofillPopupDataListValues(
47 const std::vector<base::string16>& values,
48 const std::vector<base::string16>& labels) {}
49
50 void TestAutofillManagerDelegate::HideAutofillPopup() {}
51
52 bool TestAutofillManagerDelegate::IsAutocompleteEnabled() {
53 return true;
54 }
55
56 void TestAutofillManagerDelegate::DetectAccountCreationForms(
57 const std::vector<autofill::FormStructure*>& forms) {}
58
59 void TestAutofillManagerDelegate::DidFillOrPreviewField(
60 const base::string16& autofilled_value,
61 const base::string16& profile_full_name) {}
62
63 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698