summaryrefslogtreecommitdiffstats
path: root/components/autofill/browser/test_autofill_manager_delegate.cc
blob: e1b656ebdfdd9a4f6967758ea40e625cce5419f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/browser/test_autofill_manager_delegate.h"

namespace autofill {

TestAutofillManagerDelegate::TestAutofillManagerDelegate() {}
TestAutofillManagerDelegate::~TestAutofillManagerDelegate() {}

PersonalDataManager* TestAutofillManagerDelegate::GetPersonalDataManager() {
  return NULL;
}

autocheckout::WhitelistManager*
TestAutofillManagerDelegate::GetAutocheckoutWhitelistManager() const {
  return NULL;
}

PrefService* TestAutofillManagerDelegate::GetPrefs() {
  return NULL;
}

void TestAutofillManagerDelegate::HideRequestAutocompleteDialog() {}

bool TestAutofillManagerDelegate::IsSavingPasswordsEnabled() const {
  return false;
}

bool TestAutofillManagerDelegate::IsPasswordSyncEnabled() const {
  return false;
}

void TestAutofillManagerDelegate::SetSyncStateChangedCallback(
    const base::Closure& callback) { }

void TestAutofillManagerDelegate::OnAutocheckoutError() {}

void TestAutofillManagerDelegate::ShowAutofillSettings() {}

void TestAutofillManagerDelegate::ConfirmSaveCreditCard(
    const AutofillMetrics& metric_logger,
    const CreditCard& credit_card,
    const base::Closure& save_card_callback) {}

void TestAutofillManagerDelegate::ShowPasswordGenerationBubble(
    const gfx::Rect& bounds,
    const content::PasswordForm& form,
    autofill::PasswordGenerator* generator) {}

void TestAutofillManagerDelegate::ShowAutocheckoutBubble(
    const gfx::RectF& bounding_box,
    const gfx::NativeView& native_view,
    const base::Callback<void(bool)>& callback) {}

void TestAutofillManagerDelegate::HideAutocheckoutBubble() {}

void TestAutofillManagerDelegate::ShowRequestAutocompleteDialog(
    const FormData& form,
    const GURL& source_url,
    const AutofillMetrics& metric_logger,
    DialogType dialog_type,
    const base::Callback<void(const FormStructure*,
                              const std::string&)>& callback) {}

void TestAutofillManagerDelegate::ShowAutofillPopup(
    const gfx::RectF& element_bounds,
    const std::vector<string16>& values,
    const std::vector<string16>& labels,
    const std::vector<string16>& icons,
    const std::vector<int>& identifiers,
    AutofillPopupDelegate* delegate) {}

void TestAutofillManagerDelegate::HideAutofillPopup() {}

void TestAutofillManagerDelegate::UpdateProgressBar(double value) {}

}  // namespace autofill