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_image_capture_config_private.idl, | 5 // From private/ppb_image_capture_config_private.idl modified Wed Nov 5 |
6 // modified Wed Aug 13 14:07:52 2014. | 6 // 14:29:15 2014. |
7 | 7 |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/c/private/ppb_image_capture_config_private.h" | 9 #include "ppapi/c/private/ppb_image_capture_config_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_image_capture_config_api.h" | 13 #include "ppapi/thunk/ppb_image_capture_config_api.h" |
14 | 14 |
15 namespace ppapi { | 15 namespace ppapi { |
16 namespace thunk { | 16 namespace thunk { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 void SetJpegSize(PP_Resource config, const struct PP_Size* jpeg_size) { | 58 void SetJpegSize(PP_Resource config, const struct PP_Size* jpeg_size) { |
59 VLOG(4) << "PPB_ImageCaptureConfig_Private::SetJpegSize()"; | 59 VLOG(4) << "PPB_ImageCaptureConfig_Private::SetJpegSize()"; |
60 EnterResource<PPB_ImageCaptureConfig_API> enter(config, true); | 60 EnterResource<PPB_ImageCaptureConfig_API> enter(config, true); |
61 if (enter.failed()) | 61 if (enter.failed()) |
62 return; | 62 return; |
63 enter.object()->SetJpegSize(jpeg_size); | 63 enter.object()->SetJpegSize(jpeg_size); |
64 } | 64 } |
65 | 65 |
66 const PPB_ImageCaptureConfig_Private_0_1 | 66 const PPB_ImageCaptureConfig_Private_0_1 |
67 g_ppb_imagecaptureconfig_private_thunk_0_1 = { | 67 g_ppb_imagecaptureconfig_private_thunk_0_1 = {&Create, |
68 &Create, | 68 &IsImageCaptureConfig, |
69 &IsImageCaptureConfig, | 69 &GetPreviewSize, |
70 &GetPreviewSize, | 70 &SetPreviewSize, |
71 &SetPreviewSize, | 71 &GetJpegSize, |
72 &GetJpegSize, | 72 &SetJpegSize}; |
73 &SetJpegSize | |
74 }; | |
75 | 73 |
76 } // namespace | 74 } // namespace |
77 | 75 |
78 PPAPI_THUNK_EXPORT const PPB_ImageCaptureConfig_Private_0_1* | 76 PPAPI_THUNK_EXPORT const PPB_ImageCaptureConfig_Private_0_1* |
79 GetPPB_ImageCaptureConfig_Private_0_1_Thunk() { | 77 GetPPB_ImageCaptureConfig_Private_0_1_Thunk() { |
80 return &g_ppb_imagecaptureconfig_private_thunk_0_1; | 78 return &g_ppb_imagecaptureconfig_private_thunk_0_1; |
81 } | 79 } |
82 | 80 |
83 } // namespace thunk | 81 } // namespace thunk |
84 } // namespace ppapi | 82 } // namespace ppapi |
OLD | NEW |