/external/chromium_org/chrome/common/extensions/docs/examples/extensions/speak_selection/ |
D | tabs.js | 10 var tabs = windows[i].tabs; 11 for (var j = 0; j < tabs.length; j++) { 12 chrome.tabs.sendRequest( 13 tabs[j].id, 23 var tabs = windows[i].tabs; 24 for (var j = 0; j < tabs.length; j++) { 25 chrome.tabs.executeScript( 26 tabs[j].id, 28 chrome.tabs.executeScript( 29 tabs[j].id,
|
/external/chromium_org/ui/webui/resources/css/ |
D | tabs.css | 10 tabs { selector 18 /* New users of tabs.css should add 'new-style-tabs' to the class list of any 19 * 'tabs' or 'tabpanels' elements. 24 tabs.new-style-tabs { 31 tabs > * { 46 tabs.new-style-tabs > * { 57 tabs > :not([selected]) { 61 tabs.new-style-tabs > :not([selected]) { 66 tabs > :not([selected]):hover { 70 tabs.new-style-tabs > :not([selected]):hover { [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/tabs/inspector/ |
D | tabs_api.js | 5 tabs = {}; 27 tabs = {}; 33 for (var j = 0; j < windowList[i].tabs.length; j++) { 34 tabIds[tabIds.length] = windowList[i].tabs[j].id; 35 tabs[windowList[i].tabs[j].id] = windowList[i].tabs[j]; 56 chrome.tabs.update(id, updateTabData(id)); 70 chrome.tabs.move(id, moveTabData(id)); 95 chrome.tabs.create(args); 104 chrome.tabs.update(tabIds[i], updateTabData(tabIds[i])); 115 chrome.tabs.move(tabIds[i], moveTabData(tabIds[i])); [all …]
|
/external/chromium_org/chrome/test/functional/ |
D | special_tabs.py | 204 tabs = self.special_url_tabs.copy() 207 tabs.update(self.chromeos_special_url_tabs) 210 tabs.update(self.linux_special_url_tabs) 213 tabs.update(self.mac_special_url_tabs) 216 tabs.update(self.win_special_url_tabs) 219 if key in tabs: 220 del tabs[key] 223 tabs.update(self.google_special_url_tabs) 226 tabs.update(self.google_chromeos_special_url_tabs) 229 tabs.update(self.google_linux_special_url_tabs) [all …]
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
D | browser_unittest.py | 56 self.assertEquals(1, len(b.tabs)) 59 assert b.tabs[0].url 66 t = b.tabs[0] 85 existing_tab = b.tabs[0] 86 self.assertEquals(1, len(b.tabs)) 89 new_tab = b.tabs.New() 90 self.assertEquals(2, len(b.tabs)) 95 self.assertEquals(1, len(b.tabs)) 100 b.tabs[0].Navigate(b.http_server.UrlOf('blank.html')) 101 b.tabs[0].WaitForDocumentReadyStateToBeInteractiveOrBetter() [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/eventPage/basic/ |
D | background.js | 11 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 12 lastTabId = tabs[0].id; 13 chrome.tabs.sendMessage(lastTabId, "Background page started."); 45 chrome.tabs.create({url: "http://google.com"}, function(tab) { 46 chrome.tabs.executeScript(tab.id, {file: "content.js"}, function() { 56 chrome.tabs.create({url: "http://www.google.com/"}); 85 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 92 chrome.tabs.sendMessage(lastTabId, "Background page unloaded.");
|
/external/chromium_org/chrome/browser/extensions/api/tabs/ |
D | tabs_windows_api.cc | 20 this, api::tabs::OnCreated::kEventName); in TabsWindowsAPI() 22 this, api::tabs::OnUpdated::kEventName); in TabsWindowsAPI() 24 this, api::tabs::OnMoved::kEventName); in TabsWindowsAPI() 26 this, api::tabs::OnSelectionChanged::kEventName); in TabsWindowsAPI() 28 this, api::tabs::OnActiveChanged::kEventName); in TabsWindowsAPI() 30 this, api::tabs::OnActivated::kEventName); in TabsWindowsAPI() 32 this, api::tabs::OnHighlightChanged::kEventName); in TabsWindowsAPI() 34 this, api::tabs::OnHighlighted::kEventName); in TabsWindowsAPI() 36 this, api::tabs::OnDetached::kEventName); in TabsWindowsAPI() 38 this, api::tabs::OnAttached::kEventName); in TabsWindowsAPI() [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/messaging/timer/ |
D | popup.js | 19 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 22 var tab = tabs[0]; 23 chrome.tabs.sendRequest(tab.id, {counter: 1}, function handler(response) { 25 chrome.tabs.sendRequest(tab.id, {counter: response.counter}, handler); 39 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 43 var port = chrome.tabs.connect(tabs[0].id);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/processes/show_tabs/ |
D | popup.js | 8 chrome.tabs.query({currentWindow: true, active: true}, function(tabs) { argument 9 var current = currentWindow.tabs.filter(function(tab) { 28 var tabs = []; 31 for (var j = 0; j < windowList[i].tabs.length; j++) { 32 var tab = windowList[i].tabs[j]; 34 tabs.push(tab); 40 tabs.forEach(function(tab) { 67 chrome.tabs.update(tabId, { selected: true });
|
/external/chromium_org/chrome/browser/sessions/ |
D | tab_restore_service_helper.cc | 129 window->tabs.push_back(Tab()); in BrowserClosing() 133 PopulateTab(&(window->tabs[entry_index]), in BrowserClosing() 137 if (window->tabs[entry_index].navigations.empty()) { in BrowserClosing() 138 window->tabs.erase(window->tabs.begin() + entry_index); in BrowserClosing() 140 window->tabs[entry_index].browser_id = delegate->GetSessionID().id(); in BrowserClosing() 144 if (window->tabs.size() == 1 && window->app_name.empty()) { in BrowserClosing() 148 AddEntry(new Tab(window->tabs[0]), true, true); in BrowserClosing() 149 } else if (!window->tabs.empty()) { in BrowserClosing() 151 std::min(static_cast<int>(window->tabs.size() - 1), in BrowserClosing() 244 for (size_t tab_i = 0; tab_i < window->tabs.size(); ++tab_i) { in RestoreEntryById() [all …]
|
D | session_service_unittest.cc | 125 EXPECT_EQ(1U, windows[0]->tabs.size()); in CreateAndWriteSessionWithOneTab() 129 SessionTab* tab = windows[0]->tabs[0]; in CreateAndWriteSessionWithOneTab() 196 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 199 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 249 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 251 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 280 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 282 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 309 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 310 ASSERT_EQ(1U, windows[1]->tabs.size()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/sessions/ |
D | sessions_api.cc | 47 namespace tabs = api::tabs; 70 scoped_ptr<tabs::Tab> CreateTabModelHelper( in CreateTabModelHelper() 78 scoped_ptr<tabs::Tab> tab_struct(new tabs::Tab); in CreateTabModelHelper() 104 scoped_ptr<std::vector<linked_ptr<tabs::Tab> > > tabs, in CreateWindowModelHelper() 109 window_struct->tabs = tabs.Pass(); in CreateWindowModelHelper() 121 scoped_ptr<tabs::Tab> tab, in CreateSessionModelHelper() 142 scoped_ptr<tabs::Tab> SessionsGetRecentlyClosedFunction::CreateTabModel( in CreateTabModel() 157 DCHECK(!window.tabs.empty()); in CreateWindowModel() 159 scoped_ptr<std::vector<linked_ptr<tabs::Tab> > > tabs( in CreateWindowModel() local 160 new std::vector<linked_ptr<tabs::Tab> >); in CreateWindowModel() [all …]
|
/external/chromium/chrome/browser/sessions/ |
D | tab_restore_service.cc | 143 std::vector<TabRestoreService::Tab>::iterator j = window->tabs.begin(); in RemoveEntryByID() 144 for ( ; j != window->tabs.end(); ++j) { in RemoveEntryByID() 147 window->tabs.erase(j); in RemoveEntryByID() 243 window->tabs.push_back(Tab()); in BrowserClosing() 247 PopulateTab(&(window->tabs[entry_index]), in BrowserClosing() 251 if (window->tabs[entry_index].navigations.empty()) { in BrowserClosing() 252 window->tabs.erase(window->tabs.begin() + entry_index); in BrowserClosing() 254 window->tabs[entry_index].browser_id = delegate->GetSessionID().id(); in BrowserClosing() 258 if (window->tabs.size() == 1) { in BrowserClosing() 262 AddEntry(new Tab(window->tabs[0]), true, true); in BrowserClosing() [all …]
|
D | session_service_unittest.cc | 116 EXPECT_EQ(1U, windows[0]->tabs.size()); in CreateAndWriteSessionWithOneTab() 120 SessionTab* tab = windows[0]->tabs[0]; in CreateAndWriteSessionWithOneTab() 163 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 166 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 216 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 218 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 246 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 248 SessionTab* tab = windows[0]->tabs[0]; in TEST_F() 285 ASSERT_EQ(1U, windows[0]->tabs.size()); in TEST_F() 286 ASSERT_EQ(1U, windows[1]->tabs.size()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/resources/options/ |
D | subpages_tab_controls.css | 5 .subpages-nav-tabs .tab { 10 .subpages-nav-tabs .active-tab { 20 /* To avoid tabs changing size when they are clicked and their labels become 25 .subpages-nav-tabs .active-tab-label, 26 .subpages-nav-tabs .tab-label:hover { 30 .subpages-nav-tabs .tab-label { 36 html[dir=rtl] .subpages-nav-tabs .tab-label { 40 .subpages-nav-tabs .active-tab-label, 41 .subpages-nav-tabs .active-tab .tab-label { 48 .subpages-nav-tabs .active-tab .active-tab-label { [all …]
|
/external/chromium_org/chrome/common/extensions/docs/static/js/ |
D | tabs.js | 35 var tabs = e.target.parentNode; 36 if (!tabs || tabs.tagName !== 'TABS') 39 var headers = tabs.getElementsByTagName('header'), 40 contents = tabs.getElementsByTagName('content'), 41 tabGroup = tabs.getAttribute("data-group"), 96 var tabs = document.getElementsByTagName('tabs'); 97 for (var i=0; i<tabs.length; i++) { 98 initTabPane(tabs[i]);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/i18n/cld/ |
D | background.js | 7 chrome.tabs.detectLanguage(null, function(language) { 15 chrome.tabs.onUpdated.addListener(function(tabId, props) { 20 chrome.tabs.onSelectionChanged.addListener(function(tabId, props) { 25 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 26 selectedId = tabs[0].id;
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/cookies/ |
D | background.js | 13 var tabs = windows[i].tabs; 14 for (var j in tabs) { 15 var tab = tabs[j]; 23 chrome.tabs.update(existing_tab.id, {"selected":true}); 25 chrome.tabs.create({"url":url, "selected":true});
|
/external/chromium/chrome/browser/resources/options/ |
D | subpages_tab_controls.css | 7 .subpages-nav-tabs .tab { 12 .subpages-nav-tabs .active-tab { 21 /* To avoid tabs changing size when they are clicked and their labels become 26 .subpages-nav-tabs .active-tab-label { 30 .subpages-nav-tabs .tab-label { 36 html[dir=rtl] .subpages-nav-tabs .tab-label { 40 .subpages-nav-tabs .active-tab-label, 41 .subpages-nav-tabs .active-tab .tab-label { 48 .subpages-nav-tabs .active-tab .active-tab-label { 52 .subpages-nav-tabs {
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/windows/merge_windows/ |
D | background.js | 14 chrome.tabs.getAllInWindow(targetWindow.id, getTabs); 17 function getTabs(tabs) { argument 18 tabCount = tabs.length; 31 var numTabs = win.tabs.length; 34 var tab = win.tabs[j]; 36 chrome.tabs.move(tab.id,
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/mappy/ |
D | background.js | 11 chrome.tabs.sendRequest(tabId, {}, function(address) { 30 chrome.tabs.onUpdated.addListener(function(tabId, change, tab) { 36 chrome.tabs.onSelectionChanged.addListener(function(tabId, info) { 42 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 43 updateAddress(tabs[0].id);
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/benchmark/ |
D | background.js | 99 function show_options(tabs) { argument 100 var tab = tabs[0]; 104 var tabs = chrome.extension.getViews({"type": "tab"}); 105 if (tabs && tabs.length) { 108 if (tabs[0].$suburl != undefined) { 109 tabs[0].setUrl(testUrl); 112 chrome.tabs.getAllInWindow(null, function(all) { 115 chrome.tabs.update(all[i].id, {selected: true}); 121 chrome.tabs.create({"url":"options.html"}); 191 chrome.tabs.remove(benchmarkWindow.id); [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | RecentlyClosedBridge.java | 50 List<RecentlyClosedTab> tabs, int id, String title, String url) { in pushTab() argument 52 tabs.add(tab); in pushTab() 91 List<RecentlyClosedTab> tabs = new ArrayList<RecentlyClosedTab>(); in getRecentlyClosedTabs() local 92 boolean received = nativeGetRecentlyClosedTabs(mNativeRecentlyClosedTabsBridge, tabs, in getRecentlyClosedTabs() 94 return received ? tabs : null; in getRecentlyClosedTabs() 120 long nativeRecentlyClosedTabsBridge, List<RecentlyClosedTab> tabs, int maxTabCount); in nativeGetRecentlyClosedTabs() argument
|
/external/chromium/chrome/browser/ui/views/tabs/ |
D | base_tab_strip.cc | 320 std::vector<BaseTab*> tabs; in MaybeStartDrag() local 329 tabs.push_back(other_tab); in MaybeStartDrag() 331 size_to_selected = GetSizeNeededForTabs(tabs); in MaybeStartDrag() 339 DCHECK(!tabs.empty()); in MaybeStartDrag() 340 DCHECK(std::find(tabs.begin(), tabs.end(), tab) != tabs.end()); in MaybeStartDrag() 341 drag_controller_->Init(this, tab, tabs, gfx::Point(x, y), in MaybeStartDrag() 472 void BaseTabStrip::StartedDraggingTabs(const std::vector<BaseTab*>& tabs) { in StartedDraggingTabs() argument 479 for (size_t i = 0; i < tabs.size(); ++i) { in StartedDraggingTabs() 480 tabs[i]->set_dragging(true); in StartedDraggingTabs() 481 bounds_animator_.StopAnimatingView(tabs[i]); in StartedDraggingTabs() [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/tabs/pin/ |
D | background.js | 8 chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { argument 10 var current = tabs[0] 11 chrome.tabs.update(current.id, {'pinned': !current.pinned});
|