Chromium Code Reviews| 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. | |
|
sky
2012/06/26 21:42:13
Creates and returns a new border for the menu, or
sky
2012/06/26 21:42:52
You should name these to match: CreateMenuBorder a
yefimt
2012/06/26 22:50:19
Done.
| |
| 207 virtual Border* GetMenuBorder(); | |
| 208 | |
| 209 // Returns menu background. Applicable only to a root menu item. | |
|
sky
2012/06/26 21:42:13
Creates and returns a new background for the menu,
yefimt
2012/06/26 22:50:19
Done.
| |
| 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 |