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 |
454 webkit_glue::ClipboardClient* | 457 webkit_glue::ClipboardClient* |
455 MockPluginDelegate::CreateClipboardClient() const { | 458 MockPluginDelegate::CreateClipboardClient() const { |
456 return NULL; | 459 return NULL; |
457 } | 460 } |
458 | 461 |
459 std::string MockPluginDelegate::GetDeviceID() { | 462 std::string MockPluginDelegate::GetDeviceID() { |
460 return std::string(); | 463 return std::string(); |
461 } | 464 } |
462 | 465 |
463 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 466 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
464 const GURL& document_url, | 467 const GURL& document_url, |
465 const GURL& plugin_url) { | 468 const GURL& plugin_url) { |
466 return PP_FLASHLSORESTRICTIONS_NONE; | 469 return PP_FLASHLSORESTRICTIONS_NONE; |
467 } | 470 } |
468 | 471 |
469 } // namespace ppapi | 472 } // namespace ppapi |
470 } // namespace webkit | 473 } // namespace webkit |
OLD | NEW |