Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1015)

Side by Side Diff: ppapi/thunk/ppb_image_capture_config_private_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_host_resolver_thunk.cc ('k') | ppapi/thunk/ppb_image_capture_private_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_host_resolver_thunk.cc ('k') | ppapi/thunk/ppb_image_capture_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698