| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdktypes.h> | 9 #include <gdk/gdk.h> |
| 10 #include <glib.h> | |
| 11 | 10 |
| 12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 13 | 12 |
| 14 struct BubbleAcceleratorGtk { | 13 struct BubbleAcceleratorGtk { |
| 15 guint keyval; | 14 guint keyval; |
| 16 GdkModifierType modifier_type; | 15 GdkModifierType modifier_type; |
| 17 }; | 16 }; |
| 18 | 17 |
| 19 // This class contains a list of accelerators that a BubbleGtk is expected to | 18 // This class contains a list of accelerators that a BubbleGtk is expected to |
| 20 // either catch and respond to or catch and forward to the root browser window. | 19 // either catch and respond to or catch and forward to the root browser window. |
| 21 // This list is expected to be a subset of the accelerators that are handled by | 20 // This list is expected to be a subset of the accelerators that are handled by |
| 22 // the root browser window, but the specific accelerators to be handled has not | 21 // the root browser window, but the specific accelerators to be handled has not |
| 23 // yet been fully specified. | 22 // yet been fully specified. |
| 24 class BubbleAcceleratorsGtk { | 23 class BubbleAcceleratorsGtk { |
| 25 public: | 24 public: |
| 26 typedef const BubbleAcceleratorGtk* const_iterator; | 25 typedef const BubbleAcceleratorGtk* const_iterator; |
| 27 | 26 |
| 28 static const_iterator begin(); | 27 static const_iterator begin(); |
| 29 static const_iterator end(); | 28 static const_iterator end(); |
| 30 | 29 |
| 31 private: | 30 private: |
| 32 DISALLOW_IMPLICIT_CONSTRUCTORS(BubbleAcceleratorsGtk); | 31 DISALLOW_IMPLICIT_CONSTRUCTORS(BubbleAcceleratorsGtk); |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ | 34 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_ACCELERATORS_GTK_H_ |
| OLD | NEW |