Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 8970016: refactoring mouse lock to support pepper and WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor MouseLockDispatcher out of RenderViewImpl Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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);
307 // A mouse lock was in place, but has been lost
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698