OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "ui/views/controls/menu/menu_wrapper.h" | 16 #include "ui/views/controls/menu/menu_wrapper.h" |
17 #include "ui/views/views_export.h" | 17 #include "ui/views/views_export.h" |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 class MenuModel; | 20 class MenuModel; |
21 } | 21 } |
22 | 22 |
23 namespace views { | 23 namespace views { |
24 | 24 |
25 // A Windows implementation of MenuWrapper. | 25 // A Windows implementation of MenuWrapper. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // has a menu open, because our hook function that receives keyboard | 160 // has a menu open, because our hook function that receives keyboard |
161 // events doesn't have a mechanism to get a user data pointer. | 161 // events doesn't have a mechanism to get a user data pointer. |
162 static NativeMenuWin* open_native_menu_win_; | 162 static NativeMenuWin* open_native_menu_win_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(NativeMenuWin); | 164 DISALLOW_COPY_AND_ASSIGN(NativeMenuWin); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace views | 167 } // namespace views |
168 | 168 |
169 #endif // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ | 169 #endif // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_WIN_H_ |
OLD | NEW |