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_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_HOST_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 #include "ui/views/widget/widget.h" |
11 #include "views/controls/menu/native_menu_host_delegate.h" | 12 #include "views/controls/menu/native_menu_host_delegate.h" |
12 #include "views/widget/widget.h" | |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 class NativeWidget; | 16 class NativeWidget; |
17 class SubmenuView; | 17 class SubmenuView; |
18 class View; | 18 class View; |
19 class Widget; | 19 class Widget; |
20 | 20 |
21 // SubmenuView uses a MenuHost to house the SubmenuView. | 21 // SubmenuView uses a MenuHost to house the SubmenuView. |
22 // | 22 // |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // If true and capture is lost we don't notify the delegate. | 71 // If true and capture is lost we don't notify the delegate. |
72 bool ignore_capture_lost_; | 72 bool ignore_capture_lost_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(MenuHost); | 74 DISALLOW_COPY_AND_ASSIGN(MenuHost); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace views | 77 } // namespace views |
78 | 78 |
79 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ | 79 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
OLD | NEW |