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

Side by Side Diff: components/autofill/content/browser/form_field_data_android.h

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 years, 8 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 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_
7
8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h"
10 #include "components/autofill/core/common/form_field_data.h"
11
12 namespace autofill {
13
14 class FormFieldDataAndroid {
15 public:
16 FormFieldDataAndroid(const FormFieldData& field);
17 FormFieldDataAndroid(FormFieldData* field);
18 virtual ~FormFieldDataAndroid() {}
19
20 base::android::ScopedJavaLocalRef<jobject> GetJavaPeer();
21 void PullAutofillValue();
22 void OnTextFieldDidChange(const base::string16& value);
23 const FormFieldData& GetField() { return field_; }
24 private:
25 FormFieldData field_;
26 FormFieldData* field_ptr_;
27 JavaObjectWeakGlobalRef java_ref_;
28
29 DISALLOW_COPY_AND_ASSIGN(FormFieldDataAndroid);
30 };
31
32 } // namespace autofill
33
34 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_FORM_FIELD_DATA_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698