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

Issue 1177773002: Deprecating high-conflict accelerators (Closed)

Created:
5 years, 6 months ago by afakhry
Modified:
5 years, 3 months ago
Reviewers:
Lei Zhang, xiyuan, oshima, Mark P, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, mazda+watch_chromium.org, asvitkine+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecating high-conflict accelerators This CL designs a framework for deprecated accelerators. In this CL we deprecate the following accelerators: - Lock Screen: Ctrl+Shift+L --> Search+L - Task Manager: Shift+Esc --> Search+Esc The old accelerators are still enabled, but the user is shown a notification message telling him about the new accelerator. UMA stats are recorded for both old and new accelerators. Keyboard overlay has been updated. BUG=492454, 486198, 498565, 405317, 503351 TEST=manually, ash_unittests --gtest_filter=DeprecatedAcceleratorTester.*, ash_unittests --gtest_filter=AcceleratorTableTest.CheckDeprecatedAccelerators Committed: https://crrev.com/c2b81c9fca4abc10cafdc75d2e7b4f15314e2e5b Cr-Commit-Position: refs/heads/master@{#335410} Committed: https://crrev.com/cd2bb98dd450f65d857700df192a34ee79d618bf Cr-Commit-Position: refs/heads/master@{#347865}

Patch Set 1 #

Patch Set 2 : Putting the messages in generated_resources.grd #

Patch Set 3 : Added deprecation for the Shift+Esc #

Total comments: 2

Patch Set 4 : Handling thestig@ comment. #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : Added unit tests #

Patch Set 7 : fixing comment in histograms.xml #

Total comments: 2

Patch Set 8 : Moved the notification messages to ash_chromeos_strings.grdp #

Total comments: 2

Patch Set 9 : Reverted whitespace from generated_resources.grd #

Total comments: 9

Patch Set 10 : #

Patch Set 11 : Simplified the design, modified tests accordingly, made accelerators consumable by webcontents if n… #

Total comments: 2

Patch Set 12 : moving IsDeprecated() to c/b/ui/ash #

Total comments: 13

Patch Set 13 : Handling oshima's and sky's comments #

Patch Set 14 : Preventing zero-sized arrays on non-CrOs systems, making deprecated accelerators CrOs-only for now #

Patch Set 15 : Rebase #

Patch Set 16 : New changes #

Patch Set 17 : Fix compile error #

Patch Set 18 : notification icon + updated message + open shortcut help page #

Patch Set 19 : correctly open browser if no one is present #

Total comments: 4

Patch Set 20 : oshima's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -9 lines) Patch
M ash/accelerators/accelerator_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +114 lines, -4 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +93 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +33 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +47 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_table_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download
M ash/ash_chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +10 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -0 lines 0 comments Download
M ash/system/system_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/system_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/keyboard_overlay_data.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/accelerator_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +11 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (12 generated)
afakhry
Hi, Could you please review this CL as follows? thestig: chrome/browser/ui/views/accelerator_table.cc xiyuan: chrome/browser/resources/chromeos/keyboard_overlay_data.js oshima: ash/accelerators/DEPS ...
5 years, 6 months ago (2015-06-11 23:55:04 UTC) #2
Lei Zhang
https://codereview.chromium.org/1177773002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/40001/chrome/app/generated_resources.grd#newcode15653 chrome/app/generated_resources.grd:15653: + Shift+Esc is deprecated. Please use Search+Esc instead. Is ...
5 years, 6 months ago (2015-06-12 00:06:54 UTC) #3
afakhry
https://codereview.chromium.org/1177773002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/40001/chrome/app/generated_resources.grd#newcode15653 chrome/app/generated_resources.grd:15653: + Shift+Esc is deprecated. Please use Search+Esc instead. On ...
5 years, 6 months ago (2015-06-12 00:41:58 UTC) #5
Lei Zhang
https://codereview.chromium.org/1177773002/diff/80001/chrome/browser/ui/views/accelerator_table.cc File chrome/browser/ui/views/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/80001/chrome/browser/ui/views/accelerator_table.cc#newcode138 chrome/browser/ui/views/accelerator_table.cc:138: #if !defined(OS_CHROMEOS) Just move this down to line ~164 ...
5 years, 6 months ago (2015-06-12 00:49:12 UTC) #6
afakhry
https://codereview.chromium.org/1177773002/diff/80001/chrome/browser/ui/views/accelerator_table.cc File chrome/browser/ui/views/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/80001/chrome/browser/ui/views/accelerator_table.cc#newcode138 chrome/browser/ui/views/accelerator_table.cc:138: #if !defined(OS_CHROMEOS) On 2015/06/12 00:49:11, Lei Zhang wrote: > ...
5 years, 6 months ago (2015-06-12 17:26:42 UTC) #7
xiyuan
keyboard_overlay_data.js LGTM
5 years, 6 months ago (2015-06-12 17:48:37 UTC) #8
Mark P
https://codereview.chromium.org/1177773002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1177773002/diff/80001/tools/metrics/histograms/histograms.xml#newcode608 tools/metrics/histograms/histograms.xml:608: + users use the old vs the new one. ...
5 years, 6 months ago (2015-06-12 18:01:44 UTC) #9
afakhry
Fixed the comment in histograms.xml and added two new unit tests. @oshima: please find the ...
5 years, 6 months ago (2015-06-12 22:05:54 UTC) #10
Lei Zhang
https://codereview.chromium.org/1177773002/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/140001/chrome/app/generated_resources.grd#newcode15652 chrome/app/generated_resources.grd:15652: + <message name="IDS_DEPRECATED_LOCK_SCREEN_MSG" BTW, why is this in chrome/ ...
5 years, 6 months ago (2015-06-12 22:08:08 UTC) #11
Mark P
histograms.xml lgtm
5 years, 6 months ago (2015-06-12 22:13:25 UTC) #12
afakhry
https://codereview.chromium.org/1177773002/diff/140001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/140001/chrome/app/generated_resources.grd#newcode15652 chrome/app/generated_resources.grd:15652: + <message name="IDS_DEPRECATED_LOCK_SCREEN_MSG" On 2015/06/12 22:08:07, Lei Zhang wrote: ...
5 years, 6 months ago (2015-06-12 22:36:21 UTC) #13
afakhry
oshima@ and thestig@: friendly ping.
5 years, 6 months ago (2015-06-15 19:10:49 UTC) #14
Lei Zhang
chrome/ lgtm with the whitespace changes reverted. https://codereview.chromium.org/1177773002/diff/160001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/160001/chrome/app/generated_resources.grd#newcode15648 chrome/app/generated_resources.grd:15648: + </if> ...
5 years, 6 months ago (2015-06-15 19:46:03 UTC) #15
afakhry
Reverted whitespace from generated_resources.grd https://codereview.chromium.org/1177773002/diff/160001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1177773002/diff/160001/chrome/app/generated_resources.grd#newcode15648 chrome/app/generated_resources.grd:15648: + </if> On 2015/06/15 19:46:03, ...
5 years, 6 months ago (2015-06-15 20:47:10 UTC) #16
oshima
I have a few more comments about overall design. Let's discuss on Wed. https://codereview.chromium.org/1177773002/diff/180001/ash/accelerators/accelerator_table.cc File ...
5 years, 6 months ago (2015-06-16 05:54:18 UTC) #17
afakhry
https://codereview.chromium.org/1177773002/diff/180001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/180001/ash/accelerators/accelerator_table.cc#newcode104 ash/accelerators/accelerator_table.cc:104: // This key has been deprecated on CrOS. It ...
5 years, 6 months ago (2015-06-16 22:30:33 UTC) #18
oshima
https://codereview.chromium.org/1177773002/diff/180001/chrome/browser/ui/views/accelerator_table.cc File chrome/browser/ui/views/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/180001/chrome/browser/ui/views/accelerator_table.cc#newcode161 chrome/browser/ui/views/accelerator_table.cc:161: { ui::VKEY_ESCAPE, ui::EF_SHIFT_DOWN, IDC_TASK_MANAGER }, On 2015/06/16 22:30:33, afakhry ...
5 years, 6 months ago (2015-06-17 05:06:30 UTC) #19
afakhry
@oshima: Simplified the design as discussed, and modified the tests accordingly. @thestig: Could you please ...
5 years, 6 months ago (2015-06-18 02:12:00 UTC) #21
Lei Zhang
On 2015/06/18 02:12:00, afakhry wrote: > @thestig: Could you please re-review: > chrome/browser/ui/views/frame/browser_view.cc? still lgtm
5 years, 6 months ago (2015-06-18 02:36:31 UTC) #22
sky
https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h File ui/views/focus/focus_manager.h (right): https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h#newcode264 ui/views/focus/focus_manager.h:264: bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) const; Feels wrong to put ...
5 years, 6 months ago (2015-06-18 15:25:19 UTC) #23
afakhry
https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h File ui/views/focus/focus_manager.h (right): https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h#newcode264 ui/views/focus/focus_manager.h:264: bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) const; On 2015/06/18 15:25:18, sky ...
5 years, 6 months ago (2015-06-19 17:26:54 UTC) #24
oshima
On 2015/06/19 17:26:54, afakhry wrote: > https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h > File ui/views/focus/focus_manager.h (right): > > https://codereview.chromium.org/1177773002/diff/220001/ui/views/focus/focus_manager.h#newcode264 > ...
5 years, 6 months ago (2015-06-19 18:47:56 UTC) #25
afakhry
Moved the IsAcceleratorDeprecated() to c/b/ui/ash/ash_util.h/cc
5 years, 6 months ago (2015-06-19 19:45:06 UTC) #26
sky
Yes, I much prefer this approach. https://codereview.chromium.org/1177773002/diff/240001/chrome/browser/ui/ash/ash_util.cc File chrome/browser/ui/ash/ash_util.cc (right): https://codereview.chromium.org/1177773002/diff/240001/chrome/browser/ui/ash/ash_util.cc#newcode58 chrome/browser/ui/ash/ash_util.cc:58: ash::AcceleratorController* controller = ...
5 years, 6 months ago (2015-06-19 21:00:49 UTC) #27
oshima
https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc#newcode104 ash/accelerators/accelerator_table.cc:104: { true, ui::VKEY_ESCAPE, ui::EF_COMMAND_DOWN, SHOW_TASK_MANAGER }, Shouldn't we use ...
5 years, 6 months ago (2015-06-19 21:21:45 UTC) #28
afakhry
Handling oshima's and sky's comments. https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc#newcode104 ash/accelerators/accelerator_table.cc:104: { true, ui::VKEY_ESCAPE, ui::EF_COMMAND_DOWN, ...
5 years, 6 months ago (2015-06-19 22:14:20 UTC) #29
sky
LGTM
5 years, 6 months ago (2015-06-19 23:02:24 UTC) #30
oshima
lgtm https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1177773002/diff/240001/ash/accelerators/accelerator_table.cc#newcode104 ash/accelerators/accelerator_table.cc:104: { true, ui::VKEY_ESCAPE, ui::EF_COMMAND_DOWN, SHOW_TASK_MANAGER }, On 2015/06/19 ...
5 years, 6 months ago (2015-06-19 23:04:20 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177773002/260001
5 years, 6 months ago (2015-06-19 23:06:38 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/65138)
5 years, 6 months ago (2015-06-19 23:43:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177773002/280001
5 years, 6 months ago (2015-06-20 00:46:03 UTC) #39
commit-bot: I haz the power
Committed patchset #14 (id:280001)
5 years, 6 months ago (2015-06-20 01:09:46 UTC) #40
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/c2b81c9fca4abc10cafdc75d2e7b4f15314e2e5b Cr-Commit-Position: refs/heads/master@{#335410}
5 years, 6 months ago (2015-06-20 01:10:53 UTC) #41
afakhry
oshima@chromium.org: Could you please take a look at the changes I made upon request from ...
5 years, 3 months ago (2015-09-08 18:34:39 UTC) #42
oshima
https://codereview.chromium.org/1177773002/diff/380001/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/1177773002/diff/380001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode178 chrome/browser/ui/ash/chrome_shell_delegate.cc:178: browser, GURL("https://support.google.com/chromebook/answer/183101"), define constant with a comprehensive name. https://codereview.chromium.org/1177773002/diff/380001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode184 ...
5 years, 3 months ago (2015-09-08 19:06:47 UTC) #43
afakhry
https://codereview.chromium.org/1177773002/diff/380001/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/1177773002/diff/380001/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode178 chrome/browser/ui/ash/chrome_shell_delegate.cc:178: browser, GURL("https://support.google.com/chromebook/answer/183101"), On 2015/09/08 19:06:47, oshima wrote: > define ...
5 years, 3 months ago (2015-09-08 21:47:35 UTC) #44
oshima
lgtm
5 years, 3 months ago (2015-09-08 21:50:18 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177773002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1177773002/400001
5 years, 3 months ago (2015-09-08 23:17:00 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/101437)
5 years, 3 months ago (2015-09-09 00:02:57 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177773002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1177773002/400001
5 years, 3 months ago (2015-09-09 00:31:48 UTC) #52
commit-bot: I haz the power
Committed patchset #20 (id:400001)
5 years, 3 months ago (2015-09-09 09:03:51 UTC) #53
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 09:05:37 UTC) #54
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/cd2bb98dd450f65d857700df192a34ee79d618bf
Cr-Commit-Position: refs/heads/master@{#347865}

Powered by Google App Engine
This is Rietveld 408576698