Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Issue 10911256: Change the way the ToplevelEventHandler is hooked up. It is now both a pre- and post-target event h… (Closed)

Created:
8 years, 3 months ago by Ben Goodger (Google)
Modified:
8 years, 3 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, jeremya
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156401

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -57 lines) Patch
M ash/root_window_controller.cc View 4 chunks +0 lines, -6 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.h View 1 chunk +10 lines, -3 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.cc View 1 5 chunks +88 lines, -47 lines 1 comment Download
M ash/wm/workspace/workspace2.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_handler.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
A ui/base/events/event_functions.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A ui/base/events/event_functions.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ben Goodger (Google)
8 years, 3 months ago (2012-09-12 18:00:55 UTC) #1
sadrul
Left a comment about invoking the default-handler. The rest of the change should not affect ...
8 years, 3 months ago (2012-09-12 18:19:33 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/10911256/diff/5001/ui/base/events/event.cc File ui/base/events/event.cc (right): http://codereview.chromium.org/10911256/diff/5001/ui/base/events/event.cc#newcode57 ui/base/events/event.cc:57: return event.phase() == EP_POSTTARGET && event.result() != ER_UNHANDLED; But ...
8 years, 3 months ago (2012-09-12 18:39:53 UTC) #3
sadrul
http://codereview.chromium.org/10911256/diff/5001/ui/base/events/event.cc File ui/base/events/event.cc (right): http://codereview.chromium.org/10911256/diff/5001/ui/base/events/event.cc#newcode57 ui/base/events/event.cc:57: return event.phase() == EP_POSTTARGET && event.result() != ER_UNHANDLED; On ...
8 years, 3 months ago (2012-09-12 18:47:36 UTC) #4
sky
8 years, 3 months ago (2012-09-12 21:25:39 UTC) #5
LGTM

http://codereview.chromium.org/10911256/diff/10002/ash/wm/toplevel_window_eve...
File ash/wm/toplevel_window_event_handler.cc (right):

http://codereview.chromium.org/10911256/diff/10002/ash/wm/toplevel_window_eve...
ash/wm/toplevel_window_event_handler.cc:326: 
nit: remove newline.

Powered by Google App Engine
This is Rietveld 408576698