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

Side by Side Diff: webkit/api/public/WebView.h

Issue 279001: Move autofill related WebView{Delegate} methods into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebView_h 32 #define WebView_h
33 33
34 #include "WebDragOperation.h" 34 #include "WebDragOperation.h"
35 #include "WebWidget.h" 35 #include "WebWidget.h"
36 36
37 namespace WebKit { 37 namespace WebKit {
38 class WebAccessibilityObject; 38 class WebAccessibilityObject;
39 class WebDragData; 39 class WebDragData;
40 class WebFrame; 40 class WebFrame;
41 class WebFrameClient; 41 class WebFrameClient;
42 class WebNode;
42 class WebSettings; 43 class WebSettings;
43 class WebString; 44 class WebString;
44 class WebViewClient; 45 class WebViewClient;
45 struct WebMediaPlayerAction; 46 struct WebMediaPlayerAction;
46 struct WebPoint; 47 struct WebPoint;
48 template <typename T> class WebVector;
47 49
48 class WebView : public WebWidget { 50 class WebView : public WebWidget {
49 public: 51 public:
50 // Initialization ------------------------------------------------------ 52 // Initialization ------------------------------------------------------
51 53
52 // FIXME enable this once WebViewDelegate has been eliminated. 54 // FIXME enable this once WebViewDelegate has been eliminated.
53 //WEBKIT_API WebView* create(WebViewClient*); 55 //WEBKIT_API WebView* create(WebViewClient*);
54 56
55 // After creating a WebView, you should immediately call this method. 57 // After creating a WebView, you should immediately call this method.
56 // You can optionally modify the settings before calling this method. 58 // You can optionally modify the settings before calling this method.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Settings used by the inspector. 202 // Settings used by the inspector.
201 virtual WebString inspectorSettings() const = 0; 203 virtual WebString inspectorSettings() const = 0;
202 virtual void setInspectorSettings(const WebString&) = 0; 204 virtual void setInspectorSettings(const WebString&) = 0;
203 205
204 206
205 // Accessibility ------------------------------------------------------- 207 // Accessibility -------------------------------------------------------
206 208
207 // Returns the accessibility object for this view. 209 // Returns the accessibility object for this view.
208 virtual WebAccessibilityObject accessibilityObject() = 0; 210 virtual WebAccessibilityObject accessibilityObject() = 0;
209 211
212
213 // Autofill ------------------------------------------------------------
214
215 // Notifies the WebView that autofill suggestions are available for a node.
216 virtual void applyAutofillSuggestions(
217 const WebNode&,
218 const WebVector<WebString>& suggestions,
219 int defaultSuggestionIndex) = 0;
220
221 // Hides the autofill popup if any are showing.
222 virtual void hideAutofillPopup() = 0;
223
224
210 // FIXME what about: 225 // FIXME what about:
211 // GetDelegate 226 // GetDelegate
212 // AutofillSuggestionsForNode 227 // AutofillSuggestionsForNode
213 // HideAutofillPopup 228 // HideAutofillPopup
214 229
215 protected: 230 protected:
216 ~WebView() {} 231 ~WebView() {}
217 }; 232 };
218 233
219 } // namespace WebKit 234 } // namespace WebKit
220 235
221 #endif 236 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698