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

Side by Side Diff: ppapi/thunk/ppb_image_capture_api.h

Issue 884483007: Image Capture PPAPI: remove unused APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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 #ifndef PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ 5 #ifndef PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_
6 #define PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ 6 #define PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/private/ppb_image_capture_private.h" 10 #include "ppapi/c/private/ppb_image_capture_private.h"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 13
14 class TrackedCallback; 14 class TrackedCallback;
15 15
16 namespace thunk { 16 namespace thunk {
17 17
18 class PPB_ImageCapture_API { 18 class PPB_ImageCapture_API {
19 public: 19 public:
20 virtual ~PPB_ImageCapture_API() {} 20 virtual ~PPB_ImageCapture_API() {}
21 virtual int32_t Open(PP_Var camera_source_id, 21 virtual int32_t Open(PP_Var camera_source_id,
22 scoped_refptr<TrackedCallback> callback) = 0; 22 scoped_refptr<TrackedCallback> callback) = 0;
23 virtual void Close() = 0; 23 virtual void Close() = 0;
24 virtual int32_t SetConfig(PP_Resource config,
25 scoped_refptr<TrackedCallback> callback) = 0;
26 virtual int32_t GetConfig(PP_Resource* config,
27 scoped_refptr<TrackedCallback> callback) = 0;
28 virtual int32_t GetCameraCapabilities( 24 virtual int32_t GetCameraCapabilities(
29 PP_Resource* capabilities, 25 PP_Resource* capabilities,
30 scoped_refptr<TrackedCallback> callback) = 0; 26 scoped_refptr<TrackedCallback> callback) = 0;
31 virtual int32_t CaptureStillImage(
32 PPB_ImageCapture_Private_ShutterCallback shutter_callback,
33 PPB_ImageCapture_Private_PreviewCallback preview_callback,
34 PPB_ImageCapture_Private_JpegCallback jpeg_callback,
35 int64_t* sequence_id) = 0;
36 }; 27 };
37 28
38 } // namespace thunk 29 } // namespace thunk
39 } // namespace ppapi 30 } // namespace ppapi
40 31
41 #endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_ 32 #endif // PPAPI_THUNK_PPB_IMAGE_CAPTURE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698