| OLD | NEW |
| 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 VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
| 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "views/widget/root_view.h" | 9 #include "ui/views/widget/root_view.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 | 12 |
| 13 class MenuController; | 13 class MenuController; |
| 14 class SubmenuView; | 14 class SubmenuView; |
| 15 | 15 |
| 16 // MenuHostRootView is the RootView of the window showing the menu. | 16 // MenuHostRootView is the RootView of the window showing the menu. |
| 17 // SubmenuView's scroll view is added as a child of MenuHostRootView. | 17 // SubmenuView's scroll view is added as a child of MenuHostRootView. |
| 18 // MenuHostRootView forwards relevant events to the MenuController. | 18 // MenuHostRootView forwards relevant events to the MenuController. |
| 19 // | 19 // |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Whether mouse dragged/released should be forwarded to the MenuController. | 42 // Whether mouse dragged/released should be forwarded to the MenuController. |
| 43 bool forward_drag_to_menu_controller_; | 43 bool forward_drag_to_menu_controller_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView); | 45 DISALLOW_COPY_AND_ASSIGN(MenuHostRootView); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace views | 48 } // namespace views |
| 49 | 49 |
| 50 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ | 50 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ |
| OLD | NEW |