Lines Matching refs:if
55 // The left icon's width. 0 if no icon.
60 if (attrs.type == 'separator') {
62 } else if (attrs.type == 'command' ||
75 if (!attrs.visible) {
86 if (selected) {
98 if (this.attrs.type == 'submenu') {
100 } else if (this.attrs.type != 'separator' &&
130 if (attrs.font) {
136 if (attrs.accel) {
144 if (attrs.type == 'submenu') {
153 if (leftIconWidth <= 0) {
161 if (attrs.type == 'radio') {
165 } else if (attrs.icon) {
167 } else if (attrs.type == 'check' && attrs.checked) {
170 if (url) {
215 * Pointer to a submenu currently shown, if any.
221 * True if this menu is root.
305 if (mnemonic && enableMnemonic) {
309 if (!mnemonic) {
311 } else if (enableMnemonic) {
360 * select the 1st selectable item if none is selected.
363 if (this.current_) {
378 if (item.attrs.enabled) {
389 * 1) If the selected menu is submenu, and that submenu is not yet opeend,
391 * if there is a submenu opened, it will be closed before new submenu is
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
404 if (this.current_ != item) {
405 if (this.current_ != null)
412 if (item.attrs.type == 'submenu') {
413 if (this.submenuShown_ != item) {
423 } else if (this.submenuShown_) {
435 * Open submenu {@code item}. It does nothing if the submenu is
441 if (this.submenuShown_ != item) {
474 if (this.current_) {
489 if (item) {
504 if (item.attrs.enabled && event.clientX != 0 && event.clientY != 0) {
510 if (this.current_) {
519 if (window.innerHeight < 2) {
525 // Do not use screen width to determin if we need scroll buttons
528 if (this.scrollHeight > window.innerHeight && this.scrollEnabled) {
556 * Move the selection to parent menu if the current menu is
561 if (!this.isRoot) {
562 if (this.current_) {
570 * Move the selection to submenu if the currently selected
576 if (current && current.attrs.type == 'submenu') {
583 * Find a next selectable item. If nothing is selected, the 1st
584 * selectable item will be chosen. Returns null if nothing is
593 if (this.current_) {
601 if (item.attrs.enabled && item.attrs.type != 'separator' &&