OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
6 #define UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "ui/base/dragdrop/drag_drop_types.h" | 13 #include "ui/base/dragdrop/drag_drop_types.h" |
14 #include "ui/base/dragdrop/os_exchange_data.h" | 14 #include "ui/base/dragdrop/os_exchange_data.h" |
15 #include "ui/views/controls/menu/menu_item_view.h" | 15 #include "ui/views/controls/menu/menu_item_view.h" |
16 | 16 |
17 using ui::OSExchangeData; | 17 using ui::OSExchangeData; |
18 | 18 |
19 namespace gfx { | 19 namespace gfx { |
20 class Font; | 20 class Font; |
21 } | 21 } |
22 | 22 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 int* left_margin, | 224 int* left_margin, |
225 int* right_margin) const; | 225 int* right_margin) const; |
226 // Returns true if the labels should reserve additional spacing for e.g. | 226 // Returns true if the labels should reserve additional spacing for e.g. |
227 // submenu indicators at the end of the line. | 227 // submenu indicators at the end of the line. |
228 virtual bool ShouldReserveSpaceForSubmenuIndicator() const; | 228 virtual bool ShouldReserveSpaceForSubmenuIndicator() const; |
229 }; | 229 }; |
230 | 230 |
231 } // namespace views | 231 } // namespace views |
232 | 232 |
233 #endif // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 233 #endif // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
OLD | NEW |