| 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   // Returns menu border. Applicable only to a root menu item. | 
|  | 207   virtual Border* GetMenuBorder(); | 
|  | 208 | 
|  | 209   // Returns menu background. Applicable only to a root menu item. | 
|  | 210   virtual Background* GetMenuBackground(); | 
| 205 }; | 211 }; | 
| 206 | 212 | 
| 207 }  // namespace views | 213 }  // namespace views | 
| 208 | 214 | 
| 209 #endif  // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 215 #endif  // UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 
| OLD | NEW | 
|---|