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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 | 283 |
| 284 | 284 |
| 285 // Navigator Content Utils -------------------------------------------- | 285 // Navigator Content Utils -------------------------------------------- |
| 286 | 286 |
| 287 // Registers a new URL handler for the given protocol. | 287 // Registers a new URL handler for the given protocol. |
| 288 virtual void registerProtocolHandler(const WebString& scheme, | 288 virtual void registerProtocolHandler(const WebString& scheme, |
| 289 const WebURL& baseUrl, | 289 const WebURL& baseUrl, |
| 290 const WebURL& url, | 290 const WebURL& url, |
| 291 const WebString& title) | 291 const WebString& title) |
| 292 { | 292 { |
| 293 registerProtocolHandler(scheme, baseUrl.string(), url.string(), title); | 293 registerProtocolHandler(scheme, baseUrl, url, title); |
|
jochen (gone - plz use gerrit)
2014/04/14 07:01:14
sorry, if I was unclear. I think we can delete thi
gyuyoung-inactive
2014/04/14 07:34:18
No, my bad. Sorry about unneeded function call.
| |
| 294 } | 294 } |
| 295 | 295 |
| 296 // Unregisters a given URL handler for the given protocol. | 296 // Unregisters a given URL handler for the given protocol. |
| 297 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) | 297 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & baseUrl, const WebURL& url) |
| 298 { | 298 { |
| 299 unregisterProtocolHandler(scheme, baseUrl.string(), url.string()); | 299 unregisterProtocolHandler(scheme, baseUrl, url); |
|
jochen (gone - plz use gerrit)
2014/04/14 07:01:14
and this line
| |
| 300 } | 300 } |
| 301 | 301 |
| 302 // Check if a given URL handler is registered for the given protocol. | 302 // Check if a given URL handler is registered for the given protocol. |
| 303 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) | 303 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& baseUrl, const WebURL& url) |
| 304 { | 304 { |
| 305 return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string( )); | 305 return isProtocolHandlerRegistered(scheme, baseUrl, url; |
|
jochen (gone - plz use gerrit)
2014/04/14 07:01:14
and make this return WebCustomHandlersNew;
| |
| 306 } | |
| 307 | |
| 308 // These old version APIs need to be removed after synching with chrome side . | |
| 309 virtual void registerProtocolHandler(const WebString& scheme, | |
| 310 const WebString& baseUrl, | |
| 311 const WebString& url, | |
| 312 const WebString& title) { } | |
| 313 | |
| 314 virtual void unregisterProtocolHandler(const WebString& scheme, const WebStr ing& baseUrl, const WebString& url) { } | |
| 315 | |
| 316 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebString& baseUrl, const WebString& url) | |
| 317 { | |
| 318 return WebCustomHandlersNew; | |
| 319 } | 306 } |
| 320 | 307 |
| 321 | 308 |
| 322 // Visibility ----------------------------------------------------------- | 309 // Visibility ----------------------------------------------------------- |
| 323 | 310 |
| 324 // Returns the current visibility of the WebView. | 311 // Returns the current visibility of the WebView. |
| 325 virtual WebPageVisibilityState visibilityState() const | 312 virtual WebPageVisibilityState visibilityState() const |
| 326 { | 313 { |
| 327 return WebPageVisibilityStateVisible; | 314 return WebPageVisibilityStateVisible; |
| 328 } | 315 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 // Informs the browser that the draggable regions have been updated. | 347 // Informs the browser that the draggable regions have been updated. |
| 361 virtual void draggableRegionsChanged() { } | 348 virtual void draggableRegionsChanged() { } |
| 362 | 349 |
| 363 protected: | 350 protected: |
| 364 ~WebViewClient() { } | 351 ~WebViewClient() { } |
| 365 }; | 352 }; |
| 366 | 353 |
| 367 } // namespace blink | 354 } // namespace blink |
| 368 | 355 |
| 369 #endif | 356 #endif |
| OLD | NEW |