| 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 15 matching lines...) Expand all Loading... |
| 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/WebGraphicsContext3D.h" | 34 #include "../platform/WebGraphicsContext3D.h" |
| 35 #include "../platform/WebString.h" | 35 #include "../platform/WebString.h" |
| 36 #include "WebAXEnums.h" | |
| 37 #include "WebContentDetectionResult.h" | 36 #include "WebContentDetectionResult.h" |
| 38 #include "WebDragOperation.h" | 37 #include "WebDragOperation.h" |
| 39 #include "WebFrame.h" | 38 #include "WebFrame.h" |
| 40 #include "WebNavigatorContentUtilsClient.h" | 39 #include "WebNavigatorContentUtilsClient.h" |
| 41 #include "WebPageVisibilityState.h" | 40 #include "WebPageVisibilityState.h" |
| 42 #include "WebTextAffinity.h" | 41 #include "WebTextAffinity.h" |
| 43 #include "WebTextDirection.h" | 42 #include "WebTextDirection.h" |
| 44 #include "WebWidgetClient.h" | 43 #include "WebWidgetClient.h" |
| 45 | 44 |
| 46 namespace blink { | 45 namespace blink { |
| 47 | 46 |
| 48 class WebAXObject; | |
| 49 class WebCompositorOutputSurface; | 47 class WebCompositorOutputSurface; |
| 50 class WebElement; | 48 class WebElement; |
| 51 class WebGestureEvent; | 49 class WebGestureEvent; |
| 52 class WebHitTestResult; | 50 class WebHitTestResult; |
| 53 class WebImage; | 51 class WebImage; |
| 54 class WebKeyboardEvent; | 52 class WebKeyboardEvent; |
| 55 class WebNode; | 53 class WebNode; |
| 56 class WebRange; | 54 class WebRange; |
| 57 class WebURL; | 55 class WebURL; |
| 58 class WebURLRequest; | 56 class WebURLRequest; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // After calling WebWidget::layout(), expect to get this notification | 106 // After calling WebWidget::layout(), expect to get this notification |
| 109 // unless the view did not need a layout. | 107 // unless the view did not need a layout. |
| 110 virtual void didUpdateLayout() { } | 108 virtual void didUpdateLayout() { } |
| 111 | 109 |
| 112 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 110 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
| 113 virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<W
ebRect>& targetRects) { return false; } | 111 virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<W
ebRect>& targetRects) { return false; } |
| 114 | 112 |
| 115 // Returns comma separated list of accept languages. | 113 // Returns comma separated list of accept languages. |
| 116 virtual WebString acceptLanguages() { return WebString(); } | 114 virtual WebString acceptLanguages() { return WebString(); } |
| 117 | 115 |
| 118 | |
| 119 // Accessibility ------------------------------------------------------- | |
| 120 | |
| 121 // Notifies embedder about an accessibility event. | |
| 122 virtual void postAccessibilityEvent(const WebAXObject&, WebAXEvent) { } | |
| 123 | |
| 124 | |
| 125 // Developer tools ----------------------------------------------------- | 116 // Developer tools ----------------------------------------------------- |
| 126 | 117 |
| 127 // Called to notify the client that the inspector's settings were | 118 // Called to notify the client that the inspector's settings were |
| 128 // changed and should be saved. See WebView::inspectorSettings. | 119 // changed and should be saved. See WebView::inspectorSettings. |
| 129 virtual void didUpdateInspectorSettings() { } | 120 virtual void didUpdateInspectorSettings() { } |
| 130 | 121 |
| 131 virtual void didUpdateInspectorSetting(const WebString& key, const WebString
& value) { } | 122 virtual void didUpdateInspectorSetting(const WebString& key, const WebString
& value) { } |
| 132 | 123 |
| 133 | 124 |
| 134 // Zoom ---------------------------------------------------------------- | 125 // Zoom ---------------------------------------------------------------- |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Cancels any previously scheduled content intents that have not yet launch
ed. | 172 // Cancels any previously scheduled content intents that have not yet launch
ed. |
| 182 virtual void cancelScheduledContentIntents() { } | 173 virtual void cancelScheduledContentIntents() { } |
| 183 | 174 |
| 184 protected: | 175 protected: |
| 185 ~WebViewClient() { } | 176 ~WebViewClient() { } |
| 186 }; | 177 }; |
| 187 | 178 |
| 188 } // namespace blink | 179 } // namespace blink |
| 189 | 180 |
| 190 #endif | 181 #endif |
| OLD | NEW |