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