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

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

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: sync Created 3 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 2017 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 return provider_->OnWillSubmitForm(this, form, timestamp);
22 }
23
24 void AutofillHandlerProxy::OnTextFieldDidChangeImpl(const FormData& form,
25 const FormFieldData& field,
26 const TimeTicks timestamp) {
27 provider_->OnTextFieldDidChange(this, form, field, timestamp);
28 }
29
30 void AutofillHandlerProxy::OnQueryFormFieldAutofillImpl(
31 int query_id,
32 const FormData& form,
33 const FormFieldData& field,
34 const gfx::RectF& bounding_box) {
35 provider_->OnQueryFormFieldAutofill(this, query_id, form, field,
36 bounding_box);
37 }
38
39 void AutofillHandlerProxy::OnFocusNoLongerOnForm() {
40 provider_->OnFocusNoLongerOnForm(this);
41 }
42
43 void AutofillHandlerProxy::OnDidFillAutofillFormData(
44 const FormData& form,
45 const base::TimeTicks timestamp) {
46 provider_->OnDidFillAutofillFormData(this, form, timestamp);
47 }
48
49 void AutofillHandlerProxy::OnDidPreviewAutofillFormData() {}
50
51 void AutofillHandlerProxy::OnFormsSeen(const std::vector<FormData>& forms,
52 const base::TimeTicks timestamp) {}
53
54 bool AutofillHandlerProxy::OnFormSubmitted(const FormData& form) {
55 return false;
56 }
57
58 void AutofillHandlerProxy::OnDidEndTextFieldEditing() {}
59
60 void AutofillHandlerProxy::OnHidePopup() {}
61
62 void AutofillHandlerProxy::OnSetDataList(
63 const std::vector<base::string16>& values,
64 const std::vector<base::string16>& labels) {}
65
66 void AutofillHandlerProxy::Reset() {
67 provider_->Reset(this);
68 }
69
70 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_handler_proxy.h ('k') | components/autofill/core/browser/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698