| 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 SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 31 #ifndef SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ |
| 32 #define SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 32 #define SKY_ENGINE_PUBLIC_WEB_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 "sky/engine/public/web/WebContentDetectionResult.h" | |
| 37 #include "sky/engine/public/web/WebFrame.h" | 36 #include "sky/engine/public/web/WebFrame.h" |
| 38 #include "sky/engine/public/web/WebNavigatorContentUtilsClient.h" | 37 #include "sky/engine/public/web/WebNavigatorContentUtilsClient.h" |
| 39 #include "sky/engine/public/web/WebPageVisibilityState.h" | 38 #include "sky/engine/public/web/WebPageVisibilityState.h" |
| 40 #include "sky/engine/public/web/WebTextAffinity.h" | 39 #include "sky/engine/public/web/WebTextAffinity.h" |
| 41 #include "sky/engine/public/web/WebTextDirection.h" | 40 #include "sky/engine/public/web/WebTextDirection.h" |
| 42 #include "sky/engine/public/web/WebWidgetClient.h" | 41 #include "sky/engine/public/web/WebWidgetClient.h" |
| 43 | 42 |
| 44 namespace blink { | 43 namespace blink { |
| 45 | 44 |
| 46 class ServiceProvider; | 45 class ServiceProvider; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 141 |
| 143 | 142 |
| 144 // Visibility ----------------------------------------------------------- | 143 // Visibility ----------------------------------------------------------- |
| 145 | 144 |
| 146 // Returns the current visibility of the WebView. | 145 // Returns the current visibility of the WebView. |
| 147 virtual WebPageVisibilityState visibilityState() const | 146 virtual WebPageVisibilityState visibilityState() const |
| 148 { | 147 { |
| 149 return WebPageVisibilityStateVisible; | 148 return WebPageVisibilityStateVisible; |
| 150 } | 149 } |
| 151 | 150 |
| 152 // Content detection ---------------------------------------------------- | |
| 153 | |
| 154 // Retrieves detectable content (e.g., email addresses, phone numbers) | |
| 155 // around a hit test result. The embedder should use platform-specific | |
| 156 // content detectors to analyze the region around the hit test result. | |
| 157 virtual WebContentDetectionResult detectContentAround(const WebHitTestResult
&) { return WebContentDetectionResult(); } | |
| 158 | |
| 159 // Schedules a new content intent with the provided url. | |
| 160 virtual void scheduleContentIntent(const WebURL&) { } | |
| 161 | |
| 162 // Cancels any previously scheduled content intents that have not yet launch
ed. | |
| 163 virtual void cancelScheduledContentIntents() { } | |
| 164 | |
| 165 protected: | 151 protected: |
| 166 ~WebViewClient() { } | 152 ~WebViewClient() { } |
| 167 }; | 153 }; |
| 168 | 154 |
| 169 } // namespace blink | 155 } // namespace blink |
| 170 | 156 |
| 171 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 157 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ |
| OLD | NEW |