Home
last modified time | relevance | path

Searched refs:selected_tab_index (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/ui/views/controls/tabbed_pane/
Dtabbed_pane.cc214 int selected_tab_index = tabbed_pane_->selected_tab_index(); in OnPaint() local
215 if (selected_tab_index >= 0) { in OnPaint()
216 Tab* selected_tab = tabbed_pane_->GetTabAt(selected_tab_index); in OnPaint()
258 return selected_tab_index() < 0 ? in GetSelectedTab()
259 NULL : GetTabAt(selected_tab_index())->contents(); in GetSelectedTab()
274 if (selected_tab_index() < 0) in AddTabAtIndex()
282 if (index == selected_tab_index()) in SelectTabAt()
285 if (selected_tab_index() >= 0) in SelectTabAt()
286 GetTabAt(selected_tab_index())->SetSelected(false); in SelectTabAt()
349 int next_tab_index = (selected_tab_index() + increment) % tab_count; in AcceleratorPressed()
Dtabbed_pane_unittest.cc77 EXPECT_EQ(0, tabbed_pane->selected_tab_index()); in TEST_F()
83 EXPECT_EQ(i, tabbed_pane->selected_tab_index()); in TEST_F()
90 EXPECT_NE(0, tabbed_pane->selected_tab_index()); in TEST_F()
Dtabbed_pane.h32 int selected_tab_index() const { return selected_tab_index_; } in selected_tab_index() function
/external/chromium_org/chrome/browser/sessions/
Dtab_restore_service_helper.cc123 window->selected_tab_index = delegate->GetSelectedIndex(); in BrowserClosing()
151 window->selected_tab_index = in BrowserClosing()
153 window->selected_tab_index); in BrowserClosing()
252 static_cast<int>(tab_i) == window->selected_tab_index, in RestoreEntryById()
524 window->selected_tab_index = in ValidateWindow()
525 std::max(0, std::min(window->selected_tab_index, in ValidateWindow()
533 if (i < window->selected_tab_index) in ValidateWindow()
534 window->selected_tab_index--; in ValidateWindow()
535 else if (i == window->selected_tab_index) in ValidateWindow()
536 window->selected_tab_index = 0; in ValidateWindow()
Dpersistent_tab_restore_service.cc49 int32 selected_tab_index; member
158 int selected_tab_index,
387 int selected_tab = window.selected_tab_index; in ScheduleCommandsForWindow()
478 int selected_tab_index, in CreateWindowCommand() argument
486 payload.selected_tab_index = selected_tab_index; in CreateWindowCommand()
614 payload.selected_tab_index = old_payload.selected_tab_index; in CreateEntriesFromCommands()
630 current_window->selected_tab_index = payload.selected_tab_index; in CreateEntriesFromCommands()
807 window->selected_tab_index = in ConvertSessionWindowToWindow()
808 std::min(session_window->selected_tab_index, in ConvertSessionWindowToWindow()
Dsession_service_unittest.cc201 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
254 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
286 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
314 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
315 ASSERT_EQ(0, windows[1]->selected_tab_index); in TEST_F()
368 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
401 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
479 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
518 ASSERT_EQ(0, windows[0]->selected_tab_index); in TEST_F()
562 ASSERT_EQ(0, windows[tabbed_index]->selected_tab_index); in TEST_F()
[all …]
Dsession_types.cc61 : selected_tab_index(-1), in SessionWindow()
74 sync_data.set_selected_tab_index(selected_tab_index); in ToSyncData()
Dsession_restore.cc612 int selected_tab_index = std::max( in RestoreForeignSession() local
614 std::min((*i)->selected_tab_index, in RestoreForeignSession()
617 selected_tab_index); in RestoreForeignSession()
888 int selected_tab_index = in ProcessSessionWindows() local
891 std::min((*i)->selected_tab_index, in ProcessSessionWindows()
896 selected_tab_to_activate = selected_tab_index; in ProcessSessionWindows()
900 selected_tab_index); in ProcessSessionWindows()
964 int selected_tab_index) { in RestoreTabsToBrowser() argument
973 bool is_selected_tab = (i == selected_tab_index); in RestoreTabsToBrowser()
1090 void ShowBrowser(Browser* browser, int selected_tab_index) { in ShowBrowser() argument
[all …]
Dtab_restore_service.cc45 TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) { in Window()
Dsession_types.h130 int selected_tab_index; member
Dtab_restore_service.h119 int selected_tab_index; member
Dpersistent_tab_restore_service_unittest.cc391 EXPECT_EQ(0, window->selected_tab_index); in TEST_F()
449 EXPECT_EQ(0, window->selected_tab_index); in TEST_F()
492 EXPECT_EQ(0, window->selected_tab_index); in TEST_F()
537 EXPECT_EQ(0, window->selected_tab_index); in TEST_F()
Dsession_service.cc948 if ((*j)->tab_visual_index == (*i)->selected_tab_index) { in UpdateSelectedTabIndex()
953 (*i)->selected_tab_index = new_index; in UpdateSelectedTabIndex()
1241 GetWindow(payload.id, windows)->selected_tab_index = payload.index; in CreateTabsAndWindows()
/external/chromium_org/ui/views/examples/
Dtabbed_pane_example.cc79 tabbed_pane_->selected_tab_index()); in PrintStatus()
/external/chromium_org/chrome/browser/sync/glue/
Dsession_sync_test_helper.cc71 ASSERT_EQ(0, win_ptr->selected_tab_index); in VerifySyncedSession()
/external/chromium_org/chrome/browser/extensions/api/sessions/
Dsessions_api.cc167 window.selected_tab_index).release())); in CreateWindowModel()
280 window.selected_tab_index).release())); in CreateWindowModel()
/external/chromium_org/sync/protocol/
Dsession_specifics.proto43 optional int32 selected_tab_index = 2 [default = -1]; field
Dproto_value_conversions.cc187 SET_INT32(selected_tab_index); in SessionWindowToValue()
/external/chromium_org/chrome/browser/sync/sessions/
Dsessions_sync_manager.cc739 session_window->selected_tab_index = specifics.selected_tab_index(); in BuildSyncedSessionFromSpecifics()
Dsessions_sync_manager_unittest.cc350 ASSERT_EQ(1, session->windows[0]->selected_tab_index); in TEST_F()