Chromium Code Reviews| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 virtual void zoomLevelChanged() { } | 322 virtual void zoomLevelChanged() { } |
| 323 | 323 |
| 324 // Navigator Content Utils -------------------------------------------- | 324 // Navigator Content Utils -------------------------------------------- |
| 325 | 325 |
| 326 // Registers a new URL handler for the given protocol. | 326 // Registers a new URL handler for the given protocol. |
| 327 virtual void registerProtocolHandler(const WebString& scheme, | 327 virtual void registerProtocolHandler(const WebString& scheme, |
| 328 const WebURL& baseUrl, | 328 const WebURL& baseUrl, |
| 329 const WebURL& url, | 329 const WebURL& url, |
| 330 const WebString& title) | 330 const WebString& title) |
| 331 { | 331 { |
| 332 registerProtocolHandler(scheme, baseUrl.string(), url.string(), title); | 332 registerProtocolHandler(scheme, baseUrl, url, title); |
|
jochen (gone - plz use gerrit)
2014/04/10 07:29:06
you can drop this call entirely, no?
gyuyoung-inactive
2014/04/10 07:46:52
As far as I know, the content module only override
| |
| 333 } | 333 } |
| 334 | 334 |
| 335 // Unregisters a given URL handler for the given protocol. | 335 // Unregisters a given URL handler for the given protocol. |
| 336 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) | 336 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) |
| 337 { | 337 { |
| 338 unregisterProtocolHandler(scheme, baseUrl.string(), url.string()); | 338 unregisterProtocolHandler(scheme, baseUrl, url); |
| 339 } | 339 } |
| 340 | 340 |
| 341 // Check if a given URL handler is registered for the given protocol. | 341 // Check if a given URL handler is registered for the given protocol. |
| 342 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) | 342 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) |
| 343 { | 343 { |
| 344 return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string( )); | 344 return isProtocolHandlerRegistered(scheme, baseUrl, url; |
| 345 } | |
| 346 | |
| 347 // These old version APIs need to be removed after synching with chrome side . | |
| 348 virtual void registerProtocolHandler(const WebString& scheme, | |
| 349 const WebString& baseUrl, | |
| 350 const WebString& url, | |
| 351 const WebString& title) { } | |
| 352 | |
| 353 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr ing& baseUrl, const WebString& url) { } | |
| 354 | |
| 355 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url) | |
| 356 { | |
| 357 return WebCustomHandlersNew; | |
| 358 } | 345 } |
| 359 | 346 |
| 360 // Visibility ----------------------------------------------------------- | 347 // Visibility ----------------------------------------------------------- |
| 361 | 348 |
| 362 // Returns the current visibility of the WebView. | 349 // Returns the current visibility of the WebView. |
| 363 virtual WebPageVisibilityState visibilityState() const | 350 virtual WebPageVisibilityState visibilityState() const |
| 364 { | 351 { |
| 365 return WebPageVisibilityStateVisible; | 352 return WebPageVisibilityStateVisible; |
| 366 } | 353 } |
| 367 | 354 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 395 // Informs the browser that the draggable regions have been updated. | 382 // Informs the browser that the draggable regions have been updated. |
| 396 virtual void draggableRegionsChanged() { } | 383 virtual void draggableRegionsChanged() { } |
| 397 | 384 |
| 398 protected: | 385 protected: |
| 399 ~WebViewClient() { } | 386 ~WebViewClient() { } |
| 400 }; | 387 }; |
| 401 | 388 |
| 402 } // namespace blink | 389 } // namespace blink |
| 403 | 390 |
| 404 #endif | 391 #endif |
| OLD | NEW |