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

Unified Diff: components/autofill/core/browser/autofill_provider.h

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: fix coordinates 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/autofill_provider.h
diff --git a/components/autofill/core/browser/autofill_provider.h b/components/autofill/core/browser/autofill_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..5dfab11f7f66719d76c79807af242f2d1f07e9d4
--- /dev/null
+++ b/components/autofill/core/browser/autofill_provider.h
@@ -0,0 +1,55 @@
+// Copyright 2017 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.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_
+
+#include "base/time/time.h"
+#include "components/autofill/core/common/form_data.h"
+
+namespace gfx {
+class RectF;
+}
+
+namespace autofill {
+
+class AutofillManager;
+
+// This class is native peer of AutofillProvider, see AutofillProvider.java
+// for details.
+class AutofillProvider {
+ public:
+ AutofillProvider();
+ virtual ~AutofillProvider();
+
+ virtual void OnQueryFormFieldAutofill(AutofillManager* manager,
+ int32_t id,
+ const FormData& form,
+ const FormFieldData& field,
+ const gfx::RectF& bounding_box) = 0;
+
+ virtual void OnTextFieldDidChange(AutofillManager* manager,
+ const FormData& form,
+ const FormFieldData& field,
+ const base::TimeTicks& timestamp) = 0;
+
+ virtual void OnWillSubmitForm(AutofillManager* manager,
+ const FormData& form,
+ const base::TimeTicks& timestamp) = 0;
+
+ virtual void OnFocusNoLongerOnForm(AutofillManager* manager) = 0;
+
+ virtual void OnDidFillAutofillFormData(AutofillManager* manager,
+ const FormData& form,
+ base::TimeTicks timestamp) = 0;
+
+ virtual void Reset(AutofillManager* manager) = 0;
+
+ void SendFormDataToRenderer(AutofillManager* manager,
+ int requestId,
+ const FormData& formData);
+};
+}
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698