Chromium Code Reviews| Index: public/web/WebViewClient.h |
| diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h |
| index 4a8cd89a0036bcccba5ae03f9f4511416d60f70d..5a2e25102774f0841f8b7de4a8a028030e43aa48 100644 |
| --- a/public/web/WebViewClient.h |
| +++ b/public/web/WebViewClient.h |
| @@ -352,16 +352,37 @@ public: |
| // action that wasn't initiated by the client. |
| virtual void zoomLevelChanged() { } |
| + // Navigaor Content Utils ---------------------------------------------- |
|
jochen (gone - plz use gerrit)
2014/01/21 09:29:19
Navigator
|
| + |
| // Registers a new URL handler for the given protocol. |
| virtual void registerProtocolHandler(const WebString& scheme, |
| - const WebString& baseUrl, |
| - const WebString& url, |
| - const WebString& title) { } |
| + const WebURL& baseUrl, |
| + const WebURL& url, |
| + const WebString& title) |
| + { |
| + registerProtocolHandler(scheme, baseUrl.string(), url.string(), title); |
|
gyuyoung-inactive
2014/01/21 09:18:13
Jochen, I change to let new version call old versi
|
| + } |
| // Unregisters a given URL handler for the given protocol. |
| - virtual void unregisterProtocolHandler(const WebString& scheme, const WebString& baseUrl, const WebString& url) { } |
| + virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) |
| + { |
| + unregisterProtocolHandler(scheme, baseUrl.string(), url.string()); |
| + } |
| // Check if a given URL handler is registered for the given protocol. |
| + virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) |
| + { |
| + return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string()); |
| + } |
| + |
| + // These old version APIs need to be removed after synching with chrome side. |
| + virtual void registerProtocolHandler(const WebString& scheme, |
| + const WebString& baseUrl, |
| + const WebString& url, |
| + const WebString& title) { } |
| + |
| + virtual void unregisterProtocolHandler(const WebString& scheme, const WebString& baseUrl, const WebString& url) { } |
| + |
| virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url) |
| { |
| return WebCustomHandlersNew; |