| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebViewClient_h | 31 #ifndef WebViewClient_h |
| 32 #define WebViewClient_h | 32 #define WebViewClient_h |
| 33 | 33 |
| 34 #include "../platform/WebDragOperation.h" | |
| 35 #include "../platform/WebPageVisibilityState.h" | 34 #include "../platform/WebPageVisibilityState.h" |
| 36 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
| 37 #include "WebAXEnums.h" | 36 #include "WebAXEnums.h" |
| 38 #include "WebFrame.h" | 37 #include "WebFrame.h" |
| 39 #include "WebPopupType.h" | 38 #include "WebPopupType.h" |
| 40 #include "WebTextDirection.h" | 39 #include "WebTextDirection.h" |
| 41 #include "WebWidgetClient.h" | 40 #include "WebWidgetClient.h" |
| 42 | 41 |
| 43 namespace blink { | 42 namespace blink { |
| 44 | 43 |
| 45 class WebAXObject; | 44 class WebAXObject; |
| 46 class WebDateTimeChooserCompletion; | 45 class WebDateTimeChooserCompletion; |
| 47 class WebDragData; | |
| 48 class WebFileChooserCompletion; | 46 class WebFileChooserCompletion; |
| 49 class WebHitTestResult; | 47 class WebHitTestResult; |
| 50 class WebImage; | |
| 51 class WebNode; | 48 class WebNode; |
| 52 class WebSpeechRecognizer; | 49 class WebSpeechRecognizer; |
| 53 class WebStorageNamespace; | 50 class WebStorageNamespace; |
| 54 class WebURL; | 51 class WebURL; |
| 55 class WebURLRequest; | 52 class WebURLRequest; |
| 56 class WebView; | 53 class WebView; |
| 57 class WebWidget; | 54 class WebWidget; |
| 58 struct WebDateTimeChooserParams; | 55 struct WebDateTimeChooserParams; |
| 59 struct WebPoint; | 56 struct WebPoint; |
| 60 struct WebPopupMenuInfo; | 57 struct WebPopupMenuInfo; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 150 |
| 154 // Called when script modifies window.status | 151 // Called when script modifies window.status |
| 155 virtual void setStatusText(const WebString&) {} | 152 virtual void setStatusText(const WebString&) {} |
| 156 | 153 |
| 157 // Called when hovering over an anchor with the given URL. | 154 // Called when hovering over an anchor with the given URL. |
| 158 virtual void setMouseOverURL(const WebURL&) {} | 155 virtual void setMouseOverURL(const WebURL&) {} |
| 159 | 156 |
| 160 // Called when keyboard focus switches to an anchor with the given URL. | 157 // Called when keyboard focus switches to an anchor with the given URL. |
| 161 virtual void setKeyboardFocusURL(const WebURL&) {} | 158 virtual void setKeyboardFocusURL(const WebURL&) {} |
| 162 | 159 |
| 163 // Called when a drag-n-drop operation should begin. | |
| 164 virtual void startDragging(WebLocalFrame*, | |
| 165 const WebDragData&, | |
| 166 WebDragOperationsMask, | |
| 167 const WebImage&, | |
| 168 const WebPoint& dragImageOffset) {} | |
| 169 | |
| 170 // Called to determine if drag-n-drop operations may initiate a page | 160 // Called to determine if drag-n-drop operations may initiate a page |
| 171 // navigation. | 161 // navigation. |
| 172 virtual bool acceptsLoadDrops() { return true; } | 162 virtual bool acceptsLoadDrops() { return true; } |
| 173 | 163 |
| 174 // Take focus away from the WebView by focusing an adjacent UI element | 164 // Take focus away from the WebView by focusing an adjacent UI element |
| 175 // in the containing window. | 165 // in the containing window. |
| 176 virtual void focusNext() {} | 166 virtual void focusNext() {} |
| 177 virtual void focusPrevious() {} | 167 virtual void focusPrevious() {} |
| 178 | 168 |
| 179 // Called when a new node gets focused. |fromNode| is the previously focused | 169 // Called when a new node gets focused. |fromNode| is the previously focused |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 void show(WebNavigationPolicy) override {} | 285 void show(WebNavigationPolicy) override {} |
| 296 virtual WebWidgetClient* widgetClient() { return this; } | 286 virtual WebWidgetClient* widgetClient() { return this; } |
| 297 | 287 |
| 298 protected: | 288 protected: |
| 299 ~WebViewClient() {} | 289 ~WebViewClient() {} |
| 300 }; | 290 }; |
| 301 | 291 |
| 302 } // namespace blink | 292 } // namespace blink |
| 303 | 293 |
| 304 #endif | 294 #endif |
| OLD | NEW |