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

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

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: Refactoring AutofillManager Created 3 years, 7 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 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/autofill_handler_proxy.h"
6
7 #include "components/autofill/core/browser/autofill_provider.h"
8
9 namespace autofill {
10
11 using base::TimeTicks;
12
13 AutofillHandlerProxy::AutofillHandlerProxy(AutofillDriver* driver,
14 AutofillProvider* provider)
15 : AutofillHandler(driver), provider_(provider), weak_ptr_factory_(this) {}
16
17 AutofillHandlerProxy::~AutofillHandlerProxy() {}
18
19 bool AutofillHandlerProxy::OnWillSubmitFormImpl(const FormData& form,
20 const TimeTicks& timestamp) {
21 provider_->OnWillSubmitForm(this, form, timestamp);
Roger McFarlane (Chromium) 2017/05/24 04:18:22 should the provider return a bool?
michaelbai 2017/05/24 05:14:09 this return value seemed no meaning for AutofillPr
Roger McFarlane (Chromium) 2017/05/24 20:03:31 It's supposed to mean "I took a look at the submit
michaelbai 2017/05/26 23:12:08 I tried to change it to void, but it seemed that
22 return true;
23 }
24
25 void AutofillHandlerProxy::OnTextFieldDidChangeImpl(
26 const FormData& form,
27 const FormFieldData& field,
28 const TimeTicks& timestamp) {
29 provider_->OnTextFieldDidChange(this, form, field, timestamp);
30 }
31
32 void AutofillHandlerProxy::OnQueryFormFieldAutofillImpl(
33 int query_id,
34 const FormData& form,
35 const FormFieldData& field,
36 const gfx::RectF& bounding_box) {
37 provider_->OnQueryFormFieldAutofill(this, query_id, form, field,
38 bounding_box);
39 }
40
41 void AutofillHandlerProxy::OnFocusNoLongerOnForm() {
42 provider_->OnFocusNoLongerOnForm(this);
43 }
44
45 void AutofillHandlerProxy::OnDidFillAutofillFormData(
46 const FormData& form,
47 const base::TimeTicks& timestamp) {
48 provider_->OnDidFillAutofillFormData(this, form, timestamp);
49 }
50
51 void AutofillHandlerProxy::OnDidPreviewAutofillFormData() {}
52
53 void AutofillHandlerProxy::OnFormsSeen(const std::vector<FormData>& forms,
54 const base::TimeTicks& timestamp) {}
55
56 bool AutofillHandlerProxy::OnFormSubmitted(const FormData& form) {
57 return false;
58 }
59
60 void AutofillHandlerProxy::OnDidEndTextFieldEditing() {}
61
62 void AutofillHandlerProxy::OnHidePopup() {}
63
64 void AutofillHandlerProxy::OnSetDataList(
65 const std::vector<base::string16>& values,
66 const std::vector<base::string16>& labels) {}
67
68 void AutofillHandlerProxy::Reset() {
69 provider_->Reset(this);
70 }
71
72 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698