Home
last modified time | relevance | path

Searched refs:active_index (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium/chrome/browser/
Dbrowser_commands_unittest.cc33 ASSERT_EQ(0, browser()->active_index()); in TEST_F()
37 ASSERT_EQ(1, browser()->active_index()); in TEST_F()
41 ASSERT_EQ(0, browser()->active_index()); in TEST_F()
45 ASSERT_EQ(2, browser()->active_index()); in TEST_F()
115 EXPECT_EQ(0, browser()->active_index()); in TEST_F()
137 EXPECT_EQ(1, browser()->active_index()); in TEST_F()
144 EXPECT_EQ(1, browser()->active_index()); in TEST_F()
159 ASSERT_EQ(3, browser()->active_index()); in TEST_F()
166 ASSERT_EQ(4, browser()->active_index()); in TEST_F()
Dbrowser_keyevents_browsertest.cc250 ASSERT_EQ(tab_index, browser()->active_index()); in TestKeyEvent()
358 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
443 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
488 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
585 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
680 ASSERT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
750 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
787 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
828 int tab_index = browser()->active_index(); in IN_PROC_BROWSER_TEST_F()
Dbrowser_browsertest.cc213 EXPECT_EQ(0, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
222 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
Daeropeek_manager.cc1144 (index == tab_strip_model->active_index()));
/external/chromium/chrome/browser/tabs/
Dtab_strip_model_order_controller.cc33 if (transition == PageTransition::LINK && tabstrip_->active_index() != -1) { in DetermineInsertionIndex()
38 return tabstrip_->active_index() + delta; in DetermineInsertionIndex()
47 opener, tabstrip_->active_index()); in DetermineInsertionIndex()
50 opener, tabstrip_->active_index()); in DetermineInsertionIndex()
55 return tabstrip_->active_index() + delta; in DetermineInsertionIndex()
102 int selected_index = tabstrip_->active_index(); in DetermineNewSelectedIndex()
Dtab_strip_model_unittest.cc527 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
538 EXPECT_EQ(1, tabstrip.active_index()); in TEST_F()
569 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
571 EXPECT_EQ(1, tabstrip.active_index()); in TEST_F()
573 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
583 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
790 EXPECT_EQ(1, tabstrip.active_index()); in TEST_F()
795 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
808 EXPECT_EQ(tabstrip.count() - 1, tabstrip.active_index()); in TEST_F()
850 EXPECT_EQ(0, tabstrip.active_index()); in TEST_F()
[all …]
Dtab_strip_model.cc183 if (active_index() == index) { in ReplaceTabContentsAt()
185 TabSelectedAt(old_contents, new_contents, active_index(), in ReplaceTabContentsAt()
222 int old_active = active_index(); in DetachTabContentsAt()
230 NotifyTabSelectedIfChanged(removed_contents, active_index(), false); in DetachTabContentsAt()
247 (active_index() == TabStripSelectionModel::kUnselectedIndex) ? in ActivateTabAt()
258 active_index(), user_gesture)); in ActivateTabAt()
314 return GetTabContentsAt(active_index()); in GetSelectedTabContents()
571 int old_active = active_index(); in ExtendSelectionTo()
579 int old_active = active_index(); in ToggleSelectionAt()
599 int old_active = active_index(); in AddSelectionFromAnchorTo()
[all …]
Dtab_strip_model.h135 int active_index() const { return selection_model_.active(); } in active_index() function
/external/chromium/chrome/browser/ui/
Dbrowser_navigator_browsertest.cc110 EXPECT_EQ(2, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
123 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
137 EXPECT_EQ(0, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
148 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
592 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
606 EXPECT_EQ(2, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
624 EXPECT_EQ(2, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
638 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
656 EXPECT_EQ(2, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
670 EXPECT_EQ(1, browser()->active_index()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dbrowser_tab_restore_service_delegate.cc24 return browser_->active_index(); in GetSelectedIndex()
Dbrowser.cc961 int Browser::active_index() const { in active_index() function in Browser
962 return tab_handler_->GetTabStripModel()->active_index(); in active_index()
1116 tab_handler_->GetTabStripModel()->active_index(), in ReplaceRestoredTab()
1485 DuplicateContentsAt(active_index()); in DuplicateTab()
1514 int tab_strip_index = tab_handler_->GetTabStripModel()->active_index(); in ConvertPopupToTabbedBrowser()
2798 session_id(), tab_handler_->GetTabStripModel()->active_index()); in TabSelectedAt()
2817 (index == tab_handler_->GetTabStripModel()->active_index())); in TabReplacedAt()
3722 non_app_window && CanDuplicateContentsAt(active_index())); in UpdateCommandsForTabState()
4253 index == tab_handler_->GetTabStripModel()->active_index()) { in TabDetachedAtImpl()
Dbrowser_navigator.cc98 int start_index = std::max(0, params->browser->active_index()); in GetIndexOfSingletonTab()
Dbrowser.h344 int active_index() const;
/external/chromium/chrome/browser/ui/webui/
Dmediaplayer_browsertest.cc33 (*it)->GetTabContentsAt((*it)->active_index())->GetURL(); in IsPlayerVisible()
49 (*it)->GetTabContentsAt((*it)->active_index())->GetURL(); in IsPlaylistVisible()
Dbug_report_ui.cc159 "#" + base::IntToString(browser->active_index()); in ShowHtmlBugReportView()
/external/chromium/chrome/browser/printing/
Dprint_preview_tab_controller_unittest.cc104 EXPECT_EQ(preview_tab_2_index, browser()->active_index()); in TEST_F()
112 EXPECT_EQ(preview_tab_1_index, browser()->active_index()); in TEST_F()
/external/chromium/chrome/browser/chromeos/
Dwm_overview_controller.cc111 void SaveCurrentTab() { original_selected_tab_ = browser_->active_index(); } in SaveCurrentTab()
211 UpdateSelectedIndex(browser_->active_index()); in TabInsertedAt()
216 UpdateSelectedIndex(browser_->active_index()); in TabDetachedAt()
231 UpdateSelectedIndex(browser_->active_index()); in TabMoved()
308 UpdateSelectedIndex(browser_->active_index()); in RestoreOriginalSelectedTab()
/external/chromium/chrome/browser/chromeos/frame/
Dbrowser_view.cc257 params.push_back(browser()->active_index()); in Init()
283 params.push_back(browser()->active_index()); in ShowInternal()
/external/chromium/chrome/browser/ui/views/tabs/
Dbrowser_tab_strip_controller.cc155 TabInsertedAt(model_->GetTabContentsAt(i), i, model_->active_index() == i); in InitFromModel()
195 return model_->active_index() == model_index; in IsActiveTab()
/external/chromium/chrome/browser/extensions/
Dextension_tabs_module.cc132 tab_strip && tab_index == tab_strip->active_index()); in CreateTabValue()
637 tab_strip->active_index())); in RunImpl()
883 if (tab_strip->active_index() != tab_index) { in RunImpl()
Dextension_browser_event_router.cc480 TabInsertedAt(new_contents, index, tab_strip_model->active_index() == index); in TabReplacedAt()
/external/chromium/chrome/browser/ui/cocoa/applescript/
Dwindow_applescript.mm108 int activeTabIndex = browser_->active_index() + 1;
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_browsertest.cc372 ASSERT_EQ(0, browser()->active_index()); in BrowserAcceleratorsTest()
378 ASSERT_EQ(1, browser()->active_index()); in BrowserAcceleratorsTest()
/external/chromium/chrome/browser/sessions/
Dsession_restore.cc205 if (browser && browser->active_index() != tab_index) { in LoadNextTab()
/external/chromium/chrome/browser/ui/gtk/
Dbrowser_titlebar.cc766 int index = tabstrip_model->active_index(); in OnScroll()

12