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

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

Issue 3533001: Add SetMinimumWidth to Menu2 for chromeos. Removed LanguageSwitchModel::GetFirstLevelMenuWidth (Closed)
Patch Set: updated comment Created 10 years, 2 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
« no previous file with comments | « views/controls/menu/menu_2.cc ('k') | views/controls/menu/native_menu_gtk.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_WRAPPER_H_ 5 #ifndef VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_
6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ 6 #define VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "gfx/native_widget_types.h" 9 #include "gfx/native_widget_types.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // item was selected, the user navigated to a next or previous menu, or 57 // item was selected, the user navigated to a next or previous menu, or
58 // nothing. 58 // nothing.
59 virtual MenuAction GetMenuAction() const = 0; 59 virtual MenuAction GetMenuAction() const = 0;
60 60
61 // Add a listener to receive a callback when the menu opens. 61 // Add a listener to receive a callback when the menu opens.
62 virtual void AddMenuListener(MenuListener* listener) = 0; 62 virtual void AddMenuListener(MenuListener* listener) = 0;
63 63
64 // Remove a menu listener. 64 // Remove a menu listener.
65 virtual void RemoveMenuListener(MenuListener* listener) = 0; 65 virtual void RemoveMenuListener(MenuListener* listener) = 0;
66 66
67 // Sets the minimum width of the menu.
68 virtual void SetMinimumWidth(int width) = 0;
69
67 // Creates the appropriate instance of this wrapper for the current platform. 70 // Creates the appropriate instance of this wrapper for the current platform.
68 static MenuWrapper* CreateWrapper(Menu2* menu); 71 static MenuWrapper* CreateWrapper(Menu2* menu);
69 }; 72 };
70 73
71 } // namespace views 74 } // namespace views
72 75
73 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_ 76 #endif // VIEWS_CONTROLS_MENU_MENU_WRAPPER_H_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_2.cc ('k') | views/controls/menu/native_menu_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698