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

Unified Diff: ppapi/cpp/dev/video_capture_dev.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/video_capture_dev.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/video_capture_dev.cc
diff --git a/ppapi/cpp/dev/video_capture_dev.cc b/ppapi/cpp/dev/video_capture_dev.cc
index cd2a4b8261cd753d28e92b1baed2837a488bf131..ecb55729309c5badbf17fb4efa2f0cef32d8593f 100644
--- a/ppapi/cpp/dev/video_capture_dev.cc
+++ b/ppapi/cpp/dev/video_capture_dev.cc
@@ -34,6 +34,11 @@ VideoCapture_Dev::VideoCapture_Dev(const VideoCapture_Dev& other)
: Resource(other) {
}
+// static
+bool VideoCapture_Dev::IsAvailable() {
+ return has_interface<PPB_VideoCapture_Dev>();
+}
+
int32_t VideoCapture_Dev::StartCapture(
const PP_VideoCaptureDeviceInfo_Dev& requested_info,
uint32_t buffer_count) {
« no previous file with comments | « ppapi/cpp/dev/video_capture_dev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698