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

Side by Side Diff: android_webview/browser/aw_autofill_manager_delegate.cc

Issue 16212007: Implement the autofill UI for chromium powered android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue15097004
Patch Set: move ui files Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 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 "android_webview/browser/aw_autofill_manager_delegate.h"
6 #include "android_webview/browser/aw_browser_context.h"
7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/aw_pref_store.h"
9 #include "base/logging.h"
10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/prefs/pref_service_builder.h"
13 #include "components/autofill/browser/autocheckout/whitelist_manager.h"
14 #include "components/autofill/browser/webdata/autofill_webdata_service.h"
15 #include "components/autofill/common/autofill_pref_names.h"
16 #include "components/user_prefs/user_prefs.h"
17 #include "content/public/browser/web_contents.h"
18
19 using content::WebContents;
20
21 DEFINE_WEB_CONTENTS_USER_DATA_KEY(android_webview::AwAutofillManagerDelegate);
22
23 namespace android_webview {
24
25 AwAutofillManagerDelegate::AwAutofillManagerDelegate(WebContents* contents) { }
26
27 AwAutofillManagerDelegate::~AwAutofillManagerDelegate() { }
28
29 void AwAutofillManagerDelegate::SetSaveFormData(bool enabled) {
30 save_form_data_ = enabled;
31 }
32
33 bool AwAutofillManagerDelegate::GetSaveFormData() {
34 return save_form_data_;
35 }
36
37 PrefService* AwAutofillManagerDelegate::GetPrefs() {
38 return components::UserPrefs::Get(
39 AwContentBrowserClient::GetAwBrowserContext());
40 }
41
42 autofill::PersonalDataManager*
43 AwAutofillManagerDelegate::GetPersonalDataManager() {
44 return NULL;
45 }
46
47 autofill::autocheckout::WhitelistManager*
48 AwAutofillManagerDelegate::GetAutocheckoutWhitelistManager() const {
49 return NULL;
50 }
51
52 void AwAutofillManagerDelegate::HideRequestAutocompleteDialog() {
53 }
54
55 void AwAutofillManagerDelegate::OnAutocheckoutError() {
56 }
57
58 void AwAutofillManagerDelegate::ShowAutofillSettings() {
59 }
60
61 void AwAutofillManagerDelegate::ConfirmSaveCreditCard(
62 const autofill::AutofillMetrics& metric_logger,
63 const autofill::CreditCard& credit_card,
64 const base::Closure& save_card_callback) {
65 }
66
67 void AwAutofillManagerDelegate::ShowAutocheckoutBubble(
68 const gfx::RectF& bounding_box,
69 bool is_google_user,
70 const base::Callback<void(bool)>& callback) {
71 }
72
73 void AwAutofillManagerDelegate::HideAutocheckoutBubble() {
74 }
75
76 void AwAutofillManagerDelegate::ShowRequestAutocompleteDialog(
77 const autofill::FormData& form,
78 const GURL& source_url,
79 autofill::DialogType dialog_type,
80 const base::Callback<void(const autofill::FormStructure*,
81 const std::string&)>& callback) {
82 }
83
84 void AwAutofillManagerDelegate::ShowAutofillPopup(
85 const gfx::RectF& element_bounds,
86 const std::vector<string16>& values,
87 const std::vector<string16>& labels,
88 const std::vector<string16>& icons,
89 const std::vector<int>& identifiers,
90 base::WeakPtr<autofill::AutofillPopupDelegate> delegate) {
91 }
92
93 void AwAutofillManagerDelegate::HideAutofillPopup() {
94 }
95
96 void AwAutofillManagerDelegate::UpdateProgressBar(double value) {
97 }
98
99 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698