| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 MenuButton** button); | 195 MenuButton** button); |
| 196 | 196 |
| 197 // Returns the max width menus can grow to be. | 197 // Returns the max width menus can grow to be. |
| 198 virtual int GetMaxWidthForMenu(MenuItemView* menu); | 198 virtual int GetMaxWidthForMenu(MenuItemView* menu); |
| 199 | 199 |
| 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 |
| 206 // Creates and returns a new border for the menu, or NULL if no border is |
| 207 // needed. Caller owns the returned object. |
| 208 virtual Border* CreateMenuBorder(); |
| 209 |
| 210 // Creates and returns a new background for the menu, or NULL if no |
| 211 // background is needed. Caller owns the returned object. |
| 212 virtual Background* CreateMenuBackground(); |
| 205 }; | 213 }; |
| 206 | 214 |
| 207 } // namespace views | 215 } // namespace views |
| 208 | 216 |
| 209 #endif // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 217 #endif // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
| OLD | NEW |