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_DELEGATE_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
6 #define VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 6 #define VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "ui/base/dragdrop/drag_drop_types.h" | 14 #include "ui/base/dragdrop/drag_drop_types.h" |
15 #include "ui/base/dragdrop/os_exchange_data.h" | 15 #include "ui/base/dragdrop/os_exchange_data.h" |
| 16 #include "ui/views/events/event.h" |
16 #include "views/controls/menu/menu_item_view.h" | 17 #include "views/controls/menu/menu_item_view.h" |
17 #include "views/events/event.h" | |
18 | 18 |
19 using ui::OSExchangeData; | 19 using ui::OSExchangeData; |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 | 22 |
23 class Font; | 23 class Font; |
24 | 24 |
25 } // namespace gfx | 25 } // namespace gfx |
26 | 26 |
27 namespace ui { | 27 namespace ui { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Invoked prior to a menu being shown. | 200 // Invoked prior to a menu being shown. |
201 virtual void WillShowMenu(MenuItemView* menu); | 201 virtual void WillShowMenu(MenuItemView* menu); |
202 | 202 |
203 // Invoked prior to a menu being hidden. | 203 // Invoked prior to a menu being hidden. |
204 virtual void WillHideMenu(MenuItemView* menu); | 204 virtual void WillHideMenu(MenuItemView* menu); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace views | 207 } // namespace views |
208 | 208 |
209 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 209 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
OLD | NEW |