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

Unified Diff: ppapi/thunk/ppb_image_capture_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_image_capture_config_private_thunk.cc ('k') | ppapi/thunk/ppb_image_data_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_image_capture_private_thunk.cc
diff --git a/ppapi/thunk/ppb_image_capture_private_thunk.cc b/ppapi/thunk/ppb_image_capture_private_thunk.cc
index 9f00c3ca8004587fe7e985b76bde9c4fc9ec0df3..ae88783cf5aa2c781f40d5515298a2876eb86e63 100644
--- a/ppapi/thunk/ppb_image_capture_private_thunk.cc
+++ b/ppapi/thunk/ppb_image_capture_private_thunk.cc
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From private/ppb_image_capture_private.idl,
-// modified Wed Aug 13 17:26:13 2014.
+// From private/ppb_image_capture_private.idl modified Wed Nov 5 14:29:15 2014.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -26,10 +25,8 @@ PP_Resource Create(PP_Instance instance,
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
- return enter.functions()->CreateImageCapturePrivate(instance,
- camera_source_id,
- error_callback,
- user_data);
+ return enter.functions()->CreateImageCapturePrivate(
+ instance, camera_source_id, error_callback, user_data);
}
PP_Bool IsImageCapture(PP_Resource resource) {
@@ -73,9 +70,8 @@ int32_t GetCameraCapabilities(PP_Resource image_capture,
EnterResource<PPB_ImageCapture_API> enter(image_capture, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->GetCameraCapabilities(
- capabilities,
- enter.callback()));
+ return enter.SetResult(
+ enter.object()->GetCameraCapabilities(capabilities, enter.callback()));
}
int32_t CaptureStillImage(
@@ -88,26 +84,23 @@ int32_t CaptureStillImage(
EnterResource<PPB_ImageCapture_API> enter(image_capture, true);
if (enter.failed())
return enter.retval();
- return enter.object()->CaptureStillImage(shutter_callback,
- preview_callback,
- jpeg_callback,
- sequence_id);
+ return enter.object()->CaptureStillImage(shutter_callback, preview_callback,
+ jpeg_callback, sequence_id);
}
const PPB_ImageCapture_Private_0_1 g_ppb_imagecapture_private_thunk_0_1 = {
- &Create,
- &IsImageCapture,
- &Close,
- &SetConfig,
- &GetConfig,
- &GetCameraCapabilities,
- &CaptureStillImage
-};
+ &Create,
+ &IsImageCapture,
+ &Close,
+ &SetConfig,
+ &GetConfig,
+ &GetCameraCapabilities,
+ &CaptureStillImage};
} // namespace
PPAPI_THUNK_EXPORT const PPB_ImageCapture_Private_0_1*
- GetPPB_ImageCapture_Private_0_1_Thunk() {
+GetPPB_ImageCapture_Private_0_1_Thunk() {
return &g_ppb_imagecapture_private_thunk_0_1;
}
« no previous file with comments | « ppapi/thunk/ppb_image_capture_config_private_thunk.cc ('k') | ppapi/thunk/ppb_image_data_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698