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/ppapi_plugin_instance.h" | 13 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
13 | 14 |
14 namespace webkit { | 15 namespace webkit { |
15 namespace ppapi { | 16 namespace ppapi { |
16 | 17 |
17 MockPluginDelegate::MockPluginDelegate() { | 18 MockPluginDelegate::MockPluginDelegate() { |
18 } | 19 } |
19 | 20 |
20 MockPluginDelegate::~MockPluginDelegate() { | 21 MockPluginDelegate::~MockPluginDelegate() { |
21 } | 22 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 67 } |
67 | 68 |
68 WebKit::WebPlugin* MockPluginDelegate::CreatePluginReplacement( | 69 WebKit::WebPlugin* MockPluginDelegate::CreatePluginReplacement( |
69 const FilePath& file_path) { | 70 const FilePath& file_path) { |
70 return NULL; | 71 return NULL; |
71 } | 72 } |
72 | 73 |
73 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( | 74 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( |
74 int width, | 75 int width, |
75 int height) { | 76 int height) { |
76 return NULL; | 77 return new MockPlatformImage2D(width, height); |
77 } | 78 } |
78 | 79 |
79 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { | 80 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { |
80 return NULL; | 81 return NULL; |
81 } | 82 } |
82 void MockPluginDelegate::ReparentContext( | 83 void MockPluginDelegate::ReparentContext( |
83 MockPluginDelegate::PlatformContext3D* context) { | 84 MockPluginDelegate::PlatformContext3D* context) { |
84 } | 85 } |
85 | 86 |
86 MockPluginDelegate::PlatformVideoDecoder* | 87 MockPluginDelegate::PlatformVideoDecoder* |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } | 471 } |
471 | 472 |
472 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 473 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
473 const GURL& document_url, | 474 const GURL& document_url, |
474 const GURL& plugin_url) { | 475 const GURL& plugin_url) { |
475 return PP_FLASHLSORESTRICTIONS_NONE; | 476 return PP_FLASHLSORESTRICTIONS_NONE; |
476 } | 477 } |
477 | 478 |
478 } // namespace ppapi | 479 } // namespace ppapi |
479 } // namespace webkit | 480 } // namespace webkit |
OLD | NEW |