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

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

Issue 6035010: chromeos: Add metrics for various accelerators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/ui/views/frame
Patch Set: fix bad merge Created 9 years, 11 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/browser.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | 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) 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_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 { app::VKEY_7, false, true, false, IDC_SELECT_TAB_6 }, 135 { app::VKEY_7, false, true, false, IDC_SELECT_TAB_6 },
136 { app::VKEY_NUMPAD7, false, true, false, IDC_SELECT_TAB_6 }, 136 { app::VKEY_NUMPAD7, false, true, false, IDC_SELECT_TAB_6 },
137 { app::VKEY_8, false, true, false, IDC_SELECT_TAB_7 }, 137 { app::VKEY_8, false, true, false, IDC_SELECT_TAB_7 },
138 { app::VKEY_NUMPAD8, false, true, false, IDC_SELECT_TAB_7 }, 138 { app::VKEY_NUMPAD8, false, true, false, IDC_SELECT_TAB_7 },
139 { app::VKEY_B, true, true, false, IDC_SHOW_BOOKMARK_BAR }, 139 { app::VKEY_B, true, true, false, IDC_SHOW_BOOKMARK_BAR },
140 { app::VKEY_J, false, true, false, IDC_SHOW_DOWNLOADS }, 140 { app::VKEY_J, false, true, false, IDC_SHOW_DOWNLOADS },
141 { app::VKEY_H, false, true, false, IDC_SHOW_HISTORY }, 141 { app::VKEY_H, false, true, false, IDC_SHOW_HISTORY },
142 { app::VKEY_F, false, false, true, IDC_SHOW_APP_MENU}, 142 { app::VKEY_F, false, false, true, IDC_SHOW_APP_MENU},
143 { app::VKEY_E, false, false, true, IDC_SHOW_APP_MENU}, 143 { app::VKEY_E, false, false, true, IDC_SHOW_APP_MENU},
144 { app::VKEY_ESCAPE, false, false, false, IDC_STOP }, 144 { app::VKEY_ESCAPE, false, false, false, IDC_STOP },
145 #if defined(OS_CHROMEOS)
146 { app::VKEY_F5, false, false, false, IDC_SYSTEM_OPTIONS },
147 #endif
148 { app::VKEY_ESCAPE, true, false, false, IDC_TASK_MANAGER }, 145 { app::VKEY_ESCAPE, true, false, false, IDC_TASK_MANAGER },
149 { app::VKEY_U, false, true, false, IDC_VIEW_SOURCE }, 146 { app::VKEY_U, false, true, false, IDC_VIEW_SOURCE },
150 { app::VKEY_OEM_MINUS, false, true, false, IDC_ZOOM_MINUS }, 147 { app::VKEY_OEM_MINUS, false, true, false, IDC_ZOOM_MINUS },
151 { app::VKEY_OEM_MINUS, true, true, false, IDC_ZOOM_MINUS }, 148 { app::VKEY_OEM_MINUS, true, true, false, IDC_ZOOM_MINUS },
152 { app::VKEY_SUBTRACT, false, true, false, IDC_ZOOM_MINUS }, 149 { app::VKEY_SUBTRACT, false, true, false, IDC_ZOOM_MINUS },
153 { app::VKEY_0, false, true, false, IDC_ZOOM_NORMAL }, 150 { app::VKEY_0, false, true, false, IDC_ZOOM_NORMAL },
154 { app::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL }, 151 { app::VKEY_NUMPAD0, false, true, false, IDC_ZOOM_NORMAL },
155 { app::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS }, 152 { app::VKEY_OEM_PLUS, false, true, false, IDC_ZOOM_PLUS },
156 { app::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS }, 153 { app::VKEY_OEM_PLUS, true, true, false, IDC_ZOOM_PLUS },
157 { app::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS }, 154 { app::VKEY_ADD, false, true, false, IDC_ZOOM_PLUS },
158 }; 155 };
159 156
160 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap); 157 const size_t kAcceleratorMapLength = arraysize(kAcceleratorMap);
161 158
162 } // namespace browser 159 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698