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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 9234064: Implement device enumeration for PPB_VideoCapture_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 MockPluginDelegate::PlatformVideoDecoder* 60 MockPluginDelegate::PlatformVideoDecoder*
61 MockPluginDelegate::CreateVideoDecoder( 61 MockPluginDelegate::CreateVideoDecoder(
62 media::VideoDecodeAccelerator::Client* client, 62 media::VideoDecodeAccelerator::Client* client,
63 int32 command_buffer_route_id) { 63 int32 command_buffer_route_id) {
64 return NULL; 64 return NULL;
65 } 65 }
66 66
67 MockPluginDelegate::PlatformVideoCapture* 67 MockPluginDelegate::PlatformVideoCapture*
68 MockPluginDelegate::CreateVideoCapture( 68 MockPluginDelegate::CreateVideoCapture(
69 media::VideoCapture::EventHandler* handler){ 69 const std::string& device_id,
70 PlatformVideoCaptureEventHandler* handler){
70 return NULL; 71 return NULL;
71 } 72 }
72 73
73 MockPluginDelegate::PlatformAudio* MockPluginDelegate::CreateAudio( 74 MockPluginDelegate::PlatformAudio* MockPluginDelegate::CreateAudio(
74 uint32_t sample_rate, 75 uint32_t sample_rate,
75 uint32_t sample_count, 76 uint32_t sample_count,
76 PlatformAudioCommonClient* client) { 77 PlatformAudioCommonClient* client) {
77 return NULL; 78 return NULL;
78 } 79 }
79 80
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 372 }
372 373
373 bool MockPluginDelegate::IsInFullscreenMode() { 374 bool MockPluginDelegate::IsInFullscreenMode() {
374 return false; 375 return false;
375 } 376 }
376 377
377 bool MockPluginDelegate::IsPageVisible() const { 378 bool MockPluginDelegate::IsPageVisible() const {
378 return true; 379 return true;
379 } 380 }
380 381
382 int MockPluginDelegate::EnumerateDevices(
383 PP_DeviceType_Dev type,
384 const EnumerateDevicesCallback& callback) {
385 return -1;
386 }
387
381 } // namespace ppapi 388 } // namespace ppapi
382 } // namespace webkit 389 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698