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

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
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698