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

Side by Side Diff: ash/common/accelerators/accelerator_table.cc

Issue 2501123002: Disable the old lock-screen shortcut (Closed)
Patch Set: Fix MUS test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/accelerators/accelerator_table.h" 5 #include "ash/common/accelerators/accelerator_table.h"
6 6
7 #include "ash/common/strings/grit/ash_strings.h" 7 #include "ash/common/strings/grit/ash_strings.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 {false, ui::VKEY_MENU, ui::EF_SHIFT_DOWN, NEXT_IME}, 208 {false, ui::VKEY_MENU, ui::EF_SHIFT_DOWN, NEXT_IME},
209 {false, ui::VKEY_RMENU, ui::EF_SHIFT_DOWN, NEXT_IME}, 209 {false, ui::VKEY_RMENU, ui::EF_SHIFT_DOWN, NEXT_IME},
210 {false, ui::VKEY_LSHIFT, ui::EF_ALT_DOWN, NEXT_IME}, 210 {false, ui::VKEY_LSHIFT, ui::EF_ALT_DOWN, NEXT_IME},
211 {false, ui::VKEY_SHIFT, ui::EF_ALT_DOWN, NEXT_IME}, 211 {false, ui::VKEY_SHIFT, ui::EF_ALT_DOWN, NEXT_IME},
212 {false, ui::VKEY_RSHIFT, ui::EF_ALT_DOWN, NEXT_IME}, 212 {false, ui::VKEY_RSHIFT, ui::EF_ALT_DOWN, NEXT_IME},
213 }; 213 };
214 214
215 const size_t kDeprecatedAcceleratorsLength = arraysize(kDeprecatedAccelerators); 215 const size_t kDeprecatedAcceleratorsLength = arraysize(kDeprecatedAccelerators);
216 216
217 const DeprecatedAcceleratorData kDeprecatedAcceleratorsData[] = { 217 const DeprecatedAcceleratorData kDeprecatedAcceleratorsData[] = {
218 {LOCK_SCREEN, "Ash.Accelerators.Deprecated.LockScreen", 218 {
219 IDS_DEPRECATED_LOCK_SCREEN_MSG, IDS_SHORTCUT_LOCK_SCREEN_OLD, 219 LOCK_SCREEN, "Ash.Accelerators.Deprecated.LockScreen",
220 IDS_SHORTCUT_LOCK_SCREEN_NEW, true}, 220 IDS_DEPRECATED_LOCK_SCREEN_MSG, IDS_SHORTCUT_LOCK_SCREEN_OLD,
221 IDS_SHORTCUT_LOCK_SCREEN_NEW,
222 false // Old accelerator was disabled in M56.
James Cook 2016/11/14 22:09:10 I like how you mentioned the milestone in the comm
afakhry 2016/11/14 22:48:47 Thanks! That was the intent. :)
223 },
221 {SHOW_TASK_MANAGER, "Ash.Accelerators.Deprecated.ShowTaskManager", 224 {SHOW_TASK_MANAGER, "Ash.Accelerators.Deprecated.ShowTaskManager",
222 IDS_DEPRECATED_SHOW_TASK_MANAGER_MSG, IDS_SHORTCUT_TASK_MANAGER_OLD, 225 IDS_DEPRECATED_SHOW_TASK_MANAGER_MSG, IDS_SHORTCUT_TASK_MANAGER_OLD,
223 IDS_SHORTCUT_TASK_MANAGER_NEW, true}, 226 IDS_SHORTCUT_TASK_MANAGER_NEW, true},
224 { 227 {
225 NEXT_IME, "Ash.Accelerators.Deprecated.NextIME", 228 NEXT_IME, "Ash.Accelerators.Deprecated.NextIME",
226 IDS_DEPRECATED_NEXT_IME_MSG, IDS_SHORTCUT_NEXT_IME_OLD, 229 IDS_DEPRECATED_NEXT_IME_MSG, IDS_SHORTCUT_NEXT_IME_OLD,
227 IDS_SHORTCUT_NEXT_IME_NEW, 230 IDS_SHORTCUT_NEXT_IME_NEW,
228 false // Old accelerator has been disabled. 231 false // Old accelerator has been disabled.
229 }}; 232 }};
230 233
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 TOGGLE_WIFI, 535 TOGGLE_WIFI,
533 VOLUME_DOWN, 536 VOLUME_DOWN,
534 VOLUME_MUTE, 537 VOLUME_MUTE,
535 VOLUME_UP, 538 VOLUME_UP,
536 #endif // defined(OS_CHROMEOS) 539 #endif // defined(OS_CHROMEOS)
537 }; 540 };
538 541
539 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen); 542 const size_t kActionsKeepingMenuOpenLength = arraysize(kActionsKeepingMenuOpen);
540 543
541 } // namespace ash 544 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller_unittest.cc ('k') | ash/mus/accelerators/accelerator_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698