Home | History | Annotate | Download | only in resources

Lines Matching refs:Menu

20  * @param {number} index The index of menu item to activate in menu model.
39 * Decorates the menu item element.
42 this.className = 'menu-item';
47 * @param {Menu} menu A {@code Menu} object to which this menu item
49 * @param {Object} attrs JSON object that represents this menu items
50 * properties. This is created from menu model in C code. See
54 init: function(menu, attrs, model) {
57 this.menu_ = menu;
74 menu.appendChild(this);
81 * Changes the selection state of the menu item.
95 * Activate the menu item.
122 this.className = 'menu-item ' + attrs.type;
126 label.className = 'menu-label';
182 * Menu class.
184 var Menu = cr.ui.define('div');
186 Menu.prototype = {
196 * Currently selected menu item.
221 * True if this menu is root.
246 * Decorates the menu element.
253 * Initialize the menu.
258 // List of menu items
276 var menu = this;
279 menu.autoScroll_(-SCROLL_TICK_PX);
283 menu.autoScroll_(SCROLL_TICK_PX);
294 * @param {MenuItem} item The menu item to be activated by mnemonic
333 * @param {Object} attrs The menu item's properties passed from C++.
347 this.innerHTML = ''; // remove menu items
374 var menu = this;
376 menu.onMouseover_(event, item);
380 menu.onClick_(event, item);
389 * 1) If the selected menu is submenu, and that submenu is not yet opeend,
393 * 2) If the selected menu is submenu, and that submenu is already opened,
395 * 3) If the selected menu is not submenu, cancel all timers and start
411 var menu = this;
417 menu.openSubmenu(item);
428 menu.closeSubmenu_(item);
520 // menu window is not visible yet. just hide buttons.
556 * Move the selection to parent menu if the current menu is
571 * menu is a submenu.
627 var menu = this;
630 menu.autoScroll_(tick);