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

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

Issue 2745803003: autofill-try
Patch Set: autofill-try 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(
25 const FormData& form,
26 const FormFieldData& field,
27 const TimeTicks timestamp) {
28 provider_->OnTextFieldDidChange(this, form, field, timestamp);
29 }
30
31 void AutofillHandlerProxy::OnQueryFormFieldAutofillImpl(
32 int query_id,
33 const FormData& form,
34 const FormFieldData& field,
35 const gfx::RectF& bounding_box) {
36 provider_->OnQueryFormFieldAutofill(this, query_id, form, field,
37 bounding_box);
38 }
39
40 void AutofillHandlerProxy::OnFocusNoLongerOnForm() {
41 provider_->OnFocusNoLongerOnForm(this);
42 }
43
44 void AutofillHandlerProxy::OnDidFillAutofillFormData(
45 const FormData& form,
46 const base::TimeTicks timestamp) {
47 provider_->OnDidFillAutofillFormData(this, form, timestamp);
48 }
49
50 void AutofillHandlerProxy::OnDidPreviewAutofillFormData() {}
51
52 void AutofillHandlerProxy::OnFormsSeen(const std::vector<FormData>& forms,
53 const base::TimeTicks timestamp) {}
54
55 bool AutofillHandlerProxy::OnFormSubmitted(const FormData& form) {
56 return false;
57 }
58
59 void AutofillHandlerProxy::OnDidEndTextFieldEditing() {}
60
61 void AutofillHandlerProxy::OnHidePopup() {}
62
63 void AutofillHandlerProxy::OnSetDataList(
64 const std::vector<base::string16>& values,
65 const std::vector<base::string16>& labels) {}
66
67 void AutofillHandlerProxy::Reset() {
68 provider_->Reset(this);
69 }
70
71 } // 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