| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "../platform/WebGraphicsContext3D.h" | 34 #include "../platform/WebGraphicsContext3D.h" |
| 35 #include "../platform/WebPageVisibilityState.h" | 35 #include "../platform/WebPageVisibilityState.h" |
| 36 #include "../platform/WebString.h" | 36 #include "../platform/WebString.h" |
| 37 #include "WebAXEnums.h" | 37 #include "WebAXEnums.h" |
| 38 #include "WebContentDetectionResult.h" | 38 #include "WebContentDetectionResult.h" |
| 39 #include "WebDragOperation.h" | 39 #include "WebDragOperation.h" |
| 40 #include "WebFileChooserCompletion.h" | 40 #include "WebFileChooserCompletion.h" |
| 41 #include "WebFileChooserParams.h" | 41 #include "WebFileChooserParams.h" |
| 42 #include "WebFrame.h" | 42 #include "WebFrame.h" |
| 43 #include "WebNavigatorContentUtilsClient.h" | |
| 44 #include "WebPopupType.h" | 43 #include "WebPopupType.h" |
| 45 #include "WebTextAffinity.h" | 44 #include "WebTextAffinity.h" |
| 46 #include "WebTextDirection.h" | 45 #include "WebTextDirection.h" |
| 47 #include "WebWidgetClient.h" | 46 #include "WebWidgetClient.h" |
| 48 | 47 |
| 49 namespace blink { | 48 namespace blink { |
| 50 | 49 |
| 51 class WebAXObject; | 50 class WebAXObject; |
| 52 class WebDateTimeChooserCompletion; | 51 class WebDateTimeChooserCompletion; |
| 53 class WebDragData; | 52 class WebDragData; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 // the default values. | 237 // the default values. |
| 239 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } | 238 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } |
| 240 | 239 |
| 241 // Informs the browser that the zoom level has changed as a result of an | 240 // Informs the browser that the zoom level has changed as a result of an |
| 242 // action that wasn't initiated by the client. | 241 // action that wasn't initiated by the client. |
| 243 virtual void zoomLevelChanged() { } | 242 virtual void zoomLevelChanged() { } |
| 244 | 243 |
| 245 // Informs the browser that the page scale has changed. | 244 // Informs the browser that the page scale has changed. |
| 246 virtual void pageScaleFactorChanged() { } | 245 virtual void pageScaleFactorChanged() { } |
| 247 | 246 |
| 248 // Navigator Content Utils -------------------------------------------- | |
| 249 | |
| 250 // Registers a new URL handler for the given protocol. | |
| 251 virtual void registerProtocolHandler(const WebString& scheme, | |
| 252 const WebURL& url, | |
| 253 const WebString& title) { } | |
| 254 | |
| 255 // Unregisters a given URL handler for the given protocol. | |
| 256 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL
& url) { } | |
| 257 | |
| 258 // Check if a given URL handler is registered for the given protocol. | |
| 259 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString&
scheme, const WebURL& url) | |
| 260 { | |
| 261 return WebCustomHandlersNew; | |
| 262 } | |
| 263 | |
| 264 | 247 |
| 265 // Visibility ----------------------------------------------------------- | 248 // Visibility ----------------------------------------------------------- |
| 266 | 249 |
| 267 // Returns the current visibility of the WebView. | 250 // Returns the current visibility of the WebView. |
| 268 virtual WebPageVisibilityState visibilityState() const | 251 virtual WebPageVisibilityState visibilityState() const |
| 269 { | 252 { |
| 270 return WebPageVisibilityStateVisible; | 253 return WebPageVisibilityStateVisible; |
| 271 } | 254 } |
| 272 | 255 |
| 273 | 256 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 290 // Informs the browser that the draggable regions have been updated. | 273 // Informs the browser that the draggable regions have been updated. |
| 291 virtual void draggableRegionsChanged() { } | 274 virtual void draggableRegionsChanged() { } |
| 292 | 275 |
| 293 protected: | 276 protected: |
| 294 ~WebViewClient() { } | 277 ~WebViewClient() { } |
| 295 }; | 278 }; |
| 296 | 279 |
| 297 } // namespace blink | 280 } // namespace blink |
| 298 | 281 |
| 299 #endif | 282 #endif |
| OLD | NEW |