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

Unified Diff: android_webview/native/aw_contents.h

Issue 16212007: Implement the autofill UI for chromium powered android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue15097004
Patch Set: move ui files Created 7 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: android_webview/native/aw_contents.h
diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h
index 0465ae2f80e6b6aed04c8bc484544aa59e581791..54fff34a1ec30a35e46777f13465cdbf60fcb061 100644
--- a/android_webview/native/aw_contents.h
+++ b/android_webview/native/aw_contents.h
@@ -9,6 +9,7 @@
#include <list>
#include <string>
#include <utility>
+#include <vector>
#include "android_webview/browser/browser_view_renderer.h"
#include "android_webview/browser/find_helper.h"
@@ -26,6 +27,10 @@ namespace content {
class WebContents;
}
+namespace gfx {
+class RectF;
+}
+
namespace android_webview {
class AwContentsContainer;
@@ -118,6 +123,10 @@ class AwContents : public FindHelper::Listener,
jboolean value,
jstring origin);
+ void SuggestionSelected(JNIEnv* env,
+ jobject obj,
+ int position);
+
// Find-in-page API and related methods.
void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string);
void FindNext(JNIEnv* env, jobject obj, jboolean forward);
@@ -147,7 +156,11 @@ class AwContents : public FindHelper::Listener,
jint ReleasePopupWebContents(JNIEnv* env, jobject obj);
void SetSaveFormData(bool enabled);
-
+ void ShowAutofillPopup(const gfx::RectF& element_bounds,
+ const std::vector<string16>& values,
+ const std::vector<string16>& labels,
+ const std::vector<int>& identifiers);
+ void HideAutofillPopup();
private:
void SetWebContents(content::WebContents* web_contents);
void InitAutofillIfNecessary(bool enabled);

Powered by Google App Engine
This is Rietveld 408576698