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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 #include "webkit/plugins/ppapi/ppp_pdf.h" | 44 #include "webkit/plugins/ppapi/ppp_pdf.h" |
45 #include "webkit/plugins/webkit_plugins_export.h" | 45 #include "webkit/plugins/webkit_plugins_export.h" |
46 | 46 |
47 struct PP_Point; | 47 struct PP_Point; |
48 | 48 |
49 class SkBitmap; | 49 class SkBitmap; |
50 class TransportDIB; | 50 class TransportDIB; |
51 | 51 |
52 namespace WebKit { | 52 namespace WebKit { |
53 class WebInputEvent; | 53 class WebInputEvent; |
54 class WebMouseEvent; | |
54 class WebPluginContainer; | 55 class WebPluginContainer; |
55 struct WebCompositionUnderline; | 56 struct WebCompositionUnderline; |
56 struct WebCursorInfo; | 57 struct WebCursorInfo; |
57 } | 58 } |
58 | 59 |
59 namespace ppapi { | 60 namespace ppapi { |
60 struct InputEventData; | 61 struct InputEventData; |
61 struct PPP_Instance_Combined; | 62 struct PPP_Instance_Combined; |
62 class Resource; | 63 class Resource; |
63 } | 64 } |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 | 295 |
295 // Implementation of PPP_Messaging. | 296 // Implementation of PPP_Messaging. |
296 void HandleMessage(PP_Var message); | 297 void HandleMessage(PP_Var message); |
297 | 298 |
298 PluginDelegate::PlatformContext3D* CreateContext3D(); | 299 PluginDelegate::PlatformContext3D* CreateContext3D(); |
299 | 300 |
300 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe | 301 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe |
301 // or embedded in a page). | 302 // or embedded in a page). |
302 bool IsFullPagePlugin() const; | 303 bool IsFullPagePlugin() const; |
303 | 304 |
304 void OnLockMouseACK(int32_t result); | 305 // A mouse lock request was pending, and the success is being returned. |
305 void OnMouseLockLost(); | 306 virtual void OnLockMouseACK(bool success); |
yzshen1
2012/01/16 07:50:35
Why the three methods need to be virtual?
the suc
scheib
2012/01/17 22:05:36
Done.
| |
307 // A mouse lock was in place, but has been lost | |
yzshen1
2012/01/16 07:50:35
Please add a period, please.
scheib
2012/01/17 22:05:36
Done.
| |
308 virtual void OnMouseLockLost(); | |
309 // A mouse lock is enabled and mouse events are being delievered. | |
310 virtual void HandleMouseLockedInputEvent(const WebKit::WebMouseEvent& event); | |
306 | 311 |
307 // Simulates an input event to the plugin by passing it down to WebKit, | 312 // Simulates an input event to the plugin by passing it down to WebKit, |
308 // which sends it back up to the plugin as if it came from the user. | 313 // which sends it back up to the plugin as if it came from the user. |
309 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); | 314 void SimulateInputEvent(const ::ppapi::InputEventData& input_event); |
310 | 315 |
311 // FunctionGroupBase overrides. | 316 // FunctionGroupBase overrides. |
312 virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* | 317 virtual ::ppapi::thunk::PPB_Instance_FunctionAPI* |
313 AsPPB_Instance_FunctionAPI() OVERRIDE; | 318 AsPPB_Instance_FunctionAPI() OVERRIDE; |
314 | 319 |
315 // PPB_Instance_FunctionAPI implementation. | 320 // PPB_Instance_FunctionAPI implementation. |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 | 616 |
612 PP_CompletionCallback lock_mouse_callback_; | 617 PP_CompletionCallback lock_mouse_callback_; |
613 | 618 |
614 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 619 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
615 }; | 620 }; |
616 | 621 |
617 } // namespace ppapi | 622 } // namespace ppapi |
618 } // namespace webkit | 623 } // namespace webkit |
619 | 624 |
620 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 625 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |