| OLD | NEW |
| 1 // Copyright (c) 2010 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_GTK_ACCELERATORS_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_ACCELERATORS_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/menus/accelerator_gtk.h" | 9 #include "app/menus/accelerator_gtk.h" |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| 11 | 11 |
| 12 template <typename T> struct DefaultSingletonTraits; | 12 template <typename T> struct DefaultSingletonTraits; |
| 13 | 13 |
| 14 class AcceleratorsGtk { | 14 class AcceleratorsGtk { |
| 15 public: | 15 public: |
| 16 typedef std::vector<std::pair<int, menus::AcceleratorGtk> > | 16 typedef std::vector<std::pair<int, menus::AcceleratorGtk> > |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 friend struct DefaultSingletonTraits<AcceleratorsGtk>; | 35 friend struct DefaultSingletonTraits<AcceleratorsGtk>; |
| 36 | 36 |
| 37 AcceleratorsGtk(); | 37 AcceleratorsGtk(); |
| 38 ~AcceleratorsGtk(); | 38 ~AcceleratorsGtk(); |
| 39 | 39 |
| 40 base::hash_map<int, menus::AcceleratorGtk> primary_accelerators_; | 40 base::hash_map<int, menus::AcceleratorGtk> primary_accelerators_; |
| 41 | 41 |
| 42 AcceleratorGtkList all_accelerators_; | 42 AcceleratorGtkList all_accelerators_; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // CHROME_BROWSER_GTK_ACCELERATORS_GTK_H_ | 45 #endif // CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| OLD | NEW |