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

Side by Side Diff: chrome/browser/ui/views/accelerator_table.cc

Issue 1177773002: Deprecating high-conflict accelerators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling thestig@ comment. Created 5 years, 6 months 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 "chrome/browser/ui/views/accelerator_table.h" 5 #include "chrome/browser/ui/views/accelerator_table.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "ui/base/accelerators/accelerator.h" 9 #include "ui/base/accelerators/accelerator.h"
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 { ui::VKEY_F3, ui::EF_SHIFT_DOWN, IDC_FIND_PREVIOUS }, 128 { ui::VKEY_F3, ui::EF_SHIFT_DOWN, IDC_FIND_PREVIOUS },
129 { ui::VKEY_F4, ui::EF_CONTROL_DOWN, IDC_CLOSE_TAB }, 129 { ui::VKEY_F4, ui::EF_CONTROL_DOWN, IDC_CLOSE_TAB },
130 { ui::VKEY_F4, ui::EF_ALT_DOWN, IDC_CLOSE_WINDOW }, 130 { ui::VKEY_F4, ui::EF_ALT_DOWN, IDC_CLOSE_WINDOW },
131 { ui::VKEY_F5, ui::EF_NONE, IDC_RELOAD }, 131 { ui::VKEY_F5, ui::EF_NONE, IDC_RELOAD },
132 { ui::VKEY_F5, ui::EF_CONTROL_DOWN, IDC_RELOAD_IGNORING_CACHE }, 132 { ui::VKEY_F5, ui::EF_CONTROL_DOWN, IDC_RELOAD_IGNORING_CACHE },
133 { ui::VKEY_F5, ui::EF_SHIFT_DOWN, IDC_RELOAD_IGNORING_CACHE }, 133 { ui::VKEY_F5, ui::EF_SHIFT_DOWN, IDC_RELOAD_IGNORING_CACHE },
134 { ui::VKEY_F6, ui::EF_NONE, IDC_FOCUS_NEXT_PANE }, 134 { ui::VKEY_F6, ui::EF_NONE, IDC_FOCUS_NEXT_PANE },
135 { ui::VKEY_F6, ui::EF_SHIFT_DOWN, IDC_FOCUS_PREVIOUS_PANE }, 135 { ui::VKEY_F6, ui::EF_SHIFT_DOWN, IDC_FOCUS_PREVIOUS_PANE },
136 { ui::VKEY_F10, ui::EF_NONE, IDC_FOCUS_MENU_BAR }, 136 { ui::VKEY_F10, ui::EF_NONE, IDC_FOCUS_MENU_BAR },
137 { ui::VKEY_F11, ui::EF_NONE, IDC_FULLSCREEN }, 137 { ui::VKEY_F11, ui::EF_NONE, IDC_FULLSCREEN },
138 #if !defined(OS_CHROMEOS)
Lei Zhang 2015/06/12 00:49:11 Just move this down to line ~164 since that's wher
afakhry 2015/06/12 17:26:42 Done. SEARCH + ESC is in ash/accelerators/acceler
138 { ui::VKEY_ESCAPE, ui::EF_SHIFT_DOWN, IDC_TASK_MANAGER }, 139 { ui::VKEY_ESCAPE, ui::EF_SHIFT_DOWN, IDC_TASK_MANAGER },
140 #endif // !defined(OS_CHROMEOS)
139 141
140 // Platform-specific key maps. 142 // Platform-specific key maps.
141 #if defined(OS_LINUX) 143 #if defined(OS_LINUX)
142 { ui::VKEY_BROWSER_BACK, ui::EF_NONE, IDC_BACK }, 144 { ui::VKEY_BROWSER_BACK, ui::EF_NONE, IDC_BACK },
143 { ui::VKEY_BROWSER_FORWARD, ui::EF_NONE, IDC_FORWARD }, 145 { ui::VKEY_BROWSER_FORWARD, ui::EF_NONE, IDC_FORWARD },
144 { ui::VKEY_BROWSER_HOME, ui::EF_NONE, IDC_HOME }, 146 { ui::VKEY_BROWSER_HOME, ui::EF_NONE, IDC_HOME },
145 { ui::VKEY_BROWSER_REFRESH, ui::EF_NONE, IDC_RELOAD }, 147 { ui::VKEY_BROWSER_REFRESH, ui::EF_NONE, IDC_RELOAD },
146 { ui::VKEY_BROWSER_REFRESH, ui::EF_CONTROL_DOWN, IDC_RELOAD_IGNORING_CACHE }, 148 { ui::VKEY_BROWSER_REFRESH, ui::EF_CONTROL_DOWN, IDC_RELOAD_IGNORING_CACHE },
147 { ui::VKEY_BROWSER_REFRESH, ui::EF_SHIFT_DOWN, IDC_RELOAD_IGNORING_CACHE }, 149 { ui::VKEY_BROWSER_REFRESH, ui::EF_SHIFT_DOWN, IDC_RELOAD_IGNORING_CACHE },
148 #endif // defined(OS_LINUX) 150 #endif // defined(OS_LINUX)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 *accelerator = ui::Accelerator(ui::VKEY_C, ui::EF_CONTROL_DOWN); 256 *accelerator = ui::Accelerator(ui::VKEY_C, ui::EF_CONTROL_DOWN);
255 return true; 257 return true;
256 case IDC_PASTE: 258 case IDC_PASTE:
257 *accelerator = ui::Accelerator(ui::VKEY_V, ui::EF_CONTROL_DOWN); 259 *accelerator = ui::Accelerator(ui::VKEY_V, ui::EF_CONTROL_DOWN);
258 return true; 260 return true;
259 } 261 }
260 return false; 262 return false;
261 } 263 }
262 264
263 } // namespace chrome 265 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698