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

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

Issue 7344014: Makes ctrl-shift-o show the bookmark manager on linux and windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add windows as well Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/accelerators_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 { ui::VKEY_NUMPAD4, false, true, false, IDC_SELECT_TAB_3 }, 130 { ui::VKEY_NUMPAD4, false, true, false, IDC_SELECT_TAB_3 },
131 { ui::VKEY_5, false, true, false, IDC_SELECT_TAB_4 }, 131 { ui::VKEY_5, false, true, false, IDC_SELECT_TAB_4 },
132 { ui::VKEY_NUMPAD5, false, true, false, IDC_SELECT_TAB_4 }, 132 { ui::VKEY_NUMPAD5, false, true, false, IDC_SELECT_TAB_4 },
133 { ui::VKEY_6, false, true, false, IDC_SELECT_TAB_5 }, 133 { ui::VKEY_6, false, true, false, IDC_SELECT_TAB_5 },
134 { ui::VKEY_NUMPAD6, false, true, false, IDC_SELECT_TAB_5 }, 134 { ui::VKEY_NUMPAD6, false, true, false, IDC_SELECT_TAB_5 },
135 { ui::VKEY_7, false, true, false, IDC_SELECT_TAB_6 }, 135 { ui::VKEY_7, false, true, false, IDC_SELECT_TAB_6 },
136 { ui::VKEY_NUMPAD7, false, true, false, IDC_SELECT_TAB_6 }, 136 { ui::VKEY_NUMPAD7, false, true, false, IDC_SELECT_TAB_6 },
137 { ui::VKEY_8, false, true, false, IDC_SELECT_TAB_7 }, 137 { ui::VKEY_8, false, true, false, IDC_SELECT_TAB_7 },
138 { ui::VKEY_NUMPAD8, false, true, false, IDC_SELECT_TAB_7 }, 138 { ui::VKEY_NUMPAD8, false, true, false, IDC_SELECT_TAB_7 },
139 { ui::VKEY_B, true, true, false, IDC_SHOW_BOOKMARK_BAR }, 139 { ui::VKEY_B, true, true, false, IDC_SHOW_BOOKMARK_BAR },
140 { ui::VKEY_O, true, true, false, IDC_SHOW_BOOKMARK_MANAGER },
140 { ui::VKEY_J, false, true, false, IDC_SHOW_DOWNLOADS }, 141 { ui::VKEY_J, false, true, false, IDC_SHOW_DOWNLOADS },
141 { ui::VKEY_H, false, true, false, IDC_SHOW_HISTORY }, 142 { ui::VKEY_H, false, true, false, IDC_SHOW_HISTORY },
142 { ui::VKEY_F, false, false, true, IDC_SHOW_APP_MENU}, 143 { ui::VKEY_F, false, false, true, IDC_SHOW_APP_MENU},
143 { ui::VKEY_E, false, false, true, IDC_SHOW_APP_MENU}, 144 { ui::VKEY_E, false, false, true, IDC_SHOW_APP_MENU},
144 { ui::VKEY_ESCAPE, false, false, false, IDC_STOP }, 145 { ui::VKEY_ESCAPE, false, false, false, IDC_STOP },
145 { ui::VKEY_ESCAPE, true, false, false, IDC_TASK_MANAGER }, 146 { ui::VKEY_ESCAPE, true, false, false, IDC_TASK_MANAGER },
146 { ui::VKEY_U, false, true, false, IDC_VIEW_SOURCE }, 147 { ui::VKEY_U, false, true, false, IDC_VIEW_SOURCE },
147 { ui::VKEY_OEM_MINUS, false, true, false, IDC_ZOOM_MINUS }, 148 { ui::VKEY_OEM_MINUS, false, true, false, IDC_ZOOM_MINUS },
148 { ui::VKEY_OEM_MINUS, true, true, false, IDC_ZOOM_MINUS }, 149 { ui::VKEY_OEM_MINUS, true, true, false, IDC_ZOOM_MINUS },
149 { ui::VKEY_SUBTRACT, false, true, false, IDC_ZOOM_MINUS }, 150 { ui::VKEY_SUBTRACT, false, true, false, IDC_ZOOM_MINUS },
150 { ui::VKEY_0, false, true, false, IDC_ZOOM_NORMAL }, 151 { ui::VKEY_0, false, true, false, IDC_ZOOM_NORMAL },
151 { ui::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL }, 152 { ui::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL },
152 { ui::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS }, 153 { ui::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS },
153 { ui::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS }, 154 { ui::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS },
154 { ui::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS }, 155 { ui::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS },
155 }; 156 };
156 157
157 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap); 158 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap);
158 159
159 } // namespace browser 160 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/accelerators_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698