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_HOST_ROOT_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/views/widget/root_view.h" | 9 #include "ui/views/widget/root_view.h" |
9 | 10 |
10 namespace views { | 11 namespace views { |
11 | 12 |
12 class MenuController; | 13 class MenuController; |
13 class SubmenuView; | 14 class SubmenuView; |
14 | 15 |
15 // MenuHostRootView is the RootView of the window showing the menu. | 16 // MenuHostRootView is the RootView of the window showing the menu. |
16 // SubmenuView's scroll view is added as a child of MenuHostRootView. | 17 // SubmenuView's scroll view is added as a child of MenuHostRootView. |
17 // MenuHostRootView forwards relevant events to the MenuController. | 18 // MenuHostRootView forwards relevant events to the MenuController. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 50 |
50 // The SubmenuView we contain. | 51 // The SubmenuView we contain. |
51 SubmenuView* submenu_; | 52 SubmenuView* submenu_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView); | 54 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace views | 57 } // namespace views |
57 | 58 |
58 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ | 59 #endif // UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
OLD | NEW |