| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |