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

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: Created 5 years, 11 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
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 5ba11785a68dbe56795fc4b522203d09110c51e4..2f15c50f105ef019dbbd177ce393e31970b91b97 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 Mon Feb 2 21:41:55 2015.
+// From private/ppb_image_capture_private.idl modified Tue Feb 3 22:24:35 2015.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
@@ -49,26 +49,6 @@ void Close(PP_Resource image_capture) {
enter.object()->Close();
}
-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) {
@@ -80,29 +60,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,
- &Open,
- &Close,
- &SetConfig,
- &GetConfig,
- &GetCameraCapabilities,
- &CaptureStillImage};
+const PPB_ImageCapture_Private_0_1 g_ppb_imagecapture_private_thunk_0_1 =
+ {&Create, &IsImageCapture, &Open, &Close, &GetCameraCapabilities};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698