| 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_ACCELERATORS_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
| 9 #include "ui/base/accelerators/accelerator.h" | 9 #include "ui/base/accelerators/accelerator.h" |
| 10 | 10 |
| 11 template <typename T> struct DefaultSingletonTraits; | 11 template <typename T> struct DefaultSingletonTraits; |
| 12 | 12 |
| 13 class AcceleratorsGtk { | 13 class AcceleratorsGtk { |
| 14 public: | 14 public: |
| 15 typedef std::vector<std::pair<int, ui::Accelerator> > AcceleratorList; | 15 typedef std::vector<std::pair<int, ui::Accelerator> > AcceleratorList; |
| 16 typedef AcceleratorList::const_iterator const_iterator; | 16 typedef AcceleratorList::const_iterator const_iterator; |
| 17 | 17 |
| 18 // Returns the singleton instance. | 18 // Returns the singleton instance. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 AcceleratorsGtk(); | 30 AcceleratorsGtk(); |
| 31 ~AcceleratorsGtk(); | 31 ~AcceleratorsGtk(); |
| 32 | 32 |
| 33 typedef base::hash_map<int, ui::Accelerator> AcceleratorMap; | 33 typedef base::hash_map<int, ui::Accelerator> AcceleratorMap; |
| 34 AcceleratorMap primary_accelerators_; | 34 AcceleratorMap primary_accelerators_; |
| 35 | 35 |
| 36 AcceleratorList all_accelerators_; | 36 AcceleratorList all_accelerators_; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 #endif // CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ | 39 #endif // CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| OLD | NEW |