| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "ui/base/models/accelerator_gtk.h" | 10 #include "ui/base/accelerators/accelerator_gtk.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, ui::AcceleratorGtk> > AcceleratorGtkList; | 16 typedef std::vector<std::pair<int, ui::AcceleratorGtk> > AcceleratorGtkList; |
| 17 typedef AcceleratorGtkList::const_iterator const_iterator; | 17 typedef AcceleratorGtkList::const_iterator const_iterator; |
| 18 | 18 |
| 19 // Returns the singleton instance. | 19 // Returns the singleton instance. |
| 20 static AcceleratorsGtk* GetInstance(); | 20 static AcceleratorsGtk* GetInstance(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 AcceleratorsGtk(); | 31 AcceleratorsGtk(); |
| 32 ~AcceleratorsGtk(); | 32 ~AcceleratorsGtk(); |
| 33 | 33 |
| 34 typedef base::hash_map<int, ui::AcceleratorGtk> AcceleratorGtkMap; | 34 typedef base::hash_map<int, ui::AcceleratorGtk> AcceleratorGtkMap; |
| 35 AcceleratorGtkMap primary_accelerators_; | 35 AcceleratorGtkMap primary_accelerators_; |
| 36 | 36 |
| 37 AcceleratorGtkList all_accelerators_; | 37 AcceleratorGtkList all_accelerators_; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ | 40 #endif // CHROME_BROWSER_UI_GTK_ACCELERATORS_GTK_H_ |
| OLD | NEW |