OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_gtk.h" | 5 #include "chrome/browser/ui/views/accelerator_table_gtk.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/keycodes/keyboard_codes.h" | 9 #include "ui/base/keycodes/keyboard_codes.h" |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 #else | 81 #else |
82 { ui::VKEY_F4, false, false, false, IDC_FULLSCREEN }, | 82 { ui::VKEY_F4, false, false, false, IDC_FULLSCREEN }, |
83 #endif | 83 #endif |
84 #if !defined(OS_CHROMEOS) | 84 #if !defined(OS_CHROMEOS) |
85 { ui::VKEY_F1, false, false, false, IDC_HELP_PAGE }, | 85 { ui::VKEY_F1, false, false, false, IDC_HELP_PAGE }, |
86 #else | 86 #else |
87 { ui::VKEY_OEM_2, false, true, false, IDC_HELP_PAGE }, | 87 { ui::VKEY_OEM_2, false, true, false, IDC_HELP_PAGE }, |
88 { ui::VKEY_OEM_2, true, true, false, IDC_HELP_PAGE }, | 88 { ui::VKEY_OEM_2, true, true, false, IDC_HELP_PAGE }, |
89 #endif | 89 #endif |
90 { ui::VKEY_I, true, true, false, IDC_DEV_TOOLS }, | 90 { ui::VKEY_I, true, true, false, IDC_DEV_TOOLS }, |
| 91 { ui::VKEY_F12 false, false, false, IDC_DEV_TOOLS }, |
91 { ui::VKEY_J, true, true, false, IDC_DEV_TOOLS_CONSOLE }, | 92 { ui::VKEY_J, true, true, false, IDC_DEV_TOOLS_CONSOLE }, |
92 { ui::VKEY_C, true, true, false, IDC_DEV_TOOLS_INSPECT }, | 93 { ui::VKEY_C, true, true, false, IDC_DEV_TOOLS_INSPECT }, |
93 { ui::VKEY_N, true, true, false, IDC_NEW_INCOGNITO_WINDOW }, | 94 { ui::VKEY_N, true, true, false, IDC_NEW_INCOGNITO_WINDOW }, |
94 { ui::VKEY_T, false, true, false, IDC_NEW_TAB }, | 95 { ui::VKEY_T, false, true, false, IDC_NEW_TAB }, |
95 { ui::VKEY_N, false, true, false, IDC_NEW_WINDOW }, | 96 { ui::VKEY_N, false, true, false, IDC_NEW_WINDOW }, |
96 { ui::VKEY_O, false, true, false, IDC_OPEN_FILE }, | 97 { ui::VKEY_O, false, true, false, IDC_OPEN_FILE }, |
97 { ui::VKEY_P, false, true, false, IDC_PRINT}, | 98 { ui::VKEY_P, false, true, false, IDC_PRINT}, |
98 { ui::VKEY_R, false, true, false, IDC_RELOAD }, | 99 { ui::VKEY_R, false, true, false, IDC_RELOAD }, |
99 { ui::VKEY_R, true, true, false, IDC_RELOAD_IGNORING_CACHE }, | 100 { ui::VKEY_R, true, true, false, IDC_RELOAD_IGNORING_CACHE }, |
100 #if !defined(OS_CHROMEOS) | 101 #if !defined(OS_CHROMEOS) |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 { ui::VKEY_0, false, true, false, IDC_ZOOM_NORMAL }, | 149 { ui::VKEY_0, false, true, false, IDC_ZOOM_NORMAL }, |
149 { ui::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL }, | 150 { ui::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL }, |
150 { ui::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS }, | 151 { ui::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS }, |
151 { ui::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS }, | 152 { ui::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS }, |
152 { ui::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS }, | 153 { ui::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS }, |
153 }; | 154 }; |
154 | 155 |
155 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap); | 156 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap); |
156 | 157 |
157 } // namespace browser | 158 } // namespace browser |
OLD | NEW |