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

Issue 1759273002: Add AcceleratorType to EventMatcher (Closed)

Created:
4 years, 9 months ago by jonross
Modified:
4 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add AcceleratorType to EventMatcher AcceleratorType defines pre-target and post-target types for EventMatcher. Pre-target accelerators will be dispatched inplace of the target window. Post-target accelerators will be dispatched after the window has a chance to consume the event. A following review will implement this. This change also update EventMatcher to use AcceleratorType. Currently mus client will default to creating pre-target accelerators. TEST=EventDispatcherTest.PostTargetAccelerator BUG=560478 Committed: https://crrev.com/4d34a5d6983598edf98941672211734eca04caa9 Cr-Commit-Position: refs/heads/master@{#379579}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -8 lines) Patch
M components/mus/public/interfaces/input_event_constants.mojom View 1 1 chunk +9 lines, -0 lines 0 comments Download
M components/mus/public/interfaces/input_event_matcher.mojom View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/event_dispatcher.h View 1 1 chunk +7 lines, -5 lines 0 comments Download
M components/mus/ws/event_dispatcher.cc View 1 2 6 chunks +12 lines, -3 lines 0 comments Download
M components/mus/ws/event_dispatcher_unittest.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (6 generated)
jonross
Hi, I have added an AcceleratorType to EventMatcher. This captures whether an event is a ...
4 years, 9 months ago (2016-03-03 22:11:48 UTC) #3
sky
https://codereview.chromium.org/1759273002/diff/20001/components/mus/public/interfaces/input_event_constants.mojom File components/mus/public/interfaces/input_event_constants.mojom (right): https://codereview.chromium.org/1759273002/diff/20001/components/mus/public/interfaces/input_event_constants.mojom#newcode8 components/mus/public/interfaces/input_event_constants.mojom:8: PRE_TARGET, Document what these mean. https://codereview.chromium.org/1759273002/diff/20001/components/mus/public/interfaces/input_event_matcher.mojom File components/mus/public/interfaces/input_event_matcher.mojom (right): ...
4 years, 9 months ago (2016-03-03 23:41:24 UTC) #4
jonross
https://codereview.chromium.org/1759273002/diff/20001/components/mus/public/interfaces/input_event_constants.mojom File components/mus/public/interfaces/input_event_constants.mojom (right): https://codereview.chromium.org/1759273002/diff/20001/components/mus/public/interfaces/input_event_constants.mojom#newcode8 components/mus/public/interfaces/input_event_constants.mojom:8: PRE_TARGET, On 2016/03/03 23:41:24, sky wrote: > Document what ...
4 years, 9 months ago (2016-03-04 15:26:37 UTC) #6
sky
https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom File components/mus/public/interfaces/input_event_matcher.mojom (right): https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom#newcode50 components/mus/public/interfaces/input_event_matcher.mojom:50: AcceleratorPhaseMatcher accelerator_matcher; As the phase is always required can ...
4 years, 9 months ago (2016-03-04 16:51:55 UTC) #7
jonross
https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom File components/mus/public/interfaces/input_event_matcher.mojom (right): https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom#newcode50 components/mus/public/interfaces/input_event_matcher.mojom:50: AcceleratorPhaseMatcher accelerator_matcher; On 2016/03/04 16:51:55, sky wrote: > As ...
4 years, 9 months ago (2016-03-04 20:38:20 UTC) #8
sky
https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom File components/mus/public/interfaces/input_event_matcher.mojom (right): https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom#newcode50 components/mus/public/interfaces/input_event_matcher.mojom:50: AcceleratorPhaseMatcher accelerator_matcher; On 2016/03/04 20:38:20, jonross wrote: > On ...
4 years, 9 months ago (2016-03-04 21:36:16 UTC) #9
jonross
https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom File components/mus/public/interfaces/input_event_matcher.mojom (right): https://codereview.chromium.org/1759273002/diff/60001/components/mus/public/interfaces/input_event_matcher.mojom#newcode50 components/mus/public/interfaces/input_event_matcher.mojom:50: AcceleratorPhaseMatcher accelerator_matcher; On 2016/03/04 21:36:16, sky wrote: > On ...
4 years, 9 months ago (2016-03-04 22:13:03 UTC) #11
sky
LGTM
4 years, 9 months ago (2016-03-04 23:01:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759273002/100001
4 years, 9 months ago (2016-03-07 16:54:39 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 9 months ago (2016-03-07 17:45:51 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 17:46:47 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4d34a5d6983598edf98941672211734eca04caa9
Cr-Commit-Position: refs/heads/master@{#379579}

Powered by Google App Engine
This is Rietveld 408576698