| Index: android_webview/native/aw_autofill_manager_delegate.h
|
| diff --git a/android_webview/browser/aw_autofill_manager_delegate.h b/android_webview/native/aw_autofill_manager_delegate.h
|
| similarity index 82%
|
| rename from android_webview/browser/aw_autofill_manager_delegate.h
|
| rename to android_webview/native/aw_autofill_manager_delegate.h
|
| index e9ec7c530ee20fe8f6dfc9afef99898358921c0a..e3603e345c443a5b1ff5ff4e73af8059d863bc97 100644
|
| --- a/android_webview/browser/aw_autofill_manager_delegate.h
|
| +++ b/android_webview/native/aw_autofill_manager_delegate.h
|
| @@ -5,6 +5,10 @@
|
| #ifndef ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
|
| #define ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
|
|
|
| +#include <jni.h>
|
| +#include <vector>
|
| +
|
| +#include "base/android/jni_helper.h"
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/prefs/pref_registry_simple.h"
|
| @@ -29,6 +33,10 @@ namespace content {
|
| class WebContents;
|
| }
|
|
|
| +namespace gfx {
|
| +class RectF;
|
| +}
|
| +
|
| class PersonalDataManager;
|
| class PrefService;
|
|
|
| @@ -91,18 +99,33 @@ class AwAutofillManagerDelegate
|
| autofill::AutocheckoutStepType step_type,
|
| autofill::AutocheckoutStepStatus step_status) OVERRIDE;
|
|
|
| + void SuggestionSelected(JNIEnv* env,
|
| + jobject obj,
|
| + jint position);
|
| private:
|
| - AwAutofillManagerDelegate(content::WebContents* contents);
|
| + AwAutofillManagerDelegate(content::WebContents* web_contents);
|
| friend class content::WebContentsUserData<AwAutofillManagerDelegate>;
|
|
|
| + void ShowAutofillPopupImpl(const gfx::RectF& element_bounds,
|
| + const std::vector<string16>& values,
|
| + const std::vector<string16>& labels,
|
| + const std::vector<int>& identifiers);
|
| +
|
| // The web_contents associated with this delegate.
|
| content::WebContents* web_contents_;
|
| -
|
| bool save_form_data_;
|
| + JavaObjectWeakGlobalRef java_ref_;
|
| +
|
| + // The current Autofill query values.
|
| + std::vector<string16> values_;
|
| + std::vector<int> identifiers_;
|
| + base::WeakPtr<autofill::AutofillPopupDelegate> delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AwAutofillManagerDelegate);
|
| };
|
|
|
| +bool RegisterAwAutofillManagerDelegate(JNIEnv* env);
|
| +
|
| } // namespace android_webview
|
|
|
| #endif // ANDROID_WEBVIEW_BROWSER_AW_AUTOFILL_MANAGER_DELEGATE_H_
|
|
|