OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/shared_impl/ppapi_preferences.h" | 9 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
10 | 11 |
11 namespace webkit { | 12 namespace webkit { |
12 namespace ppapi { | 13 namespace ppapi { |
13 | 14 |
14 MockPluginDelegate::MockPluginDelegate() { | 15 MockPluginDelegate::MockPluginDelegate() { |
15 } | 16 } |
16 | 17 |
17 MockPluginDelegate::~MockPluginDelegate() { | 18 MockPluginDelegate::~MockPluginDelegate() { |
18 } | 19 } |
19 | 20 |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 278 |
278 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( | 279 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( |
279 uint32_t size) { | 280 uint32_t size) { |
280 return NULL; | 281 return NULL; |
281 } | 282 } |
282 | 283 |
283 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { | 284 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { |
284 return ::ppapi::Preferences(); | 285 return ::ppapi::Preferences(); |
285 } | 286 } |
286 | 287 |
| 288 void MockPluginDelegate::LockMouse(PluginInstance* instance) { |
| 289 instance->OnLockMouseACK(PP_ERROR_FAILED); |
| 290 } |
| 291 |
| 292 void MockPluginDelegate::UnlockMouse(PluginInstance* instance) { |
| 293 } |
| 294 |
287 } // namespace ppapi | 295 } // namespace ppapi |
288 } // namespace webkit | 296 } // namespace webkit |
OLD | NEW |