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

Unified Diff: ppapi/thunk/ppb_image_capture_private_thunk.cc

Issue 884483007: Image Capture PPAPI: remove unused APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors in all_c(pp)_includes.h Created 5 years, 10 months 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') | no next file » | 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 ae88783cf5aa2c781f40d5515298a2876eb86e63..47db157271fb0e34d450e2cfa0f9e2753df2b372 100644
--- a/ppapi/thunk/ppb_image_capture_private_thunk.cc
+++ b/ppapi/thunk/ppb_image_capture_private_thunk.cc
@@ -2,7 +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 Nov 5 14:29:15 2014.
+// From private/ppb_image_capture_private.idl modified Thu Feb 5 22:47:43 2015.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -19,14 +19,13 @@ namespace {
PP_Resource Create(PP_Instance instance,
struct PP_Var camera_source_id,
- PPB_ImageCapture_Private_ErrorCallback error_callback,
void* user_data) {
VLOG(4) << "PPB_ImageCapture_Private::Create()";
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
return enter.functions()->CreateImageCapturePrivate(
- instance, camera_source_id, error_callback, user_data);
+ instance, camera_source_id, user_data);
}
PP_Bool IsImageCapture(PP_Resource resource) {
@@ -43,26 +42,6 @@ int32_t Close(PP_Resource resource, struct PP_CompletionCallback callback) {
return enter.SetResult(enter.object()->Close(enter.callback()));
}
-int32_t SetConfig(PP_Resource image_capture,
- PP_Resource config,
- struct PP_CompletionCallback callback) {
- VLOG(4) << "PPB_ImageCapture_Private::SetConfig()";
- EnterResource<PPB_ImageCapture_API> enter(image_capture, callback, true);
- if (enter.failed())
- return enter.retval();
- return enter.SetResult(enter.object()->SetConfig(config, enter.callback()));
-}
-
-int32_t GetConfig(PP_Resource image_capture,
- PP_Resource* config,
- struct PP_CompletionCallback callback) {
- VLOG(4) << "PPB_ImageCapture_Private::GetConfig()";
- EnterResource<PPB_ImageCapture_API> enter(image_capture, callback, true);
- if (enter.failed())
- return enter.retval();
- return enter.SetResult(enter.object()->GetConfig(config, enter.callback()));
-}
-
int32_t GetCameraCapabilities(PP_Resource image_capture,
PP_Resource* capabilities,
struct PP_CompletionCallback callback) {
@@ -74,28 +53,8 @@ int32_t GetCameraCapabilities(PP_Resource image_capture,
enter.object()->GetCameraCapabilities(capabilities, enter.callback()));
}
-int32_t CaptureStillImage(
- PP_Resource image_capture,
- PPB_ImageCapture_Private_ShutterCallback shutter_callback,
- PPB_ImageCapture_Private_PreviewCallback preview_callback,
- PPB_ImageCapture_Private_JpegCallback jpeg_callback,
- int64_t* sequence_id) {
- VLOG(4) << "PPB_ImageCapture_Private::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);
-}
-
-const PPB_ImageCapture_Private_0_1 g_ppb_imagecapture_private_thunk_0_1 = {
- &Create,
- &IsImageCapture,
- &Close,
- &SetConfig,
- &GetConfig,
- &GetCameraCapabilities,
- &CaptureStillImage};
+const PPB_ImageCapture_Private_0_1 g_ppb_imagecapture_private_thunk_0_1 =
+ {&Create, &IsImageCapture, &Close, &GetCameraCapabilities};
} // namespace
« no previous file with comments | « ppapi/thunk/ppb_image_capture_config_private_thunk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698