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 "views/controls/menu/native_menu_host_delegate.h" | 11 #include "views/controls/menu/native_menu_host_delegate.h" |
12 #include "views/widget/widget.h" | 12 #include "views/widget/widget.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 class NativeMenuHost; | |
17 class NativeWidget; | 16 class NativeWidget; |
18 class SubmenuView; | 17 class SubmenuView; |
19 class View; | 18 class View; |
20 class Widget; | 19 class Widget; |
21 | 20 |
22 // SubmenuView uses a MenuHost to house the SubmenuView. | 21 // SubmenuView uses a MenuHost to house the SubmenuView. |
23 // | 22 // |
24 // SubmenuView owns the MenuHost. When SubmenuView is done with the MenuHost | 23 // SubmenuView owns the MenuHost. When SubmenuView is done with the MenuHost |
25 // |DestroyMenuHost| is invoked. The one exception to this is if the native | 24 // |DestroyMenuHost| is invoked. The one exception to this is if the native |
26 // OS destroys the widget out from under us, in which case |MenuHostDestroyed| | 25 // OS destroys the widget out from under us, in which case |MenuHostDestroyed| |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 70 |
72 // 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. |
73 bool ignore_capture_lost_; | 72 bool ignore_capture_lost_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(MenuHost); | 74 DISALLOW_COPY_AND_ASSIGN(MenuHost); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace views | 77 } // namespace views |
79 | 78 |
80 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ | 79 #endif // VIEWS_CONTROLS_MENU_MENU_HOST_H_ |
OLD | NEW |