| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // From private/ppb_camera_capabilities_private.idl modified Thu Feb 19 09:06:18 | 5 // From private/ppb_camera_capabilities_private.idl modified Wed Jan 27 17:10:16 |
| 6 // 2015. | 6 // 2016. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 11 #include "ppapi/c/private/ppb_camera_capabilities_private.h" | 11 #include "ppapi/c/private/ppb_camera_capabilities_private.h" |
| 12 #include "ppapi/shared_impl/tracked_callback.h" | 12 #include "ppapi/shared_impl/tracked_callback.h" |
| 13 #include "ppapi/thunk/enter.h" | 13 #include "ppapi/thunk/enter.h" |
| 14 #include "ppapi/thunk/ppapi_thunk_export.h" | 14 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 15 #include "ppapi/thunk/ppb_camera_capabilities_api.h" | 15 #include "ppapi/thunk/ppb_camera_capabilities_api.h" |
| 16 | 16 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 31 VLOG(4) | 31 VLOG(4) |
| 32 << "PPB_CameraCapabilities_Private::GetSupportedVideoCaptureFormats()"; | 32 << "PPB_CameraCapabilities_Private::GetSupportedVideoCaptureFormats()"; |
| 33 EnterResource<PPB_CameraCapabilities_API> enter(capabilities, true); | 33 EnterResource<PPB_CameraCapabilities_API> enter(capabilities, true); |
| 34 if (enter.failed()) | 34 if (enter.failed()) |
| 35 return; | 35 return; |
| 36 enter.object()->GetSupportedVideoCaptureFormats(array_size, formats); | 36 enter.object()->GetSupportedVideoCaptureFormats(array_size, formats); |
| 37 } | 37 } |
| 38 | 38 |
| 39 const PPB_CameraCapabilities_Private_0_1 | 39 const PPB_CameraCapabilities_Private_0_1 |
| 40 g_ppb_cameracapabilities_private_thunk_0_1 = { | 40 g_ppb_cameracapabilities_private_thunk_0_1 = { |
| 41 &IsCameraCapabilities, | 41 &IsCameraCapabilities, &GetSupportedVideoCaptureFormats}; |
| 42 &GetSupportedVideoCaptureFormats}; | |
| 43 | 42 |
| 44 } // namespace | 43 } // namespace |
| 45 | 44 |
| 46 PPAPI_THUNK_EXPORT const PPB_CameraCapabilities_Private_0_1* | 45 PPAPI_THUNK_EXPORT const PPB_CameraCapabilities_Private_0_1* |
| 47 GetPPB_CameraCapabilities_Private_0_1_Thunk() { | 46 GetPPB_CameraCapabilities_Private_0_1_Thunk() { |
| 48 return &g_ppb_cameracapabilities_private_thunk_0_1; | 47 return &g_ppb_cameracapabilities_private_thunk_0_1; |
| 49 } | 48 } |
| 50 | 49 |
| 51 } // namespace thunk | 50 } // namespace thunk |
| 52 } // namespace ppapi | 51 } // namespace ppapi |
| OLD | NEW |