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" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
12 #include "webkit/plugins/ppapi/mock_platform_image_2d.h" | 12 #include "webkit/plugins/ppapi/mock_platform_image_2d.h" |
| 13 #include "webkit/plugins/ppapi/plugin_delegate.h" |
13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 14 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
14 | 15 |
15 namespace webkit { | 16 namespace webkit { |
16 namespace ppapi { | 17 namespace ppapi { |
17 | 18 |
18 MockPluginDelegate::MockPluginDelegate() { | 19 MockPluginDelegate::MockPluginDelegate() { |
19 } | 20 } |
20 | 21 |
21 MockPluginDelegate::~MockPluginDelegate() { | 22 MockPluginDelegate::~MockPluginDelegate() { |
22 } | 23 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const FilePath& file_path) { | 71 const FilePath& file_path) { |
71 return NULL; | 72 return NULL; |
72 } | 73 } |
73 | 74 |
74 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( | 75 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( |
75 int width, | 76 int width, |
76 int height) { | 77 int height) { |
77 return new MockPlatformImage2D(width, height); | 78 return new MockPlatformImage2D(width, height); |
78 } | 79 } |
79 | 80 |
| 81 PluginDelegate::PlatformGraphics2D* MockPluginDelegate::GetGraphics2D( |
| 82 PluginInstance* instance, |
| 83 PP_Resource graphics_2d) { |
| 84 return NULL; |
| 85 } |
| 86 |
80 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { | 87 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { |
81 return NULL; | 88 return NULL; |
82 } | 89 } |
83 void MockPluginDelegate::ReparentContext( | 90 void MockPluginDelegate::ReparentContext( |
84 MockPluginDelegate::PlatformContext3D* context) { | 91 MockPluginDelegate::PlatformContext3D* context) { |
85 } | 92 } |
86 | 93 |
87 MockPluginDelegate::PlatformVideoDecoder* | 94 MockPluginDelegate::PlatformVideoDecoder* |
88 MockPluginDelegate::CreateVideoDecoder( | 95 MockPluginDelegate::CreateVideoDecoder( |
89 media::VideoDecodeAccelerator::Client* client, | 96 media::VideoDecodeAccelerator::Client* client, |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 473 } |
467 | 474 |
468 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 475 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
469 const GURL& document_url, | 476 const GURL& document_url, |
470 const GURL& plugin_url) { | 477 const GURL& plugin_url) { |
471 return PP_FLASHLSORESTRICTIONS_NONE; | 478 return PP_FLASHLSORESTRICTIONS_NONE; |
472 } | 479 } |
473 | 480 |
474 } // namespace ppapi | 481 } // namespace ppapi |
475 } // namespace webkit | 482 } // namespace webkit |
OLD | NEW |