diff options
Diffstat (limited to 'webkit/api')
-rw-r--r-- | webkit/api/public/WebView.h | 15 | ||||
-rw-r--r-- | webkit/api/public/WebViewClient.h | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/webkit/api/public/WebView.h b/webkit/api/public/WebView.h index e7994a2..a886424 100644 --- a/webkit/api/public/WebView.h +++ b/webkit/api/public/WebView.h @@ -39,11 +39,13 @@ namespace WebKit { class WebDragData; class WebFrame; class WebFrameClient; + class WebNode; class WebSettings; class WebString; class WebViewClient; struct WebMediaPlayerAction; struct WebPoint; + template <typename T> class WebVector; class WebView : public WebWidget { public: @@ -207,6 +209,19 @@ namespace WebKit { // Returns the accessibility object for this view. virtual WebAccessibilityObject accessibilityObject() = 0; + + // Autofill ------------------------------------------------------------ + + // Notifies the WebView that autofill suggestions are available for a node. + virtual void applyAutofillSuggestions( + const WebNode&, + const WebVector<WebString>& suggestions, + int defaultSuggestionIndex) = 0; + + // Hides the autofill popup if any are showing. + virtual void hideAutofillPopup() = 0; + + // FIXME what about: // GetDelegate // AutofillSuggestionsForNode diff --git a/webkit/api/public/WebViewClient.h b/webkit/api/public/WebViewClient.h index e613cac..725d785 100644 --- a/webkit/api/public/WebViewClient.h +++ b/webkit/api/public/WebViewClient.h @@ -252,6 +252,21 @@ namespace WebKit { virtual void didUpdateInspectorSettings() = 0; + // Autofill ------------------------------------------------------------ + + // Queries the browser for suggestions to be shown for the form text + // field named |name|. |value| is the text entered by the user so + // far and the WebNode corresponds to the input field. + virtual void queryAutofillSuggestions(const WebNode&, + const WebString& name, + const WebString& value) = 0; + + // Instructs the browser to remove the autofill entry specified from + // its DB. + virtual void removeAutofillSuggestions(const WebString& name, + const WebString& value) = 0; + + // FIXME need to something for: // OnPasswordFormsSeen // OnAutofillFormSubmitted |