summaryrefslogtreecommitdiffstats
path: root/ui/base/touch
Commit message (Collapse)AuthorAgeFilesLines
* Some code cleanup.sadrul@chromium.org2011-11-291-5/+5
| | | | | | | | | | | Some checks for TOUCH_UI goes away, and some gets replaced with USE_AURA. BUG=105046 TEST=none Review URL: http://codereview.chromium.org/8662011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111939 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a typo in r111357: use USE_XI2_MT instead of USE_XI_MTsadrul@chromium.org2011-11-291-1/+1
| | | | | | | | | | BUG=105518 TEST=Build with -Duse_xi2_mt=1 Review URL: http://codereview.chromium.org/8717002 Patch from Ningxin Hu <ningxin.hu@intel.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111848 0039d316-1c4b-4281-b951-d872f2087c98
* Get standard touch screens working on Aura Linux buildsrbyers@chromium.org2011-11-232-10/+26
| | | | | | | | | | | | | | Expand the existing support for simulating touch events with a mouse to also work for touch screens which don't have full multi-touch support (eg. due to hardware or driver limitations). Also, avoid getting bad atom X errors in the output by only calling XGetAtomName when we actually have a label. BUG=105121 TEST=Manual TBR=ben@chromium.org Review URL: http://codereview.chromium.org/8637017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111357 0039d316-1c4b-4281-b951-d872f2087c98
* Some dead-code removal from message_pump_x and touch_factory.sadrul@chromium.org2011-11-211-60/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8575017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110980 0039d316-1c4b-4281-b951-d872f2087c98
* touchui: Update a couple of command-line flags.sadrul@chromium.org2011-10-272-8/+0
| | | | | | | | | | | | This removes the --keep-mouse-cursor flag, and moves the --touch-devices flag from touchui-only to linux-views (i.e. chromeos, aura on linux, touchui). BUG=none TEST=none Review URL: http://codereview.chromium.org/8371022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107570 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Fix cursor visibility, and a crash on mouse-wheel.sadrul@chromium.org2011-10-172-3/+11
| | | | | | | | | | | | Fix cursor visibility so that a cursor is hidden only if a touch device is available. BUG=cursor hides on desktop TEST=none Review URL: http://codereview.chromium.org/8319009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105900 0039d316-1c4b-4281-b951-d872f2087c98
* touchui: Convert XI2 MT tracking id to slot id.sadrul@chromium.org2011-09-282-10/+60
| | | | | | | | | | | | | | | The slot id mapped from tracking id is used as the touch id, and the gesture recognizer expects touch points to always start from 0. Patch from: Ningxin Hu <ningxin.hu@intel.com> (http://codereview.chromium.org/7927001/) BUG=95150 TEST=manually (touch-drag to scroll webpage, tap to click link) Review URL: http://codereview.chromium.org/8070003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103122 0039d316-1c4b-4281-b951-d872f2087c98
* touchui: Fix --touch-devices flag.sadrul@chromium.org2011-09-272-16/+32
| | | | | | | | | | | | This fixes the --touch-devices command-line flag, which can be used to create touch-events from a normal mouse device. BUG=none TEST=none Review URL: http://codereview.chromium.org/8048015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102936 0039d316-1c4b-4281-b951-d872f2087c98
* Consolidate/cleanup event cracking code; single out GdkEvents; saves ~850 lines.msw@chromium.org2011-09-263-0/+709
Move ui::NativeEvent typdefs and common functions to ui/base/events.h. Remove NativeEvent2 typedef, single out GdkEvent* uses that should be removed. Implement platform specific ui/base/[platform]/events_[platform].cc. Revise views::NativeEvent definitions (to support Aura abstraction). Consolidate Event[Type/Flags/Location]FromNative(), GetMouseWheelOffset(), etc. Remove GetRepeatCount(), GetWindowsFlags(), IsExtendedKey(), etc. Add IsMouseEvent(), KeyboardCodeFromNative(), EF_EXTENDED flag, etc. Localize GetFlagsFromGdkEvent(), move some file locals to new helpers files. Move views/touchui/touch_factory.h|cc to ui/base/touch. Stop mixing Windows mouse events' MK_*BUTTON into their wParams. BUG=93945 TEST=No build breaks (many configs...), no mouse/key behavior changes. Review URL: http://codereview.chromium.org/7942004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102815 0039d316-1c4b-4281-b951-d872f2087c98