| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 UI_BASE_X_X11_MENU_LIST_H_ | 5 #ifndef UI_BASE_X_X11_MENU_LIST_H_ |
| 6 #define UI_BASE_X_X11_MENU_LIST_H_ | 6 #define UI_BASE_X_X11_MENU_LIST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "ui/base/ui_base_export.h" | 11 #include "ui/base/ui_base_export.h" |
| 12 #include "ui/gfx/x/x11_types.h" | 12 #include "ui/gfx/x/x11_types.h" |
| 13 | 13 |
| 14 typedef unsigned long Atom; | |
| 15 | |
| 16 // A process wide singleton cache for X menus. | 14 // A process wide singleton cache for X menus. |
| 17 template <typename T> struct DefaultSingletonTraits; | 15 template <typename T> struct DefaultSingletonTraits; |
| 18 | 16 |
| 19 namespace ui { | 17 namespace ui { |
| 20 | 18 |
| 21 // Keeps track of created and destroyed top level menu windows. | 19 // Keeps track of created and destroyed top level menu windows. |
| 22 class UI_BASE_EXPORT XMenuList { | 20 class UI_BASE_EXPORT XMenuList { |
| 23 public: | 21 public: |
| 24 static XMenuList* GetInstance(); | 22 static XMenuList* GetInstance(); |
| 25 | 23 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 39 ~XMenuList(); | 37 ~XMenuList(); |
| 40 | 38 |
| 41 std::vector<XID> menus_; | 39 std::vector<XID> menus_; |
| 42 ::Atom menu_type_atom_; | 40 ::Atom menu_type_atom_; |
| 43 DISALLOW_COPY_AND_ASSIGN(XMenuList); | 41 DISALLOW_COPY_AND_ASSIGN(XMenuList); |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace ui | 44 } // namespace ui |
| 47 | 45 |
| 48 #endif // UI_BASE_X_X11_MENU_LIST_H_ | 46 #endif // UI_BASE_X_X11_MENU_LIST_H_ |
| OLD | NEW |