Home | History | Annotate | Download | only in sessions

Lines Matching refs:tabs

137   // have Tabs with the |id|.
143 std::vector<TabRestoreService::Tab>::iterator j = window->tabs.begin();
144 for ( ; j != window->tabs.end(); ++j) {
145 // If the ID matches one of this window's tabs, remove it from the list.
147 window->tabs.erase(j);
241 // into the vector, which will give all tabs in a window the same ID.
243 window->tabs.push_back(Tab());
247 PopulateTab(&(window->tabs[entry_index]),
251 if (window->tabs[entry_index].navigations.empty()) {
252 window->tabs.erase(window->tabs.begin() + entry_index);
254 window->tabs[entry_index].browser_id = delegate->GetSessionID().id();
258 if (window->tabs.size() == 1) {
262 AddEntry(new Tab(window->tabs[0]), true, true);
263 } else if (!window->tabs.empty()) {
265 std::min(static_cast<int>(window->tabs.size() - 1),
276 // Mark all the tabs as closed so that we don't attempt to restore them.
336 // new browser into which we restore the tabs.
350 for (size_t tab_i = 0; tab_i < window->tabs.size(); ++tab_i) {
351 const Tab& tab = window->tabs[tab_i];
365 // All the window's tabs had the same former browser_id.
366 if (window->tabs[0].has_browser()) {
367 UpdateTabBrowserIDs(window->tabs[0].browser_id,
373 for (std::vector<Tab>::iterator tab_i = window->tabs.begin();
374 tab_i != window->tabs.end(); ++tab_i) {
378 window->tabs.erase(tab_i);
381 if (!window->tabs.size()) {
385 // Update the browser ID of the rest of the tabs in the window so if
390 for (std::vector<Tab>::iterator tab_j = window->tabs.begin();
391 tab_j != window->tabs.end(); ++tab_j) {
426 // The previous session crashed and wasn't restored. Load the tabs/windows
435 // Request the tabs closed in the last session. If the last session crashed,
436 // this won't contain the tabs/window that were open at the point of the
553 std::vector<Tab>& tabs = static_cast<Window*>(*i)->tabs;
554 for (std::vector<Tab>::iterator j = tabs.begin();
555 j != tabs.end(); ++j) {
566 DCHECK(!window.tabs.empty());
570 for (size_t i = 0; i < window.tabs.size(); ++i) {
571 if (GetSelectedNavigationIndexToPersist(window.tabs[i]) != -1) {
578 return; // No tabs to persist.
586 for (size_t i = 0; i < window.tabs.size(); ++i) {
587 int selected_index = GetSelectedNavigationIndexToPersist(window.tabs[i]);
589 ScheduleCommandsForTab(window.tabs[i], selected_index);
717 // Closed tabs always go to the end.
736 // If non-null we're processing the tabs of this window.
738 // If > 0, we've gotten a window command but not all the tabs yet.
747 // tabs in a window.
765 // tabs in a window.
820 current_window->tabs.resize(current_window->tabs.size() + 1);
821 current_tab = &(current_window->tabs.back());
894 // new browser into which we restore the tabs.
958 for (std::vector<Tab>::iterator tab_i = window->tabs.begin();
959 tab_i != window->tabs.end();) {
961 tab_i = window->tabs.erase(tab_i);
965 if (!window->tabs.empty()) {
968 static_cast<int>(window->tabs.size() - 1)));
1002 // Previous session tabs go first.
1022 for (size_t i = 0; i < session_window->tabs.size(); ++i) {
1023 if (!session_window->tabs[i]->navigations.empty()) {
1024 window->tabs.resize(window->tabs.size() + 1);
1025 Tab& tab = window->tabs.back();
1026 tab.pinned = session_window->tabs[i]->pinned;
1027 tab.navigations.swap(session_window->tabs[i]->navigations);
1029 session_window->tabs[i]->current_navigation_index;
1030 tab.extension_app_id = session_window->tabs[i]->extension_app_id;
1034 if (window->tabs.empty())
1039 static_cast<int>(window->tabs.size() - 1));
1047 // Still waiting on previous session or previous tabs.
1082 // Make it so we rewrite all the tabs. We need to do this otherwise we won't