Index: chrome/renderer/render_view.h |
=================================================================== |
--- chrome/renderer/render_view.h (revision 4621) |
+++ chrome/renderer/render_view.h (working copy) |
@@ -127,6 +127,9 @@ |
virtual bool RunBeforeUnloadConfirm(WebView* webview, |
const std::wstring& message); |
virtual void OnUnloadListenerChanged(WebView* webview, WebFrame* webframe); |
+ virtual void QueryFormFieldAutofill(const std::wstring& field_name, |
+ const std::wstring& text, |
+ int64 node_id); |
virtual void UpdateTargetURL(WebView* webview, |
const GURL& url); |
virtual void RunFileChooser(const std::wstring& default_filename, |
@@ -197,7 +200,8 @@ |
bool is_redirect); |
virtual WebView* CreateWebView(WebView* webview, bool user_gesture); |
- virtual WebWidget* CreatePopupWidget(WebView* webview); |
+ virtual WebWidget* CreatePopupWidget(WebView* webview, |
+ bool focus_on_show); |
virtual WebPluginDelegate* CreatePluginDelegate( |
WebView* webview, |
const GURL& url, |
@@ -457,6 +461,13 @@ |
// Notification about ui theme changes. |
void OnThemeChanged(); |
+ // Notification that we have received autofill suggestion. |
+ void OnReceivedAutofillSuggestions( |
+ int64 node_id, |
+ int request_id, |
+ const std::vector<std::wstring> suggestions, |
+ int default_suggestion_index); |
+ |
#ifdef CHROME_PERSONALIZATION |
void OnPersonalizationEvent(std::string event_name, std::string event_args); |
#endif |
@@ -673,6 +684,10 @@ |
// Set if we are waiting for an ack for ViewHostMsg_CreateWindow |
bool waiting_for_create_window_ack_; |
+ // The id of the last request sent for form field autofill. Used to ignore |
+ // out of date responses. |
+ int form_field_autofill_request_id_; |
+ |
// A cached WebHistoryItem used for back/forward navigations initiated by |
// WebCore (via the window.history.go API). We only have one such navigation |
// pending at a time. |