summaryrefslogtreecommitdiffstats
path: root/ui/events/event_processor.h
Commit message (Collapse)AuthorAgeFilesLines
* Add touch-action content browser testrbyers@chromium.org2014-02-281-1/+3
| | | | | | | | | | | | | | | | | | TouchActionBrowserTest uses the synthetic gesture framework to inject touch events that generate a scroll gesture. We then verify that we can scroll the page over touch-action: auto regions but not over touch-action: none regions. We also verify that we get the expected number of touch events in the two different cases. Note this is currently disabled on Android due to the same issue as crbug.com/338011. Update the synthetic gesture framework to take a callback for notification of completion rather than call back on the GestureTarget. OnSyntheticGestureCompleted doesn't really belong on GestureTarget because the component that requests the gesture may not necessarily be the one that actually implements sending the touch events. Expose the SyntheticGestureController for use outside of RenderWidgetHost. It's not unreasonable to imagine multiple different clients wanting to use the same controller. Fix SyntheticGestureTargetAura not to rely on ScreenPositionClient. Previously it assumed that scree co-ordinates and root-window co-ordinates were the same (which was only true on ChromeOS). All we really need is to be able to convert into RootWindow co-ordinates. Aura content_shell doesn't have any implementation of ScreenPositionClient anyway. BUG=346986 Review URL: https://codereview.chromium.org/177313003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254217 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Start using EventPrcessor interface for event dispatch.sadrul@chromium.org2013-12-131-0/+8
| | | | | | | | | | | | | | | Start converting the RootWindowHostDelegate implementations for event-dispatch use the EventProcessor interface under-the-hood to allow easy transition to the new dispatch process. This patch makes this change for Key and Scroll events. BUG=318879 R=ben@chromium.org Review URL: https://codereview.chromium.org/113283005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240683 0039d316-1c4b-4281-b951-d872f2087c98
* events: Introduce EventProcessor, and EventSource.sadrul@chromium.org2013-12-051-0/+30
EventSource receives events from the native platform (e.g. X11), and dispatches the event to an EventProcessor. The EventProcessor has access to a tree of EventTargets, and it uses the appropriate EventTargeter to find the EventTarget the event should be dispatched to, and then dispatches the event to the target. More details at the doc linked to at the bug. This patch also introduces a default implementation for the EventTargeter interface. BUG=318879 R=ben@chromium.org Review URL: https://codereview.chromium.org/100643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239047 0039d316-1c4b-4281-b951-d872f2087c98