OLD | NEW |
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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 bool MockPluginDelegate::IsPageVisible() const { | 444 bool MockPluginDelegate::IsPageVisible() const { |
445 return true; | 445 return true; |
446 } | 446 } |
447 | 447 |
448 int MockPluginDelegate::EnumerateDevices( | 448 int MockPluginDelegate::EnumerateDevices( |
449 PP_DeviceType_Dev type, | 449 PP_DeviceType_Dev type, |
450 const EnumerateDevicesCallback& callback) { | 450 const EnumerateDevicesCallback& callback) { |
451 return -1; | 451 return -1; |
452 } | 452 } |
453 | 453 |
454 void MockPluginDelegate::StopEnumerateDevices(int request_id) { | |
455 } | |
456 | |
457 webkit_glue::ClipboardClient* | 454 webkit_glue::ClipboardClient* |
458 MockPluginDelegate::CreateClipboardClient() const { | 455 MockPluginDelegate::CreateClipboardClient() const { |
459 return NULL; | 456 return NULL; |
460 } | 457 } |
461 | 458 |
462 std::string MockPluginDelegate::GetDeviceID() { | 459 std::string MockPluginDelegate::GetDeviceID() { |
463 return std::string(); | 460 return std::string(); |
464 } | 461 } |
465 | 462 |
466 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 463 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
467 const GURL& document_url, | 464 const GURL& document_url, |
468 const GURL& plugin_url) { | 465 const GURL& plugin_url) { |
469 return PP_FLASHLSORESTRICTIONS_NONE; | 466 return PP_FLASHLSORESTRICTIONS_NONE; |
470 } | 467 } |
471 | 468 |
472 } // namespace ppapi | 469 } // namespace ppapi |
473 } // namespace webkit | 470 } // namespace webkit |
OLD | NEW |