| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/drag_drop_types.h" | 12 #include "app/drag_drop_types.h" |
| 13 #include "app/os_exchange_data.h" | |
| 14 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "ui/base/dragdrop/os_exchange_data.h" |
| 15 #include "views/controls/menu/controller.h" | 15 #include "views/controls/menu/controller.h" |
| 16 #include "views/controls/menu/menu_item_view.h" | 16 #include "views/controls/menu/menu_item_view.h" |
| 17 #include "views/event.h" | 17 #include "views/event.h" |
| 18 | 18 |
| 19 using ui::OSExchangeData; |
| 20 |
| 19 namespace views { | 21 namespace views { |
| 20 | 22 |
| 21 class DropTargetEvent; | 23 class DropTargetEvent; |
| 22 class MenuButton; | 24 class MenuButton; |
| 23 | 25 |
| 24 // MenuDelegate -------------------------------------------------------------- | 26 // MenuDelegate -------------------------------------------------------------- |
| 25 | 27 |
| 26 // Delegate for a menu. This class is used as part of MenuItemView, see it | 28 // Delegate for a menu. This class is used as part of MenuItemView, see it |
| 27 // for details. | 29 // for details. |
| 28 // TODO(sky): merge this with menus::MenuModel. | 30 // TODO(sky): merge this with menus::MenuModel. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 virtual int GetMaxWidthForMenu() { | 216 virtual int GetMaxWidthForMenu() { |
| 215 // NOTE: this needs to be large enough to accommodate the wrench menu with | 217 // NOTE: this needs to be large enough to accommodate the wrench menu with |
| 216 // big fonts. | 218 // big fonts. |
| 217 return 800; | 219 return 800; |
| 218 } | 220 } |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace views | 223 } // namespace views |
| 222 | 224 |
| 223 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 225 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
| OLD | NEW |