summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/event_conversion.cc
Commit message (Collapse)AuthorAgeFilesLines
* ppapi: Add support for touch events.sadrul@chromium.org2012-06-211-2/+152
| | | | | | | | | | | The corresponding webkit side patch is at https://bugs.webkit.org/show_bug.cgi?id=89089 BUG=128236 TEST=manually, using the browser-plugin Review URL: https://chromiumcodereview.appspot.com/10543159 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143486 0039d316-1c4b-4281-b951-d872f2087c98
* ppapi: Set the mouse_button correctly for mouse-move events.sadrul@chromium.org2012-06-151-0/+8
| | | | | | | | | | | | This fixes sending drag-events (i.e. press + move events need to have |mouse_button| set). BUG=none TEST=manually Review URL: https://chromiumcodereview.appspot.com/10532137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142485 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin -- Populate WebKeyboardEvent's keyIdentifierfsamuel@chromium.org2012-06-131-0/+1
| | | | | | | | | | | keyIdentifier is used by EventHandler::defaultKeyboardEventHandler to determine whether a given key is a Tab or not, among other things. Thus, we need to make sure this field is populated when we translate an InputEventData into a WebKeyboardEvent. BUG=none TEST=manually Review URL: https://chromiumcodereview.appspot.com/10544128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142025 0039d316-1c4b-4281-b951-d872f2087c98
* Add some compile asserts for the Pepper event mask flags.brettw@chromium.org2012-06-071-0/+37
| | | | | | | | | | TEST=compiles BUG=none Review URL: https://chromiumcodereview.appspot.com/10539052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141108 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix a few uninitialized vars.jhawkins@chromium.org2012-03-121-0/+1
| | | | | | | | | | | | CID_COUNT=3 CID=103471,103509,103510 BUG=none TEST=none R=groby Review URL: https://chromiumcodereview.appspot.com/9662050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126211 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NaCl/pepper gamepad interface from _dev to stablescottmg@chromium.org2012-03-071-2/+2
| | | | | | | | | | | | | Following API review, and revisions here: https://chromiumcodereview.appspot.com/9405033/. This change is just the mechanical renames and bump of version number to 1.0. BUG=112879, 115119 Review URL: http://codereview.chromium.org/9566022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125399 0039d316-1c4b-4281-b951-d872f2087c98
* Revise gamepad interfacescottmg@chromium.org2012-03-011-0/+27
| | | | | | | | | | | | | | | | | | | | Per API review, revision to gamepad interface. Still in _dev for now, will move to stable as separate change once we're happy with the interface. Change summary: - renames of various fields, and main function in idl per discussion - timestamp to double, connected to PP_Bool - remove #pragma pack in header, now copied member-by-member - update examples One complication was in removing the #pragma pack. Copying by member in webkit/plugins/ppapi/ppapi_plugin_instance.cc avoids the need to keep webkit and pepper in sync and exactly the same layout (a good thing). However, when the native_client ppapi proxy is going between 32 and 64 the data structure ends up being a different size due to padding (all the fields are teh same sizes though). To workaround this, I added padding fields, and assert_sizes to confirm the sizes are the same on both "sides". This is similar to how PP_Point, input events, etc. get rpc'd, but perhaps there's a better way. BUG=112879 Review URL: http://codereview.chromium.org/9405033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124375 0039d316-1c4b-4281-b951-d872f2087c98
* Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-281-3/+2
| | | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123852 Review URL: https://chromiumcodereview.appspot.com/9359048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124009 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 123852 - Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-281-2/+3
| | | | | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Review URL: http://codereview.chromium.org/9359048 TBR=garykac@chromium.org Review URL: https://chromiumcodereview.appspot.com/9478028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123878 0039d316-1c4b-4281-b951-d872f2087c98
* Calc USB scancodes for key events (linux only for now)garykac@chromium.org2012-02-281-3/+2
| | | | | | | | | | | | This is basically reviving cl/6691066. BUG=none TEST=none Review URL: http://codereview.chromium.org/9359048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123852 0039d316-1c4b-4281-b951-d872f2087c98
* Add GetUsbKeyCode _Dev interface for Pepper key eventsgarykac@chromium.org2012-02-211-1/+4
| | | | | | | | | | | Remove CreatePPEvent since it isn't used anywhere. BUG=none TEST=none Review URL: http://codereview.chromium.org/9353013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122892 0039d316-1c4b-4281-b951-d872f2087c98
* Rename the shared_impl resource files to give them more regular names.brettw@chromium.org2011-12-071-1/+1
| | | | | | | | | | | [ Reland of 113290 http://codereview.chromium.org/8790004 ] I keep getting confused between things like AudioImpl and PPB_Audio_Impl. This uses _shared for the names, so now we have _impl, _proxy, and _shared which makes more sense. I also removed the ppb_opengles2_impl file since it was just a forward to the shared version. Review URL: http://codereview.chromium.org/8849003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113428 0039d316-1c4b-4281-b951-d872f2087c98
* Update these includes to use the new header locationsabarth@chromium.org2011-12-031-1/+1
| | | | | | | TBR=darin Review URL: http://codereview.chromium.org/8787003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112824 0039d316-1c4b-4281-b951-d872f2087c98
* Add functions to generate input events to PPB_Testing_Dev. These makebbudge@chromium.org2011-11-201-0/+182
| | | | | | | | | it possible to test APIs that require user gestures and other input events. BUG=none TEST=none Review URL: http://codereview.chromium.org/8413021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110865 0039d316-1c4b-4281-b951-d872f2087c98
* Additional update on Pepper IME API and boilerplate thunk/proxy implementation.kinaba@chromium.org2011-09-291-3/+3
| | | | | | | | | | | | | | | | | | | | | BUG=59425 TEST=Check that ppapi_tests compile (with GYP_DEFINES=shared_library, too). This CL is the second (out of three) part for adding IME support for PPAPI. It reflects comments from James Su to the previous CL: http://codereview.chromium.org/7882004. - Renamed ..._COMPOSTION_START to _IME_COMPOSITON_START. - Changed to assure GetSegment to return a strictly increasing sequence of segmentation points from 0 to the length. and, - Added the mostly boilerplate code for interfacing with in-process & out-of-process plugins. The actual implementation of the IME support will come as the next and the last part of this series of patches. Review URL: http://codereview.chromium.org/8059006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103234 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 102897 - Additional update on Pepper IME API and boilerplate ↵kinaba@chromium.org2011-09-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | thunk/proxy implementation. BUG=59425 TEST=Check that ppapi_tests compile. This CL is the second (out of three) part for adding IME support for PPAPI. It reflects comments from James Su to the previous CL: http://codereview.chromium.org/7882004. - Renamed ..._COMPOSTION_START to _IME_COMPOSITON_START. - Changed to assure GetSegment to return a strictly increasing sequence of segmentation points from 0 to the length. and, - Added the mostly boilerplate code for interfacing with in-process & out-of-process plugins. The actual implementation of the IME support will come as the next and the last part of this series of patches. Review URL: http://codereview.chromium.org/7978019 TBR=kinaba@chromium.org Review URL: http://codereview.chromium.org/8060005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102900 0039d316-1c4b-4281-b951-d872f2087c98
* Additional update on Pepper IME API and boilerplate thunk/proxy implementation.kinaba@chromium.org2011-09-271-3/+3
| | | | | | | | | | | | | | | | | | | | | BUG=59425 TEST=Check that ppapi_tests compile. This CL is the second (out of three) part for adding IME support for PPAPI. It reflects comments from James Su to the previous CL: http://codereview.chromium.org/7882004. - Renamed ..._COMPOSTION_START to _IME_COMPOSITON_START. - Changed to assure GetSegment to return a strictly increasing sequence of segmentation points from 0 to the length. and, - Added the mostly boilerplate code for interfacing with in-process & out-of-process plugins. The actual implementation of the IME support will come as the next and the last part of this series of patches. Review URL: http://codereview.chromium.org/7978019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102897 0039d316-1c4b-4281-b951-d872f2087c98
* Mouse lock implementation, including the renderer side and the Windows ↵yzshen@chromium.org2011-09-221-9/+4
| | | | | | | | | | | | version of the browser side. BUG=41781 TEST=Manual test in ppapi/examples/mouse_lock Review URL: http://codereview.chromium.org/7863003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102234 0039d316-1c4b-4281-b951-d872f2087c98
* Declarations for Pepper IME API.kinaba@chromium.org2011-09-161-0/+8
| | | | | | | | | | | | | | BUG=59425 TEST=Check that ppapi_tests compile. This change list is the first part for adding IME support for PPAPI. For effectiveness of reviewing, I'll split the rather large change into three parts: (*1) Header files declaring IME API. (2) Boilerplate code for proxy & thunk stuff. (3) Actual implementation in webkit/plugin/ppapi/* and content/renderer/*. Review URL: http://codereview.chromium.org/7882004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101458 0039d316-1c4b-4281-b951-d872f2087c98
* Add movement information to PPB_MouseInputEvent.yzshen@chromium.org2011-08-311-0/+9
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7715021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98994 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/7484003/:dmichael@chromium.org2011-07-221-55/+1
| | | | | | | | | | | | | | Remove backwards compatibility for PPP_Instance 0.5 and old input events. Note this can't land until the associated NaCl DEPS roll is landed: http://codereview.chromium.org/7478001/ BUG=none TEST=ppapi tests TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/7488003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93540 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 93523 - Remove backwards compatibility for PPP_Instance 0.5 and old ↵dmichael@chromium.org2011-07-221-1/+55
| | | | | | | | | | | | | | | | input events. I already rolled DEPS of the PPP_Instance and input events change in NaCl. I may need to land the associated DEPS of NaCl in Chrome before committing this one: http://codereview.chromium.org/7481008/ BUG=84519 TEST=trybots Review URL: http://codereview.chromium.org/7484003 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/7484019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93529 0039d316-1c4b-4281-b951-d872f2087c98
* Remove backwards compatibility for PPP_Instance 0.5 and old input events.dmichael@chromium.org2011-07-221-55/+1
| | | | | | | | | | | I already rolled DEPS of the PPP_Instance and input events change in NaCl. I may need to land the associated DEPS of NaCl in Chrome before committing this one: http://codereview.chromium.org/7481008/ BUG=84519 TEST=trybots Review URL: http://codereview.chromium.org/7484003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93523 0039d316-1c4b-4281-b951-d872f2087c98
* Convert input event to interface version 1.0. Rename some of the mouse andbrettw@chromium.org2011-07-201-3/+3
| | | | | | | | | | | | | | | | | | wheel events to remove the redundant "Mouse" and "Wheel" in the getters. Rename PP_INPUTEVENT_TYPE_MOUSEWHEEL to .._WHEEL so that it doesn't look like a mouse event (it's its own type). Add documentation to the C++ wrapper from the C wrappers. Do some minor documentation updates. Update IDL for some of the recent changes we've made. Update the way points are passed for resource creation since IDL wanted to do it by pointer. TEST=it compiles. Review URL: http://codereview.chromium.org/7464003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93263 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/7452002/ againdmichael@chromium.org2011-07-201-0/+2
| | | | | | | | | | | | | | Update chromoting input events. (Clang caught this. Thanks, Clang!) Note I'm leaving in temporary backwards-compatibility. BUG=None TEST=ppapi tests TBR=brettw,sergeyu Review URL: http://codereview.chromium.org/7466008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93234 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 93223 - Reland http://codereview.chromium.org/7452002/dmichael@chromium.org2011-07-201-2/+0
| | | | | | | | | | | | | | | | | | Update chromoting input events. (Clang caught this. Thanks, Clang!) Note I'm leaving in temporary backwards-compatibility. brettw, just need a rubber-stamp. This is the same as the last CL. awong/garykac/sergeyu, looking for someone on chromoting team to glance at my changes and make sure I didn't do anything you don't like. This is a high priority for 14, so please look if you can. BUG=None TEST=ppapi tests Review URL: http://codereview.chromium.org/7466002 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/7471006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93229 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/7452002/dmichael@chromium.org2011-07-201-0/+2
| | | | | | | | | | | | | | | Update chromoting input events. (Clang caught this. Thanks, Clang!) Note I'm leaving in temporary backwards-compatibility. brettw, just need a rubber-stamp. This is the same as the last CL. awong/garykac/sergeyu, looking for someone on chromoting team to glance at my changes and make sure I didn't do anything you don't like. This is a high priority for 14, so please look if you can. BUG=None TEST=ppapi tests Review URL: http://codereview.chromium.org/7466002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93223 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 93202 - Remove HandleInputEvent from PPP_Instance and freeze to 1.0.dmichael@chromium.org2011-07-201-2/+0
| | | | | | | | | | | | | | Note I'm leaving in temporary backwards-compatibility. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2035 TEST=ppapi tests Review URL: http://codereview.chromium.org/7452002 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/7467002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93208 0039d316-1c4b-4281-b951-d872f2087c98
* Remove HandleInputEvent from PPP_Instance and freeze to 1.0.dmichael@chromium.org2011-07-201-0/+2
| | | | | | | | | | | Note I'm leaving in temporary backwards-compatibility. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2035 TEST=ppapi tests Review URL: http://codereview.chromium.org/7452002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93202 0039d316-1c4b-4281-b951-d872f2087c98
* Update the widget API to use the new InputEvent resource rather than the oldbrettw@chromium.org2011-07-191-30/+28
| | | | | | | | | | PP_InputEvent struct. TEST=manual BUG=none Review URL: http://codereview.chromium.org/7399035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93044 0039d316-1c4b-4281-b951-d872f2087c98
* Move the time conversion code to the PPAPI shared_impl directory and use it inbrettw@chromium.org2011-07-121-1/+3
| | | | | | | | | | the proxy for converting event times. This also removes the unnecessary GetInterface function from Graphics2D and has the module use the thunk directly. Review URL: http://codereview.chromium.org/7344009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92229 0039d316-1c4b-4281-b951-d872f2087c98
* Make PP_TimeTicks actually be a tick counter rather than be the same as thebrettw@chromium.org2011-07-081-8/+7
| | | | | | | | | | wall clock time. TEST=none BUG=57448 Review URL: http://codereview.chromium.org/7237044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91860 0039d316-1c4b-4281-b951-d872f2087c98
* Add interfaces for requesting and receiving input event resources.brettw@chromium.org2011-07-071-48/+122
| | | | | | | | | | | | | | | | This converts the input event from a C struct to a resource to give us more ability to change over time. This patch includes a proxy and a C++ wrapper for this resource. You now have to register for classes of input events. No events are sent by default. This also allows us to specify whether the events support bubbling or not, which allows us to better-optimize IPC. TEST=none BUG=none Review URL: http://codereview.chromium.org/7285010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91711 0039d316-1c4b-4281-b951-d872f2087c98
* Revert Pepper Key event "USB code" CL.wez@chromium.org2011-04-261-3/+0
| | | | | | | | | | | | | | Revert "Expose scancodes to PP_InputEvent_Key events that are independent of the input language/layout in effect, i.e. that represent the physical key pressed, independent of its meaning in the current context." This reverts commit 35b9f7f01686f51142d8d5b16a88d04575113029. BUG= TEST= Review URL: http://codereview.chromium.org/6902020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83034 0039d316-1c4b-4281-b951-d872f2087c98
* Expose scancodes to PP_InputEvent_Key events that are independent of the ↵wez@chromium.org2011-04-081-0/+3
| | | | | | | | | | | | | input language/layout in effect, i.e. that represent the physical key pressed, independent of its meaning in the current context. This will inherently rely on the nativeKeyCode field of Chrome's WebKeyboardEvents. BUG= TEST= Review URL: http://codereview.chromium.org/6691066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80918 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* PPAPI: Add context menu events.viettrungluu@chromium.org2011-01-211-1/+8
| | | | | | | | | BUG=50984 TEST=none Review URL: http://codereview.chromium.org/6257011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72189 0039d316-1c4b-4281-b951-d872f2087c98
* base/i18n: Add namespace i18n to CharIterator.tfarina@chromium.org2011-01-201-2/+2
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/6355005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71910 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-1/+1
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* Move the Pepper implementation from webkit/glue/plugins/pepper_* tobrettw@chromium.org2010-12-161-0/+302
webkit/plugins/ppapi/*. This renamed the files and interface implementation classes from foo.cc/Foo to ppb_foo_impl/PPB_Foo_Impl to match the proxy ppb_foo_proxy/PPB_Foo_Proxy. This moves plugin_switches.* from webkit/glue/plugins to webkit/plugins. Review URL: http://codereview.chromium.org/5828003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69424 0039d316-1c4b-4281-b951-d872f2087c98