Home | History | Annotate | Download | only in menu

Lines Matching defs:Menu

26 class VIEWS_EXPORT Menu {
32 // Classes implement this interface to tell the menu system more about each
44 // There can only be one default menu item.
47 // The string shown for the menu item.
51 // the shortcut text next to each menu item. If there is an accelerator
55 // The icon shown for the menu item.
58 // The number of items to show in the menu
64 // Shows the context menu with the specified id. This is invoked when the
65 // user does the appropriate gesture to show a context menu. The id
66 // identifies the id of the menu to show the context menu for.
69 // location to display the content menu at. In either case, |p| is in
71 virtual void ShowContextMenu(Menu* source,
80 // Notification that the menu is about to be popped up.
84 // Whether to create a right-to-left menu. The default implementation
88 // locales. However, subclasses can override this behavior so that the menu
89 // is a right-to-left menu only if the view's layout is right-to-left
112 // Different types of menu items
120 // Construct a Menu using the specified controller to determine command
122 // delegate A Menu::Delegate implementation that provides more
123 // information about the Menu presentation.
124 // anchor An alignment hint for the popup menu.
125 // owner The window that the menu is being brought up relative
128 Menu(Delegate* delegate, AnchorPoint anchor);
129 Menu();
130 virtual ~Menu();
132 static Menu* Create(Delegate* delegate,
136 // Creates a new menu with the contents of the system menu for the given
138 static Menu* GetSystemMenu(gfx::NativeWindow parent);
145 // Adds an item to this menu.
161 // Append a submenu to this menu.
162 // The returned pointer is owned by this menu.
163 Menu* AppendSubMenu(int item_id,
165 Menu* AddSubMenu(int index, int item_id, const base::string16& label);
167 // Append a submenu with an icon to this menu
168 // The returned pointer is owned by this menu.
169 // Unless the icon is empty, calling this function forces the Menu class
170 // to draw the menu, instead of relying on Windows.
171 Menu* AppendSubMenuWithIcon(int item_id,
174 virtual Menu* AddSubMenuWithIcon(int index,
179 // This is a convenience for standard text label menu items where the label
186 // This is a convenience for text label menu items where the label is
191 // Adds a separator to this menu
195 // Appends a menu item with an icon. This is for the menu item which
196 // needs an icon. Calling this function forces the Menu class to draw
197 // the menu, instead of relying on Windows.
210 // Sets menu label at specified index.
214 // also forces the Menu class to draw the menu, instead of relying on Windows.
218 // Shows the menu, blocks until the user dismisses the menu or selects an
223 // Cancels the menu.
226 // Returns the number of menu items.
230 // Returns the underlying menu handle
235 explicit Menu(Menu* parent);
247 // How this popup menu should be aligned relative to the point it is run at.
250 DISALLOW_COPY_AND_ASSIGN(Menu);