OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/glue/plugins/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 | 8 |
9 namespace pepper { | 9 namespace webkit { |
| 10 namespace plugins { |
| 11 namespace ppapi { |
10 | 12 |
11 MockPluginDelegate::MockPluginDelegate() { | 13 MockPluginDelegate::MockPluginDelegate() { |
12 } | 14 } |
13 | 15 |
14 MockPluginDelegate::~MockPluginDelegate() { | 16 MockPluginDelegate::~MockPluginDelegate() { |
15 } | 17 } |
16 | 18 |
17 void MockPluginDelegate::InstanceCreated(pepper::PluginInstance* instance) { | 19 void MockPluginDelegate::InstanceCreated(PluginInstance* instance) { |
18 } | 20 } |
19 | 21 |
20 void MockPluginDelegate::InstanceDeleted(pepper::PluginInstance* instance) { | 22 void MockPluginDelegate::InstanceDeleted(PluginInstance* instance) { |
21 } | 23 } |
22 | 24 |
23 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( | 25 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( |
24 int width, | 26 int width, |
25 int height) { | 27 int height) { |
26 return NULL; | 28 return NULL; |
27 } | 29 } |
28 | 30 |
29 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { | 31 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { |
30 return NULL; | 32 return NULL; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 base::PlatformFileError MockPluginDelegate::QueryModuleLocalFile( | 144 base::PlatformFileError MockPluginDelegate::QueryModuleLocalFile( |
143 const std::string& module_name, | 145 const std::string& module_name, |
144 const FilePath& path, | 146 const FilePath& path, |
145 base::PlatformFileInfo* info) { | 147 base::PlatformFileInfo* info) { |
146 return base::PLATFORM_FILE_ERROR_FAILED; | 148 return base::PLATFORM_FILE_ERROR_FAILED; |
147 } | 149 } |
148 | 150 |
149 base::PlatformFileError MockPluginDelegate::GetModuleLocalDirContents( | 151 base::PlatformFileError MockPluginDelegate::GetModuleLocalDirContents( |
150 const std::string& module_name, | 152 const std::string& module_name, |
151 const FilePath& path, | 153 const FilePath& path, |
152 PepperDirContents* contents) { | 154 DirContents* contents) { |
153 return base::PLATFORM_FILE_ERROR_FAILED; | 155 return base::PLATFORM_FILE_ERROR_FAILED; |
154 } | 156 } |
155 | 157 |
156 scoped_refptr<base::MessageLoopProxy> | 158 scoped_refptr<base::MessageLoopProxy> |
157 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 159 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
158 return scoped_refptr<base::MessageLoopProxy>(); | 160 return scoped_refptr<base::MessageLoopProxy>(); |
159 } | 161 } |
160 | 162 |
161 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( | 163 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( |
162 PluginInstance* instance) { | 164 PluginInstance* instance) { |
(...skipping 14 matching lines...) Expand all Loading... |
177 | 179 |
178 void MockPluginDelegate::DidStartLoading() { | 180 void MockPluginDelegate::DidStartLoading() { |
179 } | 181 } |
180 | 182 |
181 void MockPluginDelegate::DidStopLoading() { | 183 void MockPluginDelegate::DidStopLoading() { |
182 } | 184 } |
183 | 185 |
184 void MockPluginDelegate::SetContentRestriction(int restrictions) { | 186 void MockPluginDelegate::SetContentRestriction(int restrictions) { |
185 } | 187 } |
186 | 188 |
187 } // namespace pepper | 189 } // namespace ppapi |
| 190 } // namespace plugins |
| 191 } // namespace webkit |
| 192 |
OLD | NEW |