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

Unified Diff: ppapi/thunk/ppb_audio_input_dev_thunk.cc

Issue 115343006: Pepper: Remove unused interface versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 6 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
« no previous file with comments | « ppapi/thunk/ppb_audio_input_api.h ('k') | ppapi/thunk/ppb_video_capture_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_audio_input_dev_thunk.cc
diff --git a/ppapi/thunk/ppb_audio_input_dev_thunk.cc b/ppapi/thunk/ppb_audio_input_dev_thunk.cc
index ee38c7ad9fea9998386cd5205f23a789082be4a0..7d44a03078774db1e2081db0e0f455037794ade0 100644
--- a/ppapi/thunk/ppb_audio_input_dev_thunk.cc
+++ b/ppapi/thunk/ppb_audio_input_dev_thunk.cc
@@ -31,18 +31,6 @@ PP_Bool IsAudioInput(PP_Resource resource) {
return PP_FromBool(enter.succeeded());
}
-int32_t EnumerateDevices_0_2(PP_Resource audio_input,
- PP_Resource* devices,
- struct PP_CompletionCallback callback) {
- VLOG(4) << "PPB_AudioInput_Dev::EnumerateDevices()";
- EnterResource<PPB_AudioInput_API> enter(audio_input, callback, true);
- if (enter.failed())
- return enter.retval();
- return enter.SetResult(enter.object()->EnumerateDevices0_2(
- devices,
- enter.callback()));
-}
-
int32_t EnumerateDevices(PP_Resource audio_input,
struct PP_ArrayOutput output,
struct PP_CompletionCallback callback) {
@@ -64,17 +52,17 @@ int32_t MonitorDeviceChange(PP_Resource audio_input,
return enter.object()->MonitorDeviceChange(callback, user_data);
}
-int32_t Open_0_2(PP_Resource audio_input,
+int32_t Open_0_3(PP_Resource audio_input,
PP_Resource device_ref,
PP_Resource config,
- PPB_AudioInput_Callback_0_2 audio_input_callback,
+ PPB_AudioInput_Callback_0_3 audio_input_callback,
void* user_data,
struct PP_CompletionCallback callback) {
VLOG(4) << "PPB_AudioInput_Dev::Open()";
EnterResource<PPB_AudioInput_API> enter(audio_input, callback, true);
if (enter.failed())
return enter.retval();
- return enter.SetResult(enter.object()->Open0_2(device_ref,
+ return enter.SetResult(enter.object()->Open0_3(device_ref,
config,
audio_input_callback,
user_data,
@@ -130,23 +118,12 @@ void Close(PP_Resource audio_input) {
enter.object()->Close();
}
-const PPB_AudioInput_Dev_0_2 g_ppb_audioinput_dev_thunk_0_2 = {
- &Create,
- &IsAudioInput,
- &EnumerateDevices_0_2,
- &Open_0_2,
- &GetCurrentConfig,
- &StartCapture,
- &StopCapture,
- &Close
-};
-
const PPB_AudioInput_Dev_0_3 g_ppb_audioinput_dev_thunk_0_3 = {
&Create,
&IsAudioInput,
&EnumerateDevices,
&MonitorDeviceChange,
- &Open_0_2,
+ &Open_0_3,
&GetCurrentConfig,
&StartCapture,
&StopCapture,
@@ -167,10 +144,6 @@ const PPB_AudioInput_Dev_0_4 g_ppb_audioinput_dev_thunk_0_4 = {
} // namespace
-const PPB_AudioInput_Dev_0_2* GetPPB_AudioInput_Dev_0_2_Thunk() {
- return &g_ppb_audioinput_dev_thunk_0_2;
-}
-
const PPB_AudioInput_Dev_0_3* GetPPB_AudioInput_Dev_0_3_Thunk() {
return &g_ppb_audioinput_dev_thunk_0_3;
}
« no previous file with comments | « ppapi/thunk/ppb_audio_input_api.h ('k') | ppapi/thunk/ppb_video_capture_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698