Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: chrome/browser/ui/gtk/accelerators_gtk.h

Issue 8695005: Move accelerator related files to ui/base/accelerators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/gtk/accelerators_gtk_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698