Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / bubble / bubble_accelerators_gtk.cc
blob3e1e566d913256186f74808b3c7455595b1cf541
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/gtk/bubble/bubble_accelerators_gtk.h"
7 #include <gdk/gdkkeysyms.h>
9 namespace {
11 // Listing of the accelerators that are either handled or forwarded by
12 // bubbles. Any accelerators that are not explicitly listed here
13 // are ignored and silently dropped. This table is expected to change
14 // after discussion over which accelerators should be addressed in
15 // bubbles. For a complete listing of accelerators that are used
16 // in chrome consult accelerators_gtk.cc
17 const BubbleAcceleratorGtk kAcceleratorMap[] = {
18 // Tab/window controls.
19 { GDK_w, GDK_CONTROL_MASK },
21 // Navigation / toolbar buttons.
22 { GDK_Escape, GdkModifierType(0) }
25 } // namespace
27 // static
28 BubbleAcceleratorsGtk::const_iterator BubbleAcceleratorsGtk::begin() {
29 return &kAcceleratorMap[0];
32 // static
33 BubbleAcceleratorsGtk::const_iterator BubbleAcceleratorsGtk::end() {
34 return &kAcceleratorMap[arraysize(kAcceleratorMap)];