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

Side by Side Diff: chrome/browser/views/accelerator_table_gtk.cc

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/accelerator_table_gtk.h" 5 #include "chrome/browser/views/accelerator_table_gtk.h"
6 6
7 #include "app/keyboard_codes.h" 7 #include "app/keyboard_codes.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_command_ids.h"
10 10
11 namespace browser { 11 namespace browser {
12 12
13 // NOTE: Keep this list in the same (mostly-alphabetical) order as 13 // NOTE: Keep this list in the same (mostly-alphabetical) order as
14 // the Windows accelerators in ../../app/chrome_dll.rc. 14 // the Windows accelerators in ../../app/chrome_dll.rc.
15 const AcceleratorMapping kAcceleratorMap[] = { 15 const AcceleratorMapping kAcceleratorMap[] = {
16 // Keycode Shift Ctrl Alt Command ID 16 // Keycode Shift Ctrl Alt Command ID
17 { app::VKEY_A, true, true, false, IDC_AUTOFILL_DEFAULT }, 17 { app::VKEY_A, true, true, false, IDC_AUTOFILL_DEFAULT },
18 { app::VKEY_LEFT, false, false, true, IDC_BACK }, 18 { app::VKEY_LEFT, false, false, true, IDC_BACK },
19 { app::VKEY_BACK, false, false, false, IDC_BACK }, 19 { app::VKEY_BACK, false, false, false, IDC_BACK },
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 { app::VKEY_0, false, true, false, IDC_ZOOM_NORMAL }, 150 { app::VKEY_0, false, true, false, IDC_ZOOM_NORMAL },
151 { app::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL }, 151 { app::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL },
152 { app::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS }, 152 { app::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS },
153 { app::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS }, 153 { app::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS },
154 { app::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS }, 154 { app::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS },
155 }; 155 };
156 156
157 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap); 157 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap);
158 158
159 } // namespace browser 159 } // namespace browser
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698