| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // Zoom ---------------------------------------------------------------- | 345 // Zoom ---------------------------------------------------------------- |
| 346 | 346 |
| 347 // Informs the browser that the zoom levels for this frame have changed from | 347 // Informs the browser that the zoom levels for this frame have changed from |
| 348 // the default values. | 348 // the default values. |
| 349 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } | 349 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } |
| 350 | 350 |
| 351 // Informs the browser that the zoom level has changed as a result of an | 351 // Informs the browser that the zoom level has changed as a result of an |
| 352 // action that wasn't initiated by the client. | 352 // action that wasn't initiated by the client. |
| 353 virtual void zoomLevelChanged() { } | 353 virtual void zoomLevelChanged() { } |
| 354 | 354 |
| 355 // Navigator Content Utils -------------------------------------------- |
| 356 |
| 355 // Registers a new URL handler for the given protocol. | 357 // Registers a new URL handler for the given protocol. |
| 356 virtual void registerProtocolHandler(const WebString& scheme, | 358 virtual void registerProtocolHandler(const WebString& scheme, |
| 357 const WebString& baseUrl, | 359 const WebURL& baseUrl, |
| 358 const WebString& url, | 360 const WebURL& url, |
| 359 const WebString& title) { } | 361 const WebString& title) |
| 362 { |
| 363 registerProtocolHandler(scheme, baseUrl.string(), url.string(), title); |
| 364 } |
| 360 | 365 |
| 361 // Unregisters a given URL handler for the given protocol. | 366 // Unregisters a given URL handler for the given protocol. |
| 367 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL
& baseUrl, const WebURL& url) |
| 368 { |
| 369 unregisterProtocolHandler(scheme, baseUrl.string(), url.string()); |
| 370 } |
| 371 |
| 372 // Check if a given URL handler is registered for the given protocol. |
| 373 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString&
scheme, const WebURL& baseUrl, const WebURL& url) |
| 374 { |
| 375 return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string(
)); |
| 376 } |
| 377 |
| 378 // These old version APIs need to be removed after synching with chrome side
. |
| 379 virtual void registerProtocolHandler(const WebString& scheme, |
| 380 const WebString& baseUrl, |
| 381 const WebString& url, |
| 382 const WebString& title) { } |
| 383 |
| 362 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr
ing& baseUrl, const WebString& url) { } | 384 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr
ing& baseUrl, const WebString& url) { } |
| 363 | 385 |
| 364 // Check if a given URL handler is registered for the given protocol. | |
| 365 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString&
scheme, const WebString& baseUrl, const WebString& url) | 386 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString&
scheme, const WebString& baseUrl, const WebString& url) |
| 366 { | 387 { |
| 367 return WebCustomHandlersNew; | 388 return WebCustomHandlersNew; |
| 368 } | 389 } |
| 369 | 390 |
| 370 // Visibility ----------------------------------------------------------- | 391 // Visibility ----------------------------------------------------------- |
| 371 | 392 |
| 372 // Returns the current visibility of the WebView. | 393 // Returns the current visibility of the WebView. |
| 373 virtual WebPageVisibilityState visibilityState() const | 394 virtual WebPageVisibilityState visibilityState() const |
| 374 { | 395 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 402 // Informs the browser that the draggable regions have been updated. | 423 // Informs the browser that the draggable regions have been updated. |
| 403 virtual void draggableRegionsChanged() { } | 424 virtual void draggableRegionsChanged() { } |
| 404 | 425 |
| 405 protected: | 426 protected: |
| 406 ~WebViewClient() { } | 427 ~WebViewClient() { } |
| 407 }; | 428 }; |
| 408 | 429 |
| 409 } // namespace blink | 430 } // namespace blink |
| 410 | 431 |
| 411 #endif | 432 #endif |
| OLD | NEW |