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

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

Issue 7044016: Replace ButtonDropDown menu implementation (Menu2) with MenuItemView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One last little style fix. Created 9 years, 6 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 | « views/controls/menu/menu_controller.cc ('k') | 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) 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
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_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_controller.cc ('k') | views/controls/menu/menu_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698