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, | 5 // From private/ppb_camera_capabilities_private.idl modified Wed Nov 5 14:29:15 |
6 // modified Tue Aug 19 14:43:34 2014. | 6 // 2014. |
7 | 7 |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/c/private/ppb_camera_capabilities_private.h" | 9 #include "ppapi/c/private/ppb_camera_capabilities_private.h" |
10 #include "ppapi/shared_impl/tracked_callback.h" | 10 #include "ppapi/shared_impl/tracked_callback.h" |
11 #include "ppapi/thunk/enter.h" | 11 #include "ppapi/thunk/enter.h" |
12 #include "ppapi/thunk/ppapi_thunk_export.h" | 12 #include "ppapi/thunk/ppapi_thunk_export.h" |
13 #include "ppapi/thunk/ppb_camera_capabilities_api.h" | 13 #include "ppapi/thunk/ppb_camera_capabilities_api.h" |
14 | 14 |
15 namespace ppapi { | 15 namespace ppapi { |
16 namespace thunk { | 16 namespace thunk { |
(...skipping 28 matching lines...) Expand all Loading... |
45 int32_t* array_size, | 45 int32_t* array_size, |
46 struct PP_Size** jpeg_sizes) { | 46 struct PP_Size** jpeg_sizes) { |
47 VLOG(4) << "PPB_CameraCapabilities_Private::GetSupportedJpegSizes()"; | 47 VLOG(4) << "PPB_CameraCapabilities_Private::GetSupportedJpegSizes()"; |
48 EnterResource<PPB_CameraCapabilities_API> enter(capabilities, true); | 48 EnterResource<PPB_CameraCapabilities_API> enter(capabilities, true); |
49 if (enter.failed()) | 49 if (enter.failed()) |
50 return; | 50 return; |
51 enter.object()->GetSupportedJpegSizes(array_size, jpeg_sizes); | 51 enter.object()->GetSupportedJpegSizes(array_size, jpeg_sizes); |
52 } | 52 } |
53 | 53 |
54 const PPB_CameraCapabilities_Private_0_1 | 54 const PPB_CameraCapabilities_Private_0_1 |
55 g_ppb_cameracapabilities_private_thunk_0_1 = { | 55 g_ppb_cameracapabilities_private_thunk_0_1 = {&Create, |
56 &Create, | 56 &IsCameraCapabilities, |
57 &IsCameraCapabilities, | 57 &GetSupportedPreviewSizes, |
58 &GetSupportedPreviewSizes, | 58 &GetSupportedJpegSizes}; |
59 &GetSupportedJpegSizes | |
60 }; | |
61 | 59 |
62 } // namespace | 60 } // namespace |
63 | 61 |
64 PPAPI_THUNK_EXPORT const PPB_CameraCapabilities_Private_0_1* | 62 PPAPI_THUNK_EXPORT const PPB_CameraCapabilities_Private_0_1* |
65 GetPPB_CameraCapabilities_Private_0_1_Thunk() { | 63 GetPPB_CameraCapabilities_Private_0_1_Thunk() { |
66 return &g_ppb_cameracapabilities_private_thunk_0_1; | 64 return &g_ppb_cameracapabilities_private_thunk_0_1; |
67 } | 65 } |
68 | 66 |
69 } // namespace thunk | 67 } // namespace thunk |
70 } // namespace ppapi | 68 } // namespace ppapi |
OLD | NEW |