Ssadrul@chromium.orgevents: Cleanup the EventDispatcher API.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
events: Inlcude the event-phase and event-result in Event. An event-handler can be installed on a target as both a pre-target and a post-target handler. In such cases, it will be necessary to know the phase of the event-dispatch. So add EventPhase. Also, from a handler, it may be necessary to know whether the event has been handled by any other handlers before this. So include EventResult in the event too. BUG=none. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155825 Review URL: https://chromiumcodereview.appspot.com/10916210 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155957 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux. Once this CL is landed, event handlers do not need to be aware of native screen coordinates even when passive grab is taken. All the conversions can be done only by way of screen coordinate. This CL depends on http://codereview.chromium.org/10911342/. BUG=148686,148761,146435,146072 Review URL: https://chromiumcodereview.appspot.com/10948020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157720 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add GestureTapCancel gesture type GestureTapCancel fires whenever a TapDown will not result in a Tap. This can be used, for example, to cancel a pressed state triggered by TapDown. BUG=146364 Review URL: https://chromiumcodereview.appspot.com/10928066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156026 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
events: Inlcude the event-phase and event-result in Event. An event-handler can be installed on a target as both a pre-target and a post-target handler. In such cases, it will be necessary to know the phase of the event-dispatch. So add EventPhase. Also, from a handler, it may be necessary to know whether the event has been handled by any other handlers before this. So include EventResult in the event too. BUG=none. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155825 Review URL: https://chromiumcodereview.appspot.com/10916210 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155957 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
events: Cleanup the EventDispatcher API. These API functions are not used anymore. So remove these. Update a test to still test that event-handlers receive events in correct phase in the right order. BUG=none Review URL: https://codereview.chromium.org/10956045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158876 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
events: Cleanup the EventDispatcher API. These API functions are not used anymore. So remove these. Update a test to still test that event-handlers receive events in correct phase in the right order. BUG=none Review URL: https://codereview.chromium.org/10956045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158876 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Change the way the ToplevelEventHandler is hooked up. It is now both a pre- and post-target event handler. Most drag logic still occurs pre-target, but initiation occurs post-target, and only if the target chose not to cancel default behavior. This allows us to forward all events to the target and perform window moving D&D after the fact, while consuming spurious events during the drag operation. Useful for Apps V2 frames. http://crbug.com/147653 R=sky@chromium.org,sadrul@chromium.org Review URL: https://chromiumcodereview.appspot.com/10911256 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156401 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Fix mac git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156402 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
events: Add some test. Add a test to verify that the event-handlers are called in the right order. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=155663 Review URL: https://chromiumcodereview.appspot.com/10912168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155727 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
aura: Start converting event-filters into event-handlers. As a first step, add pre-target and post-target event handlers in aura::Env. The EventFilters added in the CompoundEventFilter will be eventually converted to EventHandlers, and installed on the Env as pre- or post-target handlers. The RootWindow makes sure that the correct event-handlers from the env gets added to the appropriate handlers list. This will let us get rid of the event-dispatching logic in CompoundEventFilter. BUG=none Review URL: https://codereview.chromium.org/10960015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158037 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
aura: Start converting event-filters into event-handlers. As a first step, add pre-target and post-target event handlers in aura::Env. The EventFilters added in the CompoundEventFilter will be eventually converted to EventHandlers, and installed on the Env as pre- or post-target handlers. The RootWindow makes sure that the correct event-handlers from the env gets added to the appropriate handlers list. This will let us get rid of the event-dispatching logic in CompoundEventFilter. BUG=none Review URL: https://codereview.chromium.org/10960015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158037 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
events: Move EventTarget into Event. More notable changes: * Event::EventTarget is set from EventDispatcher::ProcessEvent (and in RootWindow for touch-events) * Remove the existing aura::WindowDelegate::OnXXXEvent interface, and update the implementations to override the EventHandler interface instead. Return ER_HANDLED when previously returning true (and ER_UNHANDLED for false). * Kept the stub implementation for OnScrollEvent in WindowDelegate (we may end up not needing OnScrollEvent after all). BUG=none Review URL: https://chromiumcodereview.appspot.com/10908127 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155293 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 |