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

Unified Diff: components/autofill/content/browser/form_field_data_android.h

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 years, 9 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/content/browser/form_field_data_android.h
diff --git a/components/autofill/content/browser/form_field_data_android.h b/components/autofill/content/browser/form_field_data_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c25b3b5c1914a90d61040ea7280acff60ed52f4
--- /dev/null
+++ b/components/autofill/content/browser/form_field_data_android.h
@@ -0,0 +1,34 @@
+// 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_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_
+#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_
+
+#include "base/android/jni_weak_ref.h"
+#include "base/android/scoped_java_ref.h"
+#include "components/autofill/core/common/form_field_data.h"
+
+namespace autofill {
+
+class FormFieldDataAndroid {
+ public:
+ FormFieldDataAndroid(const FormFieldData& field);
+ FormFieldDataAndroid(FormFieldData* field);
+ virtual ~FormFieldDataAndroid() {}
+
+ base::android::ScopedJavaLocalRef<jobject> GetJavaPeer();
+ void PullAutofillValue();
+ void OnTextFieldDidChange(const base::string16& value);
+ const FormFieldData& GetField() { return field_; }
+ private:
+ FormFieldData field_;
+ FormFieldData* field_ptr_;
+ JavaObjectWeakGlobalRef java_ref_;
+
+ DISALLOW_COPY_AND_ASSIGN(FormFieldDataAndroid);
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698