| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // The caller will own the pointer returned from this. | 219 // The caller will own the pointer returned from this. |
| 220 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; | 220 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; |
| 221 | 221 |
| 222 // The caller will own the pointer returned from this. | 222 // The caller will own the pointer returned from this. |
| 223 virtual PlatformContext3D* CreateContext3D() = 0; | 223 virtual PlatformContext3D* CreateContext3D() = 0; |
| 224 | 224 |
| 225 // The caller will own the pointer returned from this. | 225 // The caller will own the pointer returned from this. |
| 226 virtual PlatformVideoDecoder* CreateVideoDecoder( | 226 virtual PlatformVideoDecoder* CreateVideoDecoder( |
| 227 const PP_VideoDecoderConfig_Dev& decoder_config) = 0; | 227 const PP_VideoDecoderConfig_Dev& decoder_config) = 0; |
| 228 | 228 |
| 229 // The caller will own the pointer returned from this. | 229 // The caller is responsible for calling Shutdown() on the returned pointer |
| 230 // to clean up the corresponding resources allocated during this call. |
| 230 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 231 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
| 231 uint32_t sample_count, | 232 uint32_t sample_count, |
| 232 PlatformAudio::Client* client) = 0; | 233 PlatformAudio::Client* client) = 0; |
| 233 | 234 |
| 234 // Notifies that the number of find results has changed. | 235 // Notifies that the number of find results has changed. |
| 235 virtual void NumberOfFindResultsChanged(int identifier, | 236 virtual void NumberOfFindResultsChanged(int identifier, |
| 236 int total, | 237 int total, |
| 237 bool final_result) = 0; | 238 bool final_result) = 0; |
| 238 | 239 |
| 239 // Notifies that the index of the currently selected item has been updated. | 240 // Notifies that the index of the currently selected item has been updated. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // | 343 // |
| 343 // TODO(sergeyu): Replace this with a higher-level P2P API | 344 // TODO(sergeyu): Replace this with a higher-level P2P API |
| 344 // implementation. | 345 // implementation. |
| 345 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 346 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
| 346 }; | 347 }; |
| 347 | 348 |
| 348 } // namespace ppapi | 349 } // namespace ppapi |
| 349 } // namespace webkit | 350 } // namespace webkit |
| 350 | 351 |
| 351 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 352 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |