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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( | 342 base::SharedMemory* MockPluginDelegate::CreateAnonymousSharedMemory( |
343 uint32_t size) { | 343 uint32_t size) { |
344 return NULL; | 344 return NULL; |
345 } | 345 } |
346 | 346 |
347 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { | 347 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { |
348 return ::ppapi::Preferences(); | 348 return ::ppapi::Preferences(); |
349 } | 349 } |
350 | 350 |
351 void MockPluginDelegate::LockMouse(PluginInstance* instance) { | 351 bool MockPluginDelegate::LockMouse(PluginInstance* instance) { |
352 instance->OnLockMouseACK(PP_ERROR_FAILED); | 352 return false; |
353 } | 353 } |
354 | 354 |
355 void MockPluginDelegate::UnlockMouse(PluginInstance* instance) { | 355 void MockPluginDelegate::UnlockMouse(PluginInstance* instance) { |
356 } | 356 } |
357 | 357 |
| 358 bool MockPluginDelegate::IsMouseLocked(PluginInstance* instance) { |
| 359 return false; |
| 360 } |
| 361 |
358 void MockPluginDelegate::DidChangeCursor(PluginInstance* instance, | 362 void MockPluginDelegate::DidChangeCursor(PluginInstance* instance, |
359 const WebKit::WebCursorInfo& cursor) { | 363 const WebKit::WebCursorInfo& cursor) { |
360 } | 364 } |
361 | 365 |
362 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { | 366 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { |
363 } | 367 } |
364 | 368 |
365 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) { | 369 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) { |
366 data->length = 0; | 370 data->length = 0; |
367 } | 371 } |
368 | 372 |
369 bool MockPluginDelegate::IsInFullscreenMode() { | 373 bool MockPluginDelegate::IsInFullscreenMode() { |
370 return false; | 374 return false; |
371 } | 375 } |
372 | 376 |
373 bool MockPluginDelegate::IsPageVisible() const { | 377 bool MockPluginDelegate::IsPageVisible() const { |
374 return true; | 378 return true; |
375 } | 379 } |
376 | 380 |
377 } // namespace ppapi | 381 } // namespace ppapi |
378 } // namespace webkit | 382 } // namespace webkit |
OLD | NEW |