Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: ui/views/controls/menu/menu_delegate.h

Issue 10532171: Added support for icon views (view used instead of icon in a menu item). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added support for icon views (view used instead of icon in a menu item). Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_delegate.cc » ('j') | ui/views/controls/menu/menu_item_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698