OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // The caller will own the pointer returned from this. | 396 // The caller will own the pointer returned from this. |
397 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; | 397 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; |
398 | 398 |
399 // Returns the internal PlatformGraphics2D implementation. | 399 // Returns the internal PlatformGraphics2D implementation. |
400 virtual PlatformGraphics2D* GetGraphics2D(PluginInstance* instance, | 400 virtual PlatformGraphics2D* GetGraphics2D(PluginInstance* instance, |
401 PP_Resource graphics_2d) = 0; | 401 PP_Resource graphics_2d) = 0; |
402 | 402 |
403 // The caller will own the pointer returned from this. | 403 // The caller will own the pointer returned from this. |
404 virtual PlatformContext3D* CreateContext3D() = 0; | 404 virtual PlatformContext3D* CreateContext3D() = 0; |
405 | 405 |
406 // Set that the context will now present to the delegate. | |
407 virtual void ReparentContext(PlatformContext3D*) = 0; | |
408 | |
409 // If |device_id| is empty, the default video capture device will be used. The | 406 // If |device_id| is empty, the default video capture device will be used. The |
410 // user can start using the returned object to capture video right away. | 407 // user can start using the returned object to capture video right away. |
411 // Otherwise, the specified device will be used. The user needs to wait till | 408 // Otherwise, the specified device will be used. The user needs to wait till |
412 // |handler| gets an OnInitialized() notification to start using the returned | 409 // |handler| gets an OnInitialized() notification to start using the returned |
413 // object. | 410 // object. |
414 virtual PlatformVideoCapture* CreateVideoCapture( | 411 virtual PlatformVideoCapture* CreateVideoCapture( |
415 const std::string& device_id, | 412 const std::string& device_id, |
416 PlatformVideoCaptureEventHandler* handler) = 0; | 413 PlatformVideoCaptureEventHandler* handler) = 0; |
417 | 414 |
418 // The caller will own the pointer returned from this. | 415 // The caller will own the pointer returned from this. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 const EnumerateDevicesCallback& callback) = 0; | 646 const EnumerateDevicesCallback& callback) = 0; |
650 // Stop enumerating devices of the specified |request_id|. The |request_id| | 647 // Stop enumerating devices of the specified |request_id|. The |request_id| |
651 // is the return value of EnumerateDevicesCallback. | 648 // is the return value of EnumerateDevicesCallback. |
652 virtual void StopEnumerateDevices(int request_id) = 0; | 649 virtual void StopEnumerateDevices(int request_id) = 0; |
653 }; | 650 }; |
654 | 651 |
655 } // namespace ppapi | 652 } // namespace ppapi |
656 } // namespace webkit | 653 } // namespace webkit |
657 | 654 |
658 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 655 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |