| 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/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" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
| 11 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 12 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 12 | 13 |
| 13 namespace webkit { | 14 namespace webkit { |
| 14 namespace ppapi { | 15 namespace ppapi { |
| 15 | 16 |
| 16 MockPluginDelegate::MockPluginDelegate() { | 17 MockPluginDelegate::MockPluginDelegate() { |
| 17 } | 18 } |
| 18 | 19 |
| 19 MockPluginDelegate::~MockPluginDelegate() { | 20 MockPluginDelegate::~MockPluginDelegate() { |
| 20 } | 21 } |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 void MockPluginDelegate::UnlockMouse(PluginInstance* instance) { | 355 void MockPluginDelegate::UnlockMouse(PluginInstance* instance) { |
| 355 } | 356 } |
| 356 | 357 |
| 357 void MockPluginDelegate::DidChangeCursor(PluginInstance* instance, | 358 void MockPluginDelegate::DidChangeCursor(PluginInstance* instance, |
| 358 const WebKit::WebCursorInfo& cursor) { | 359 const WebKit::WebCursorInfo& cursor) { |
| 359 } | 360 } |
| 360 | 361 |
| 361 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { | 362 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { |
| 362 } | 363 } |
| 363 | 364 |
| 365 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) { |
| 366 data->length = 0; |
| 367 } |
| 368 |
| 364 bool MockPluginDelegate::IsInFullscreenMode() { | 369 bool MockPluginDelegate::IsInFullscreenMode() { |
| 365 return false; | 370 return false; |
| 366 } | 371 } |
| 367 | 372 |
| 368 bool MockPluginDelegate::IsPageVisible() const { | 373 bool MockPluginDelegate::IsPageVisible() const { |
| 369 return true; | 374 return true; |
| 370 } | 375 } |
| 371 | 376 |
| 372 } // namespace ppapi | 377 } // namespace ppapi |
| 373 } // namespace webkit | 378 } // namespace webkit |
| OLD | NEW |