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

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

Issue 235025: Use windows keycodes under linux (and all non-windows platforms). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_ 5 #ifndef CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_
6 #define CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_ 6 #define CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <stdio.h>
9 9
10 // This contains the list of accelerators shared between the Linux Gtk and 10 // This contains the list of accelerators for the Linux toolkit_view
11 // toolkit_view implementation. 11 // implementation.
12 namespace browser { 12 namespace browser {
13 13
14 struct AcceleratorMapping { 14 struct AcceleratorMapping {
15 guint keyval; 15 int keycode;
16 bool shift_pressed;
17 bool ctrl_pressed;
18 bool alt_pressed;
16 int command_id; 19 int command_id;
17 GdkModifierType modifier_type;
18 }; 20 };
19 21
20 // The list of accelerators. 22 // The list of accelerators.
21 extern const AcceleratorMapping kAcceleratorMap[]; 23 extern const AcceleratorMapping kAcceleratorMap[];
22 24
23 // The numbers of elements in kAcceleratorMap. 25 // The numbers of elements in kAcceleratorMap.
24 extern const size_t kAcceleratorMapLength; 26 extern const size_t kAcceleratorMapLength;
25 } 27 }
26 28
27 #endif // CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_ 29 #endif // CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/ui_controls_linux.cc ('k') | chrome/browser/views/accelerator_table_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698