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