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

Issue 9963027: ash: Remap Command on Apple keyboards to Control [2/2] (Closed)

Created:
8 years, 8 months ago by Daniel Erat
Modified:
8 years, 8 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Yusuke Sato
Visibility:
Public.

Description

ash: Remap Command on Apple keyboards to Control [2/2] This is yusukes's http://codereview.chromium.org/9854025/ with my review comments applied. chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.cc: * Every time when a new device is added, notify the name of the device to KeyRewriter. * Listens to XI_KeyPress and XI_KeyRelease events to the X root window, and notify the device ID of the event to KeyRewriter so that the rewriter could know the source of the next KeyPress/KeyRelease Core event. Note that it's not possible to monitor both XI_KeyPress and core KeyPress events for a single X window. For example, if we monitor XI_KeyPress events in aura::RootWindowHostLinux (by calling XISelectEvents() for the root Aura window, xwindow_), it becomes impossible to receive KeyPress core events for |xwindow_| in RootWindowHostLinux. It's also impossible to convert XI_KeyPress into core KeyPress. That is the reason why xinput_hierarchy_changed_event_listener.cc is used to monitor XI_KeyPress/Release events. chrome/browser/ui/views/ash/key_rewriter.cc: * Rewrites Command key press on an Apple keyboard to Control key press, regardless of the user preference for remapping modifier keys. Part 1 of 2 (Ash part): http://codereview.chromium.org/9838010/ BUG=121012 TEST=manual TBR=sky Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130037

Patch Set 1 #

Patch Set 2 : apply my own review feedback from http://codereview.chromium.org/9854025/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+626 lines, -20 lines) Patch
M chrome/browser/chrome_browser_main_extra_parts_ash.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/device_hierarchy_observer.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/pointer_device_observer.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.cc View 1 3 chunks +42 lines, -17 lines 0 comments Download
A chrome/browser/ui/views/ash/key_rewriter.h View 1 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ash/key_rewriter.cc View 1 1 chunk +233 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/ash/key_rewriter_unittest.cc View 1 1 chunk +226 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/event.h View 1 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Daniel Erat
I'm not sure of the best way to review this. http://codereview.chromium.org/9854025/ is the original change. ...
8 years, 8 months ago (2012-03-31 01:25:23 UTC) #1
Daniel Erat
8 years, 8 months ago (2012-03-31 01:45:38 UTC) #2
Emmanuel Saint-loubert-Bié
lgtm
8 years, 8 months ago (2012-03-31 01:59:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/9963027/2001
8 years, 8 months ago (2012-03-31 02:03:25 UTC) #4
commit-bot: I haz the power
Presubmit check for 9963027-2001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-03-31 02:03:33 UTC) #5
Daniel Erat
TBR-ing sky@ for ui/aura approval based on earlier IM conversation describing the changes to aura::Event.
8 years, 8 months ago (2012-03-31 02:05:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/9963027/2001
8 years, 8 months ago (2012-03-31 02:05:43 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-03-31 03:52:58 UTC) #8
Change committed as 130037

Powered by Google App Engine
This is Rietveld 408576698