| 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "ppapi/c/dev/pp_cursor_type_dev.h" | 18 #include "ppapi/c/dev/pp_cursor_type_dev.h" |
| 19 #include "ppapi/c/dev/ppb_gamepad_dev.h" | |
| 20 #include "ppapi/c/dev/ppp_printing_dev.h" | 19 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 21 #include "ppapi/c/dev/ppp_find_dev.h" | 20 #include "ppapi/c/dev/ppp_find_dev.h" |
| 22 #include "ppapi/c/dev/ppp_selection_dev.h" | 21 #include "ppapi/c/dev/ppp_selection_dev.h" |
| 23 #include "ppapi/c/dev/ppp_zoom_dev.h" | 22 #include "ppapi/c/dev/ppp_zoom_dev.h" |
| 24 #include "ppapi/c/pp_completion_callback.h" | 23 #include "ppapi/c/pp_completion_callback.h" |
| 25 #include "ppapi/c/pp_instance.h" | 24 #include "ppapi/c/pp_instance.h" |
| 26 #include "ppapi/c/pp_resource.h" | 25 #include "ppapi/c/pp_resource.h" |
| 27 #include "ppapi/c/pp_var.h" | 26 #include "ppapi/c/pp_var.h" |
| 28 #include "ppapi/c/ppb_audio_config.h" | 27 #include "ppapi/c/ppb_audio_config.h" |
| 29 #include "ppapi/c/ppb_input_event.h" | 28 #include "ppapi/c/ppb_input_event.h" |
| 29 #include "ppapi/c/ppb_gamepad.h" |
| 30 #include "ppapi/c/ppp_graphics_3d.h" | 30 #include "ppapi/c/ppp_graphics_3d.h" |
| 31 #include "ppapi/c/ppp_input_event.h" | 31 #include "ppapi/c/ppp_input_event.h" |
| 32 #include "ppapi/c/ppp_messaging.h" | 32 #include "ppapi/c/ppp_messaging.h" |
| 33 #include "ppapi/c/ppp_mouse_lock.h" | 33 #include "ppapi/c/ppp_mouse_lock.h" |
| 34 #include "ppapi/c/private/ppp_instance_private.h" | 34 #include "ppapi/c/private/ppp_instance_private.h" |
| 35 #include "ppapi/shared_impl/function_group_base.h" | 35 #include "ppapi/shared_impl/function_group_base.h" |
| 36 #include "ppapi/shared_impl/ppb_instance_shared.h" | 36 #include "ppapi/shared_impl/ppb_instance_shared.h" |
| 37 #include "ppapi/shared_impl/ppb_view_shared.h" | 37 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 38 #include "third_party/skia/include/core/SkRefCnt.h" | 38 #include "third_party/skia/include/core/SkRefCnt.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCanvas.h" |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // already in fullscreen mode). | 288 // already in fullscreen mode). |
| 289 bool SetFullscreen(bool fullscreen); | 289 bool SetFullscreen(bool fullscreen); |
| 290 | 290 |
| 291 // Implementation of PPB_Flash. | 291 // Implementation of PPB_Flash. |
| 292 int32_t Navigate(PPB_URLRequestInfo_Impl* request, | 292 int32_t Navigate(PPB_URLRequestInfo_Impl* request, |
| 293 const char* target, | 293 const char* target, |
| 294 bool from_user_action); | 294 bool from_user_action); |
| 295 bool IsRectTopmost(const gfx::Rect& rect); | 295 bool IsRectTopmost(const gfx::Rect& rect); |
| 296 | 296 |
| 297 // Implementation of PPB_Gamepad. | 297 // Implementation of PPB_Gamepad. |
| 298 void SampleGamepads(PP_Instance instance, PP_GamepadsSampleData_Dev* data) | 298 void SampleGamepads(PP_Instance instance, PP_GamepadsSampleData* data) |
| 299 OVERRIDE; | 299 OVERRIDE; |
| 300 | 300 |
| 301 // Implementation of PPP_Messaging. | 301 // Implementation of PPP_Messaging. |
| 302 void HandleMessage(PP_Var message); | 302 void HandleMessage(PP_Var message); |
| 303 | 303 |
| 304 PluginDelegate::PlatformContext3D* CreateContext3D(); | 304 PluginDelegate::PlatformContext3D* CreateContext3D(); |
| 305 | 305 |
| 306 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe | 306 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe |
| 307 // or embedded in a page). | 307 // or embedded in a page). |
| 308 bool IsFullPagePlugin() const; | 308 bool IsFullPagePlugin() const; |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 620 |
| 621 PP_CompletionCallback lock_mouse_callback_; | 621 PP_CompletionCallback lock_mouse_callback_; |
| 622 | 622 |
| 623 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 623 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 624 }; | 624 }; |
| 625 | 625 |
| 626 } // namespace ppapi | 626 } // namespace ppapi |
| 627 } // namespace webkit | 627 } // namespace webkit |
| 628 | 628 |
| 629 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 629 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |