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> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "webkit/plugins/ppapi/ppp_pdf.h" | 45 #include "webkit/plugins/ppapi/ppp_pdf.h" |
46 #include "webkit/plugins/webkit_plugins_export.h" | 46 #include "webkit/plugins/webkit_plugins_export.h" |
47 | 47 |
48 struct PP_Point; | 48 struct PP_Point; |
49 | 49 |
50 class SkBitmap; | 50 class SkBitmap; |
51 class TransportDIB; | 51 class TransportDIB; |
52 | 52 |
53 namespace WebKit { | 53 namespace WebKit { |
54 class WebInputEvent; | 54 class WebInputEvent; |
| 55 class WebMouseEvent; |
55 class WebPluginContainer; | 56 class WebPluginContainer; |
56 struct WebCompositionUnderline; | 57 struct WebCompositionUnderline; |
57 struct WebCursorInfo; | 58 struct WebCursorInfo; |
58 } | 59 } |
59 | 60 |
60 namespace ppapi { | 61 namespace ppapi { |
61 struct InputEventData; | 62 struct InputEventData; |
62 struct PPP_Instance_Combined; | 63 struct PPP_Instance_Combined; |
63 class Resource; | 64 class Resource; |
64 } | 65 } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 299 |
299 // Implementation of PPP_Messaging. | 300 // Implementation of PPP_Messaging. |
300 void HandleMessage(PP_Var message); | 301 void HandleMessage(PP_Var message); |
301 | 302 |
302 PluginDelegate::PlatformContext3D* CreateContext3D(); | 303 PluginDelegate::PlatformContext3D* CreateContext3D(); |
303 | 304 |
304 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe | 305 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe |
305 // or embedded in a page). | 306 // or embedded in a page). |
306 bool IsFullPagePlugin() const; | 307 bool IsFullPagePlugin() const; |
307 | 308 |
308 void OnLockMouseACK(int32_t result); | 309 // A mouse lock request was pending and this reports success or failure. |
| 310 void OnLockMouseACK(bool succeeded); |
| 311 // A mouse lock was in place, but has been lost. |
309 void OnMouseLockLost(); | 312 void OnMouseLockLost(); |
| 313 // A mouse lock is enabled and mouse events are being delievered. |
| 314 void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event); |
310 | 315 |
311 // Simulates an input event to the plugin by passing it down to WebKit, | 316 // Simulates an input event to the plugin by passing it down to WebKit, |
312 // which sends it back up to the plugin as if it came from the user. | 317 // which sends it back up to the plugin as if it came from the user. |
313 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); | 318 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); |
314 | 319 |
315 // FunctionGroupBase overrides. | 320 // FunctionGroupBase overrides. |
316 virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* | 321 virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* |
317 AsPPB_Instance_FunctionAPI() OVERRIDE; | 322 AsPPB_Instance_FunctionAPI() OVERRIDE; |
318 | 323 |
319 // PPB_Instance_FunctionAPI implementation. | 324 // PPB_Instance_FunctionAPI implementation. |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 | 620 |
616 PP_CompletionCallback lock_mouse_callback_; | 621 PP_CompletionCallback lock_mouse_callback_; |
617 | 622 |
618 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 623 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
619 }; | 624 }; |
620 | 625 |
621 } // namespace ppapi | 626 } // namespace ppapi |
622 } // namespace webkit | 627 } // namespace webkit |
623 | 628 |
624 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 629 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |