diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 19:35:18 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 19:35:18 +0000 |
commit | 194bf38fe616b10b0d3c551292db6832567186d9 (patch) | |
tree | bacebff474c08a2531c2464024afbb72a90dac22 /views/focus/accelerator_handler.h | |
parent | 909116fdb8f7eaaf225bdf3314fdf4e46d42f115 (diff) | |
download | chromium_src-194bf38fe616b10b0d3c551292db6832567186d9.zip chromium_src-194bf38fe616b10b0d3c551292db6832567186d9.tar.gz chromium_src-194bf38fe616b10b0d3c551292db6832567186d9.tar.bz2 |
touchui: Create touch-events.
Create and process touch-events. The touch-events are created from
pointer-events. The way to decide whether a 'pointer event' originated from a
touch-device is not yet well-defined. So for now, use the --touch-devices
command line parameter to specify which pointer devices should be treated as
touch-device. For example, you can run:
./out/Debug/chrome --touch-devices=7,8
to treat the events coming in from devices with id 7 and 8 as touch events.
(these are the slave ids you get from 'xinput list')
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/4738001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/focus/accelerator_handler.h')
-rw-r--r-- | views/focus/accelerator_handler.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/views/focus/accelerator_handler.h b/views/focus/accelerator_handler.h index 088f3f1..2d08e47 100644 --- a/views/focus/accelerator_handler.h +++ b/views/focus/accelerator_handler.h @@ -13,6 +13,7 @@ #endif #include <set> +#include <vector> #include "base/message_loop.h" @@ -22,7 +23,13 @@ namespace views { // Dispatch an XEvent to the RootView. Return true if the event was dispatched // and handled, false otherwise. bool DispatchXEvent(XEvent* xevent); -#endif + +#if defined(HAVE_XINPUT2) +// Keep a list of touch devices so that it is possible to determine if a pointer +// event is a touch-event or a mouse-event. +void SetTouchDeviceList(std::vector<unsigned int>& devices); +#endif // HAVE_XINPUT2 +#endif // TOUCH_UI // This class delegates the key messages to the associated FocusManager class // for the window that is receiving these messages for accelerator processing. |