| OLD | NEW |
| 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_ |
| OLD | NEW |