| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 struct WebURLError; | 78 struct WebURLError; |
| 79 | 79 |
| 80 class WebFrameClient { | 80 class WebFrameClient { |
| 81 public: | 81 public: |
| 82 // Factory methods ----------------------------------------------------- | 82 // Factory methods ----------------------------------------------------- |
| 83 | 83 |
| 84 // May return null. | 84 // May return null. |
| 85 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) { return
0; } | 85 virtual WebPlugin* createPlugin(WebFrame*, const WebPluginParams&) { return
0; } |
| 86 | 86 |
| 87 // May return null. | 87 // May return null. |
| 88 // FIXME: Deprecate this. |
| 88 virtual WebSharedWorker* createSharedWorker(WebFrame*, const WebURL&, const
WebString&, unsigned long long) { return 0; } | 89 virtual WebSharedWorker* createSharedWorker(WebFrame*, const WebURL&, const
WebString&, unsigned long long) { return 0; } |
| 89 | 90 |
| 90 // May return null. | 91 // May return null. |
| 91 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia
PlayerClient*) { return 0; } | 92 virtual WebMediaPlayer* createMediaPlayer(WebFrame*, const WebURL&, WebMedia
PlayerClient*) { return 0; } |
| 92 | 93 |
| 93 // May return null. | 94 // May return null. |
| 94 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*) { return 0; } | 95 virtual WebApplicationCacheHost* createApplicationCacheHost(WebFrame*, WebAp
plicationCacheHostClient*) { return 0; } |
| 95 | 96 |
| 96 // May return null. Takes ownership of the client. | 97 // May return null. Takes ownership of the client. |
| 97 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web
ServiceWorkerProviderClient*) { return 0; } | 98 virtual WebServiceWorkerProvider* createServiceWorkerProvider(WebFrame*, Web
ServiceWorkerProviderClient*) { return 0; } |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // Extensions3D.h in WebCore/platform/graphics). | 374 // Extensions3D.h in WebCore/platform/graphics). |
| 374 virtual void didLoseWebGLContext(WebFrame*, int) { } | 375 virtual void didLoseWebGLContext(WebFrame*, int) { } |
| 375 | 376 |
| 376 protected: | 377 protected: |
| 377 ~WebFrameClient() { } | 378 ~WebFrameClient() { } |
| 378 }; | 379 }; |
| 379 | 380 |
| 380 } // namespace WebKit | 381 } // namespace WebKit |
| 381 | 382 |
| 382 #endif | 383 #endif |
| OLD | NEW |