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

Issue 12558008: Ensure that menus put in Chrome ASH on Windows 8 are operatable using the keyboard. (Closed)

Created:
7 years, 9 months ago by ananta
Modified:
7 years, 9 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Ensure that menus put in Chrome ASH on Windows 8 are operatable using the keyboard. When a menu is displayed we enter a nested message loop in the Chrome Browser. This loop expects to receive native events for WM_KEYDOWN/WM_KEYUP/WM_CHAR, etc. In desktop AURA this works well because the native events come in through the standard OS mechanism. In ASH we send over fabricated keyboard events from the viewer process to the browser where these are dispatched to the root window. This causes the secondary loop to never receive these events. Fix for now is to check if we are in a nested loop in the RemoteRootWindowHostWin IPC handlers and post the corresponding native event back to the queue. The other change in this CL is to add an event handler to listen for accelerator events in the viewer process. This is necessary to receive keystrokes like Alt, etc. We send over the same keydown/keyup/character IPC's when we receive this event. BUG=180738 R=cpu TBR=ben TEST=Will look into an ash based test for this in a subsequent CL. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186797

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -15 lines) Patch
M ui/aura/remote_root_window_host_win.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 2 3 4 5 6 7 3 chunks +53 lines, -15 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.h View 2 chunks +6 lines, -0 lines 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 1 2 3 3 chunks +68 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ananta
7 years, 9 months ago (2013-03-07 02:17:39 UTC) #1
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.cc File ui/aura/remote_root_window_host_win.cc (right): https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.cc#newcode432 ui/aura/remote_root_window_host_win.cc:432: PostThreadMessage(::GetCurrentThreadId(), ::PostThreadMessage( https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.h File ui/aura/remote_root_window_host_win.h (right): https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.h#newcode171 ui/aura/remote_root_window_host_win.h:171: ...
7 years, 9 months ago (2013-03-07 21:02:26 UTC) #2
ananta
https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.cc File ui/aura/remote_root_window_host_win.cc (right): https://codereview.chromium.org/12558008/diff/14001/ui/aura/remote_root_window_host_win.cc#newcode432 ui/aura/remote_root_window_host_win.cc:432: PostThreadMessage(::GetCurrentThreadId(), On 2013/03/07 21:02:26, cpu wrote: > ::PostThreadMessage( Done. ...
7 years, 9 months ago (2013-03-07 21:06:12 UTC) #3
ananta
TBR'ing Ben for owners LGTM.
7 years, 9 months ago (2013-03-07 21:50:13 UTC) #4
ananta
7 years, 9 months ago (2013-03-07 22:21:57 UTC) #5
Message was sent while issue was closed.
Committed patchset #9 manually as r186797 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698