Home | History | Annotate | Download | only in net_internals

Lines Matching refs:tab

6  * TabSwitcher is an implementation of View that handles tab switching.
9 * | Tab1 / Tab2 / Tab3 / .. | <- tab handle view
14 * | stacked tab content areas |
21 * @parameter {!View} tabHandleView the view that contains the tab handles.
26 document.getElementById(tabHandleDivId).classList.add('tab-switcher-view');
47 var tab = this.tabs_[i];
48 tab.contentView.setGeometry(left, contentTop, width, contentHeight);
63 * Adds a new tab (initially hidden).
66 * this tab. This is also the ID we use to identify the
67 * "tab".
68 * @param {!View} view The tab's actual contents.
71 var tab = new TabEntry(id, contentView);
72 this.tabs_.push(tab);
75 // Attach a click handler, used to switch to the tab.
77 tab.getTabHandleNode().onclick = function() {
83 tab.contentView.show(false);
87 * Returns the currently selected tab, or null if there is none.
92 var tab = this.tabs_[i];
93 if (tab.active)
94 return tab;
100 * Returns the tab with ID |id|.
105 var tab = this.tabs_[i];
106 if (tab.id == id)
107 return tab;
113 * Focuses on tab with ID |id|. |params| is a dictionary that will be
114 * passed to the tab's setParameters function, if it's non-null.
126 // Update data needed by newly active tab, as it may be
139 // Shows/hides the DOM node that is used to select the tab. Will not change
140 // the active tab.
142 var tab = this.findTabById(id);
143 setNodeDisplay(tab.getTabHandleNode(), isVisible);
163 * Returns the DOM node that is used to select the tab.