summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/accelerator_table_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/accelerator_table_gtk.h')
-rw-r--r--chrome/browser/views/accelerator_table_gtk.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/browser/views/accelerator_table_gtk.h b/chrome/browser/views/accelerator_table_gtk.h
new file mode 100644
index 0000000..830fdb2
--- /dev/null
+++ b/chrome/browser/views/accelerator_table_gtk.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_
+#define CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_
+
+#include <gtk/gtk.h>
+
+// This contains the list of accelerators shared between the Linux Gtk and
+// toolkit_view implementation.
+namespace browser {
+
+ struct AcceleratorMapping {
+ guint keyval;
+ int command_id;
+ GdkModifierType modifier_type;
+ };
+
+ // The list of accelerators.
+ extern const AcceleratorMapping kAcceleratorMap[];
+
+ // The numbers of elements in kAcceleratorMap.
+ extern const size_t kAcceleratorMapLength;
+}
+
+#endif // CHROME_BROWSER_VIEWS_ACCELERATOR_TABLE_GTK_H_