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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 // action that wasn't initiated by the client. | 281 // action that wasn't initiated by the client. |
282 virtual void zoomLevelChanged() { } | 282 virtual void zoomLevelChanged() { } |
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 { | |
293 registerProtocolHandler(scheme, baseUrl.string(), url.string(), title); | |
294 } | |
295 | 292 |
296 // Unregisters a given URL handler for the given protocol. | 293 // Unregisters a given URL handler for the given protocol. |
297 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL
& baseUrl, const WebURL& url) | 294 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL
& baseUrl, const WebURL& url) { } |
298 { | |
299 unregisterProtocolHandler(scheme, baseUrl.string(), url.string()); | |
300 } | |
301 | 295 |
302 // Check if a given URL handler is registered for the given protocol. | 296 // 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) | 297 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString&
scheme, const WebURL& baseUrl, const WebURL& url) |
304 { | 298 { |
305 return isProtocolHandlerRegistered(scheme, baseUrl.string(), url.string(
)); | |
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; | 299 return WebCustomHandlersNew; |
319 } | 300 } |
320 | 301 |
321 | 302 |
322 // Visibility ----------------------------------------------------------- | 303 // Visibility ----------------------------------------------------------- |
323 | 304 |
324 // Returns the current visibility of the WebView. | 305 // Returns the current visibility of the WebView. |
325 virtual WebPageVisibilityState visibilityState() const | 306 virtual WebPageVisibilityState visibilityState() const |
326 { | 307 { |
327 return WebPageVisibilityStateVisible; | 308 return WebPageVisibilityStateVisible; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // Informs the browser that the draggable regions have been updated. | 341 // Informs the browser that the draggable regions have been updated. |
361 virtual void draggableRegionsChanged() { } | 342 virtual void draggableRegionsChanged() { } |
362 | 343 |
363 protected: | 344 protected: |
364 ~WebViewClient() { } | 345 ~WebViewClient() { } |
365 }; | 346 }; |
366 | 347 |
367 } // namespace blink | 348 } // namespace blink |
368 | 349 |
369 #endif | 350 #endif |
OLD | NEW |