Lines Matching refs:tab
9 var current = currentWindow.tabs.filter(function(tab) {
10 return tab.active;
14 var outputDiv = document.getElementById("tab-list");
32 var tab = windowList[i].tabs[j];
33 if (tab.id != selectedTab.id) {
34 tabs.push(tab);
39 // Display tab in list if it is in the same process
40 tabs.forEach(function(tab) {
41 chrome.processes.getProcessIdForTab(tab.id,
44 displayTabInfo(tab.windowId, tab, outputDiv);
52 // Print a link to a given tab
53 function displayTabInfo(windowId, tab, outputDiv) {
54 if (tab.favIconUrl != undefined) {
55 outputDiv.innerHTML += "<img src='chrome://favicon/" + tab.url + "'>\n";
58 "<b><a href='#' onclick='showTab(window, " + windowId + ", " + tab.id +
59 ")'>" + tab.title + "</a></b><br>\n" +
60 "<i>" + tab.url + "</i><br>\n";
63 // Bring the selected tab to the front