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

Side by Side Diff: ppapi/cpp/dev/video_capture_dev.h

Issue 8566044: Pepper: Add IsAvailable() static methods to C++ wrappers to AudioInput_Dev and VideoCapture_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/cpp/dev/audio_input_dev.cc ('k') | ppapi/cpp/dev/video_capture_dev.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_
7 7
8 #include "ppapi/c/dev/pp_video_capture_dev.h" 8 #include "ppapi/c/dev/pp_video_capture_dev.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class Instance; 13 class Instance;
14 14
15 class VideoCapture_Dev : public Resource { 15 class VideoCapture_Dev : public Resource {
16 public: 16 public:
17 explicit VideoCapture_Dev(const Instance& instance); 17 explicit VideoCapture_Dev(const Instance& instance);
18 VideoCapture_Dev(PP_Resource resource); 18 VideoCapture_Dev(PP_Resource resource);
19 VideoCapture_Dev(const VideoCapture_Dev& other); 19 VideoCapture_Dev(const VideoCapture_Dev& other);
20 20
21 // Returns true if the required interface is available.
22 static bool IsAvailable();
23
21 int32_t StartCapture(const PP_VideoCaptureDeviceInfo_Dev& requested_info, 24 int32_t StartCapture(const PP_VideoCaptureDeviceInfo_Dev& requested_info,
22 uint32_t buffer_count); 25 uint32_t buffer_count);
23 int32_t ReuseBuffer(uint32_t buffer); 26 int32_t ReuseBuffer(uint32_t buffer);
24 int32_t StopCapture(); 27 int32_t StopCapture();
25 }; 28 };
26 29
27 } // namespace pp 30 } // namespace pp
28 31
29 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_ 32 #endif // PPAPI_CPP_DEV_VIDEO_CAPTURE_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/audio_input_dev.cc ('k') | ppapi/cpp/dev/video_capture_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698