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

Issue 10977088: Fix for Ash shortcuts unexpectedly working in system model dialog (Closed)

Created:
8 years, 2 months ago by sschmitz
Modified:
8 years, 2 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, mazda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

See also: http://code.google.com/p/chromium/issues/detail?id=134093 https://chromiumcodereview.appspot.com/10993067/ This is a better fix than 10993067. This CL undoes that change and moves the fix to the AcceleratorController. This is a more general fix which employs a table of actions that are allowed when in a modal dialog. All other actions are suppressed. BUG=153077 TEST=System Tray -> Ehternet -> Join Other; while the modal dialog is up, try various ash shortcuts. Observe that the ones are working (like volume up) make sense, but things like new window or moving around windows are inactive. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162240

Patch Set 1 #

Total comments: 10

Patch Set 2 : adding unit tests #

Total comments: 10

Patch Set 3 : impl. of review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -11 lines) Patch
M ash/accelerators/accelerator_controller.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 2 chunks +14 lines, -7 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 1 chunk +142 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table_unittest.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 3 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sschmitz
Thanks for all your feedback (on the original bug). This seems a much better solution. ...
8 years, 2 months ago (2012-09-28 22:57:08 UTC) #1
Yusuke Sato
Thanks. Checked the table: https://codereview.chromium.org/10977088/diff/1/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/10977088/diff/1/ash/accelerators/accelerator_table.cc#newcode231 ash/accelerators/accelerator_table.cc:231: const AcceleratorAction kActionsAllowedAtModalWindow[] = { ...
8 years, 2 months ago (2012-09-29 00:54:33 UTC) #2
Daniel Erat
Mind adding a test for this? https://codereview.chromium.org/10977088/diff/1/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/10977088/diff/1/ash/accelerators/accelerator_controller.cc#newcode433 ash/accelerators/accelerator_controller.cc:433: // for things ...
8 years, 2 months ago (2012-09-30 01:24:47 UTC) #3
sschmitz
Rebased; add one action to allowed list: OPEN_FEEDBACK_PAGE; added two unittests https://codereview.chromium.org/10977088/diff/1/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): ...
8 years, 2 months ago (2012-10-15 23:50:33 UTC) #4
Yusuke Sato
https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller_unittest.cc File ash/accelerators/accelerator_controller_unittest.cc (right): https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller_unittest.cc#newcode1048 ash/accelerators/accelerator_controller_unittest.cc:1048: EXPECT_TRUE(GetController()->PerformAction(*it, dummy)) This test itself looks good to me, ...
8 years, 2 months ago (2012-10-16 01:03:18 UTC) #5
Daniel Erat
LGTM after addressing a few small comments https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller.cc#newcode365 ash/accelerators/accelerator_controller.cc:365: for (size_t ...
8 years, 2 months ago (2012-10-16 03:03:50 UTC) #6
sschmitz
Thanks for your comments... I implemented them. https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://codereview.chromium.org/10977088/diff/7001/ash/accelerators/accelerator_controller.cc#newcode365 ash/accelerators/accelerator_controller.cc:365: for (size_t ...
8 years, 2 months ago (2012-10-16 18:18:23 UTC) #7
Yusuke Sato
lgtm, thanks. On 2012/10/16 18:18:23, sschmitz wrote: > Thanks for your comments... I implemented them. ...
8 years, 2 months ago (2012-10-16 18:30:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10977088/18001
8 years, 2 months ago (2012-10-16 18:40:59 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 20:48:04 UTC) #10
Change committed as 162240

Powered by Google App Engine
This is Rietveld 408576698