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 PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ | 6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ppapi/c/dev/pp_video_capture_dev.h" | 10 #include "ppapi/c/dev/pp_video_capture_dev.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 struct EnumerateDevicesState; | 46 struct EnumerateDevicesState; |
47 | 47 |
48 void AbortEnumerateDevices(); | 48 void AbortEnumerateDevices(); |
49 | 49 |
50 // |user_data| is an EnumerateDevicesState object. It is this method's | 50 // |user_data| is an EnumerateDevicesState object. It is this method's |
51 // responsibility to delete it. | 51 // responsibility to delete it. |
52 static void OnEnumerateDevicesComplete(void* user_data, int32_t result); | 52 static void OnEnumerateDevicesComplete(void* user_data, int32_t result); |
53 | 53 |
54 // Not owned by this object. | 54 // Not owned by this object. |
55 EnumerateDevicesState* enum_state_; | 55 EnumerateDevicesState* enum_state_; |
| 56 |
| 57 // Used to store the arguments of Open() when using the v0.1 interface. |
| 58 PP_VideoCaptureDeviceInfo_Dev requested_info_; |
| 59 uint32_t buffer_count_; |
56 }; | 60 }; |
57 | 61 |
58 } // namespace pp | 62 } // namespace pp |
59 | 63 |
60 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ | 64 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ |
OLD | NEW |