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

Unified Diff: ppapi/cpp/dev/audio_input_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/audio_input_dev.h ('k') | ppapi/cpp/dev/video_capture_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/audio_input_dev.cc
diff --git a/ppapi/cpp/dev/audio_input_dev.cc b/ppapi/cpp/dev/audio_input_dev.cc
index fd8194565cf3252da6c7c0ef3cad161baf5ede59..856a41bb41692b9564081f18e5d7591861e15a47 100644
--- a/ppapi/cpp/dev/audio_input_dev.cc
+++ b/ppapi/cpp/dev/audio_input_dev.cc
@@ -31,6 +31,11 @@ AudioInput_Dev::AudioInput_Dev(Instance* instance,
}
}
+// static
+bool AudioInput_Dev::IsAvailable() {
+ return has_interface<PPB_AudioInput_Dev>();
+}
+
bool AudioInput_Dev::StartCapture() {
return has_interface<PPB_AudioInput_Dev>() &&
get_interface<PPB_AudioInput_Dev>()->StartCapture(pp_resource());
« no previous file with comments | « ppapi/cpp/dev/audio_input_dev.h ('k') | ppapi/cpp/dev/video_capture_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698