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

Issue 280413002: Fix handling of rewritten-Alt + Button1 -> Button3. (Closed)

Created:
6 years, 7 months ago by kpschoedel
Modified:
6 years, 6 months ago
Reviewers:
Daniel Erat, oshima, sadrul
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make Alt+Button1 -> Button3 respect remapped modifiers. Update native modifier state to reflect the rewritten ui::Event state before the X11 mouse code uses it. Also splits code for the various ui::Event subclasses out of RewriteEvent() for clarity. BUG=372485 R=sadrul@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274568

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add unit test #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : review comments #

Total comments: 5

Patch Set 5 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -55 lines) Patch
M chrome/browser/chromeos/events/event_rewriter.h View 1 chunk +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 3 4 5 chunks +110 lines, -54 lines 1 comment Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 4 1 chunk +33 lines, -0 lines 1 comment Download

Messages

Total messages: 22 (0 generated)
kpschoedel
oshima, selected you as reviewer since you're affected. sadrul, fyi. https://codereview.chromium.org/280413002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc#newcode373 ...
6 years, 7 months ago (2014-05-12 21:58:03 UTC) #1
oshima
I'm not familiar with the code, so I'll leave this to sadrul. Just one request. ...
6 years, 7 months ago (2014-05-13 00:08:21 UTC) #2
sadrul
Can you include some details about the fix in the CL description too? And a ...
6 years, 7 months ago (2014-05-14 03:06:01 UTC) #3
kpschoedel
https://codereview.chromium.org/280413002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc#newcode337 chrome/browser/chromeos/events/event_rewriter.cc:337: (status != ui::EVENT_REWRITE_CONTINUE)) { On 2014/05/14 03:06:01, sadrul wrote: ...
6 years, 7 months ago (2014-05-14 14:46:52 UTC) #4
sadrul
https://codereview.chromium.org/280413002/diff/40001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/40001/chrome/browser/chromeos/events/event_rewriter.cc#newcode337 chrome/browser/chromeos/events/event_rewriter.cc:337: ui::KeyEvent* rewritten_key_event = new ui::KeyEvent(key_event); You need to set ...
6 years, 7 months ago (2014-05-20 16:46:54 UTC) #5
kpschoedel
On 2014/05/20 16:46:54, sadrul wrote: > You need to set status to REWRITTEN here? Do ...
6 years, 6 months ago (2014-05-28 15:40:06 UTC) #6
kpschoedel
Addressed latest comments.
6 years, 6 months ago (2014-05-28 15:40:31 UTC) #7
sadrul
https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc#newcode353 chrome/browser/chromeos/events/event_rewriter.cc:353: XKeyEvent* xkey = &(xev->xkey); Add a CHECK here that ...
6 years, 6 months ago (2014-06-02 00:19:52 UTC) #8
kpschoedel
https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc#newcode353 chrome/browser/chromeos/events/event_rewriter.cc:353: XKeyEvent* xkey = &(xev->xkey); On 2014/06/02 00:19:52, sadrul wrote: ...
6 years, 6 months ago (2014-06-02 00:52:36 UTC) #9
sadrul
LGTM https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/280413002/diff/90001/chrome/browser/chromeos/events/event_rewriter.cc#newcode731 chrome/browser/chromeos/events/event_rewriter.cc:731: reinterpret_cast<unsigned int*>(&xievent->mods.effective)); On 2014/06/02 00:52:36, kpschoedel wrote: > ...
6 years, 6 months ago (2014-06-02 00:58:47 UTC) #10
kpschoedel
On 2014/06/02 00:58:47, sadrul wrote: > In that case, do we need to UpdateX11EventMask() again ...
6 years, 6 months ago (2014-06-02 01:02:23 UTC) #11
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 6 months ago (2014-06-02 01:03:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/280413002/110001
6 years, 6 months ago (2014-06-02 01:03:22 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 03:43:06 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 03:45:51 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/70947)
6 years, 6 months ago (2014-06-02 03:45:52 UTC) #16
kpschoedel
Oshima, PTAL (I forgot Sadrul isn't in OWNERS here).
6 years, 6 months ago (2014-06-02 14:13:36 UTC) #17
kpschoedel
derat, would you have time for a quick look at this?
6 years, 6 months ago (2014-06-03 17:32:27 UTC) #18
Daniel Erat
lgtm
6 years, 6 months ago (2014-06-03 17:41:39 UTC) #19
kpschoedel
The CQ bit was checked by kpschoedel@chromium.org
6 years, 6 months ago (2014-06-03 17:55:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kpschoedel@chromium.org/280413002/110001
6 years, 6 months ago (2014-06-03 17:56:55 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 18:04:24 UTC) #22
Message was sent while issue was closed.
Change committed as 274568

Powered by Google App Engine
This is Rietveld 408576698