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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> | 61 scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> |
62 MockPluginDelegate::CreateResourceCreationAPI(PluginInstance* instance) { | 62 MockPluginDelegate::CreateResourceCreationAPI(PluginInstance* instance) { |
63 return scoped_ptr< ::ppapi::thunk::ResourceCreationAPI>(); | 63 return scoped_ptr< ::ppapi::thunk::ResourceCreationAPI>(); |
64 } | 64 } |
65 | 65 |
66 SkBitmap* MockPluginDelegate::GetSadPluginBitmap() { | 66 SkBitmap* MockPluginDelegate::GetSadPluginBitmap() { |
67 return NULL; | 67 return NULL; |
68 } | 68 } |
69 | 69 |
70 WebKit::WebPlugin* MockPluginDelegate::CreatePluginReplacement( | 70 WebKit::WebPlugin* MockPluginDelegate::CreatePluginReplacement( |
71 const FilePath& file_path) { | 71 const base::FilePath& file_path) { |
72 return NULL; | 72 return NULL; |
73 } | 73 } |
74 | 74 |
75 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( | 75 MockPluginDelegate::PlatformImage2D* MockPluginDelegate::CreateImage2D( |
76 int width, | 76 int width, |
77 int height) { | 77 int height) { |
78 return new MockPlatformImage2D(width, height); | 78 return new MockPlatformImage2D(width, height); |
79 } | 79 } |
80 | 80 |
81 PluginDelegate::PlatformGraphics2D* MockPluginDelegate::GetGraphics2D( | 81 PluginDelegate::PlatformGraphics2D* MockPluginDelegate::GetGraphics2D( |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 134 } |
135 | 135 |
136 void MockPluginDelegate::NumberOfFindResultsChanged(int identifier, | 136 void MockPluginDelegate::NumberOfFindResultsChanged(int identifier, |
137 int total, | 137 int total, |
138 bool final_result) { | 138 bool final_result) { |
139 } | 139 } |
140 | 140 |
141 void MockPluginDelegate::SelectedFindResultChanged(int identifier, int index) { | 141 void MockPluginDelegate::SelectedFindResultChanged(int identifier, int index) { |
142 } | 142 } |
143 | 143 |
144 bool MockPluginDelegate::AsyncOpenFile(const FilePath& path, | 144 bool MockPluginDelegate::AsyncOpenFile(const base::FilePath& path, |
145 int flags, | 145 int flags, |
146 const AsyncOpenFileCallback& callback) { | 146 const AsyncOpenFileCallback& callback) { |
147 return false; | 147 return false; |
148 } | 148 } |
149 | 149 |
150 bool MockPluginDelegate::AsyncOpenFileSystemURL( | 150 bool MockPluginDelegate::AsyncOpenFileSystemURL( |
151 const GURL& path, | 151 const GURL& path, |
152 int flags, | 152 int flags, |
153 const AsyncOpenFileSystemURLCallback& callback) { | 153 const AsyncOpenFileSystemURLCallback& callback) { |
154 return false; | 154 return false; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 215 } |
216 | 216 |
217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { | 217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { |
218 } | 218 } |
219 | 219 |
220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { | 220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { |
221 } | 221 } |
222 | 222 |
223 void MockPluginDelegate::SyncGetFileSystemPlatformPath( | 223 void MockPluginDelegate::SyncGetFileSystemPlatformPath( |
224 const GURL& url, | 224 const GURL& url, |
225 FilePath* platform_path) { | 225 base::FilePath* platform_path) { |
226 DCHECK(platform_path); | 226 DCHECK(platform_path); |
227 *platform_path = FilePath(); | 227 *platform_path = base::FilePath(); |
228 } | 228 } |
229 | 229 |
230 scoped_refptr<base::MessageLoopProxy> | 230 scoped_refptr<base::MessageLoopProxy> |
231 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 231 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
232 return scoped_refptr<base::MessageLoopProxy>(); | 232 return scoped_refptr<base::MessageLoopProxy>(); |
233 } | 233 } |
234 | 234 |
235 uint32 MockPluginDelegate::TCPSocketCreate() { | 235 uint32 MockPluginDelegate::TCPSocketCreate() { |
236 return 0; | 236 return 0; |
237 } | 237 } |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 PP_DeviceType_Dev type, | 386 PP_DeviceType_Dev type, |
387 const EnumerateDevicesCallback& callback) { | 387 const EnumerateDevicesCallback& callback) { |
388 return -1; | 388 return -1; |
389 } | 389 } |
390 | 390 |
391 void MockPluginDelegate::StopEnumerateDevices(int request_id) { | 391 void MockPluginDelegate::StopEnumerateDevices(int request_id) { |
392 } | 392 } |
393 | 393 |
394 } // namespace ppapi | 394 } // namespace ppapi |
395 } // namespace webkit | 395 } // namespace webkit |
OLD | NEW |