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_MENU_ITEM_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "ui/base/models/menu_separator_types.h" | 15 #include "ui/base/models/menu_separator_types.h" |
16 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
17 #include "ui/views/controls/menu/menu_config.h" | 17 #include "ui/views/controls/menu/menu_config.h" |
18 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
19 | 19 |
20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
21 #include <windows.h> | 21 #include <windows.h> |
22 | 22 |
23 #include "ui/native_theme/native_theme.h" | 23 #include "ui/native_theme/native_theme.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace gfx { | 26 namespace gfx { |
27 class Font; | 27 class Font; |
28 } | 28 } |
29 | 29 |
30 namespace ui { | |
31 class MenuModel; | |
32 class NativeTheme; | |
33 } | |
34 | |
35 namespace views { | 30 namespace views { |
36 | 31 |
37 namespace internal { | 32 namespace internal { |
38 class MenuRunnerImpl; | 33 class MenuRunnerImpl; |
39 } | 34 } |
40 | 35 |
41 class MenuController; | 36 class MenuController; |
42 class MenuDelegate; | 37 class MenuDelegate; |
43 class SubmenuView; | 38 class SubmenuView; |
44 | 39 |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // If set to false, the right margin will be removed for menu lines | 525 // If set to false, the right margin will be removed for menu lines |
531 // containing other elements. | 526 // containing other elements. |
532 bool use_right_margin_; | 527 bool use_right_margin_; |
533 | 528 |
534 DISALLOW_COPY_AND_ASSIGN(MenuItemView); | 529 DISALLOW_COPY_AND_ASSIGN(MenuItemView); |
535 }; | 530 }; |
536 | 531 |
537 } // namespace views | 532 } // namespace views |
538 | 533 |
539 #endif // UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ | 534 #endif // UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ |
OLD | NEW |