Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/mock_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ppapi {
10 11
11 MockPluginDelegate::MockPluginDelegate() { 12 MockPluginDelegate::MockPluginDelegate() {
12 } 13 }
13 14
14 MockPluginDelegate::~MockPluginDelegate() { 15 MockPluginDelegate::~MockPluginDelegate() {
15 } 16 }
16 17
17 void MockPluginDelegate::InstanceCreated(pepper::PluginInstance* instance) { 18 void MockPluginDelegate::InstanceCreated(PluginInstance* instance) {
18 } 19 }
19 20
20 void MockPluginDelegate::InstanceDeleted(pepper::PluginInstance* instance) { 21 void MockPluginDelegate::InstanceDeleted(PluginInstance* instance) {
21 } 22 }
22 23
23 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( 24 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D(
24 int width, 25 int width,
25 int height) { 26 int height) {
26 return NULL; 27 return NULL;
27 } 28 }
28 29
29 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() { 30 MockPluginDelegate::PlatformContext3D* MockPluginDelegate::CreateContext3D() {
30 return NULL; 31 return NULL;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 base::PlatformFileError MockPluginDelegate::QueryModuleLocalFile( 143 base::PlatformFileError MockPluginDelegate::QueryModuleLocalFile(
143 const std::string& module_name, 144 const std::string& module_name,
144 const FilePath& path, 145 const FilePath& path,
145 base::PlatformFileInfo* info) { 146 base::PlatformFileInfo* info) {
146 return base::PLATFORM_FILE_ERROR_FAILED; 147 return base::PLATFORM_FILE_ERROR_FAILED;
147 } 148 }
148 149
149 base::PlatformFileError MockPluginDelegate::GetModuleLocalDirContents( 150 base::PlatformFileError MockPluginDelegate::GetModuleLocalDirContents(
150 const std::string& module_name, 151 const std::string& module_name,
151 const FilePath& path, 152 const FilePath& path,
152 PepperDirContents* contents) { 153 DirContents* contents) {
153 return base::PLATFORM_FILE_ERROR_FAILED; 154 return base::PLATFORM_FILE_ERROR_FAILED;
154 } 155 }
155 156
156 scoped_refptr<base::MessageLoopProxy> 157 scoped_refptr<base::MessageLoopProxy>
157 MockPluginDelegate::GetFileThreadMessageLoopProxy() { 158 MockPluginDelegate::GetFileThreadMessageLoopProxy() {
158 return scoped_refptr<base::MessageLoopProxy>(); 159 return scoped_refptr<base::MessageLoopProxy>();
159 } 160 }
160 161
161 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( 162 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
162 PluginInstance* instance) { 163 PluginInstance* instance) {
(...skipping 14 matching lines...) Expand all
177 178
178 void MockPluginDelegate::DidStartLoading() { 179 void MockPluginDelegate::DidStartLoading() {
179 } 180 }
180 181
181 void MockPluginDelegate::DidStopLoading() { 182 void MockPluginDelegate::DidStopLoading() {
182 } 183 }
183 184
184 void MockPluginDelegate::SetContentRestriction(int restrictions) { 185 void MockPluginDelegate::SetContentRestriction(int restrictions) {
185 } 186 }
186 187
187 } // namespace pepper 188 } // namespace ppapi
189 } // namespace webkit
190
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/mock_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698