OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 const gfx::Point& screen_point, | 181 const gfx::Point& screen_point, |
182 MenuItemView::AnchorPosition* anchor, | 182 MenuItemView::AnchorPosition* anchor, |
183 bool* has_mnemonics, | 183 bool* has_mnemonics, |
184 MenuButton** button); | 184 MenuButton** button); |
185 | 185 |
186 // Returns the max width menus can grow to be. | 186 // Returns the max width menus can grow to be. |
187 virtual int GetMaxWidthForMenu(MenuItemView* menu); | 187 virtual int GetMaxWidthForMenu(MenuItemView* menu); |
188 | 188 |
189 // Invoked prior to a menu being shown. | 189 // Invoked prior to a menu being shown. |
190 virtual void WillShowMenu(MenuItemView* menu); | 190 virtual void WillShowMenu(MenuItemView* menu); |
| 191 |
| 192 // Invoked prior to a menu being hidden. |
| 193 virtual void WillHideMenu(MenuItemView* menu); |
191 }; | 194 }; |
192 | 195 |
193 } // namespace views | 196 } // namespace views |
194 | 197 |
195 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ | 198 #endif // VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ |
OLD | NEW |