tabstrip 1177 chrome/browser/extensions/api/tabs/tabs_api.cc TabStripModel* tabstrip = browser->tab_strip_model(); tabstrip 1185 chrome/browser/extensions/api/tabs/tabs_api.cc if (!HighlightTab(tabstrip, &selection, &active_index, tab_indices[i])) tabstrip 1190 chrome/browser/extensions/api/tabs/tabs_api.cc if (!HighlightTab(tabstrip, tabstrip 1212 chrome/browser/extensions/api/tabs/tabs_api.cc bool TabsHighlightFunction::HighlightTab(TabStripModel* tabstrip, tabstrip 1217 chrome/browser/extensions/api/tabs/tabs_api.cc if (!tabstrip->ContainsIndex(index)) { tabstrip 132 chrome/browser/extensions/api/tabs/tabs_api.h bool HighlightTab(TabStripModel* tabstrip, tabstrip 353 chrome/browser/ui/gtk/browser_titlebar.cc browser_window_->tabstrip()->widget()); tabstrip 365 chrome/browser/ui/gtk/browser_titlebar.cc browser_window_->tabstrip()->widget(), FALSE, FALSE, 0); tabstrip 692 chrome/browser/ui/gtk/browser_titlebar.cc browser_window_->tabstrip()->SetVerticalOffset(vertical_offset); tabstrip 510 chrome/browser/ui/gtk/browser_toolbar_gtk.cc window_->tabstrip()->GetTabStripOriginForWidget(widget); tabstrip 1005 chrome/browser/ui/gtk/browser_window_gtk.cc return !tabstrip()->IsDragSessionActive() && tabstrip 1006 chrome/browser/ui/gtk/browser_window_gtk.cc !tabstrip()->IsActiveDropTarget(); tabstrip 219 chrome/browser/ui/gtk/browser_window_gtk.h TabStripGtk* tabstrip() const { return tabstrip_.get(); } tabstrip 936 chrome/browser/ui/gtk/find_bar_gtk.cc bar->window_->tabstrip()->GetTabStripOriginForWidget(widget); tabstrip 375 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabStripGtk* other_tabstrip = browser->tabstrip(); tabstrip 383 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabStripGtk* tabstrip, const gfx::Point& screen_point) const { tabstrip 387 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc ui::GetWidgetScreenBounds(tabstrip->tabstrip_.get()); tabstrip 396 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc return tabstrip; tabstrip 510 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabStripGtk* tabstrip, const gfx::Point& screen_point) { tabstrip 511 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc return screen_point - ui::GetWidgetScreenOffset(tabstrip->tabstrip_.get()); tabstrip 622 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabStripGtk* tabstrip, WebContents* web_contents) { tabstrip 623 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc int index = tabstrip->model()->GetIndexOfWebContents(web_contents); tabstrip 624 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc return index == TabStripModel::kNoTab ? NULL : tabstrip->GetTabAt(index); tabstrip 628 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabStripGtk* tabstrip) { tabstrip 633 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc TabGtk* tab = GetTabMatchingDraggedContents(tabstrip, tabstrip 825 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc GtkWidget* tabstrip = source_tabstrip_->widget(); tabstrip 826 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc GtkWindow* window = platform_util::GetTopLevel(tabstrip); tabstrip 831 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc GtkWidget* tabstrip = source_tabstrip_->widget(); tabstrip 832 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc GtkWindow* window = platform_util::GetTopLevel(tabstrip); tabstrip 131 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h TabStripGtk* GetTabStripIfItContains(TabStripGtk* tabstrip, tabstrip 141 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h gfx::Point ConvertScreenPointToTabStripPoint(TabStripGtk* tabstrip, tabstrip 159 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h TabGtk* GetTabMatchingDraggedContents(TabStripGtk* tabstrip, tabstrip 164 chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h std::vector<TabGtk*> GetTabsMatchingDraggedContents(TabStripGtk* tabstrip); tabstrip 146 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc TabAnimation(TabStripGtk* tabstrip, Type type) tabstrip 147 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : tabstrip_(tabstrip), tabstrip 179 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc static double GetCurrentTabWidth(TabStripGtk* tabstrip, tabstrip 182 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc TabGtk* tab = tabstrip->GetTabAt(index); tabstrip 188 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc tabstrip->GetCurrentTabWidths(&unselected, &selected); tabstrip 283 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc InsertTabAnimation(TabStripGtk* tabstrip, int index) tabstrip 284 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, INSERT), tabstrip 286 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int tab_count = tabstrip->GetTabCount(); tabstrip 287 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int end_mini_count = tabstrip->GetMiniTabCount(); tabstrip 343 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc RemoveTabAnimation(TabStripGtk* tabstrip, int index, WebContents* contents) tabstrip 344 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, REMOVE), tabstrip 346 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int tab_count = tabstrip->GetTabCount(); tabstrip 347 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int start_mini_count = tabstrip->GetMiniTabCount(); tabstrip 429 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc MoveTabAnimation(TabStripGtk* tabstrip, int tab_a_index, int tab_b_index) tabstrip 430 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, MOVE), tabstrip 486 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc explicit ResizeLayoutAnimation(TabStripGtk* tabstrip) tabstrip 487 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, RESIZE) { tabstrip 488 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int tab_count = tabstrip->GetTabCount(); tabstrip 489 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int mini_tab_count = tabstrip->GetMiniTabCount(); tabstrip 548 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc MiniTabAnimation(TabStripGtk* tabstrip, int index) tabstrip 549 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, MINI), tabstrip 551 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int tab_count = tabstrip->GetTabCount(); tabstrip 552 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int start_mini_count = tabstrip->GetMiniTabCount(); tabstrip 554 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc if (tabstrip->GetTabAt(index)->mini()) tabstrip 608 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc MiniMoveAnimation(TabStripGtk* tabstrip, tabstrip 612 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc : TabAnimation(tabstrip, MINI_MOVE), tabstrip 613 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc tab_(tabstrip->GetTabAt(to_index)), tabstrip 617 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int tab_count = tabstrip->GetTabCount(); tabstrip 618 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc int start_mini_count = tabstrip->GetMiniTabCount(); tabstrip 620 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc if (tabstrip->GetTabAt(to_index)->mini()) tabstrip 626 chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc target_bounds_ = tabstrip->GetIdealBounds(to_index); tabstrip 332 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc GtkWidget* tabstrip = gtk_hbox_new(FALSE, kInterTabSpacing); tabstrip 341 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc gtk_container_add(GTK_CONTAINER(tabstrip_alignment_), tabstrip); tabstrip 344 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc gtk_box_pack_start(GTK_BOX(tabstrip), tabstrip 347 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc gtk_box_pack_start(GTK_BOX(tabstrip), tabstrip 652 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc GtkWidget* tabstrip = gtk_bin_get_child(GTK_BIN(tabstrip_alignment_)); tabstrip 653 chrome/browser/ui/gtk/website_settings/website_settings_popup_gtk.cc GList* tabs = gtk_container_get_children(GTK_CONTAINER(tabstrip)); tabstrip 13 chrome/browser/ui/tabs/tab_strip_model_order_controller.cc TabStripModel* tabstrip) tabstrip 14 chrome/browser/ui/tabs/tab_strip_model_order_controller.cc : tabstrip_(tabstrip) { tabstrip 19 chrome/browser/ui/tabs/tab_strip_model_order_controller.h explicit TabStripModelOrderController(TabStripModel* tabstrip); tabstrip 414 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 415 chrome/browser/ui/tabs/tab_strip_model_unittest.cc MockTabStripModelObserver observer(&tabstrip); tabstrip 416 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddObserver(&observer); tabstrip 418 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 431 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.ContainsIndex(0)); tabstrip 432 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 433 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.ContainsIndex(0)); tabstrip 434 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 447 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1", GetTabStripStateString(tabstrip)); tabstrip 453 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(1, contents2, TabStripModel::ADD_ACTIVE); tabstrip 455 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 471 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2", GetTabStripStateString(tabstrip)); tabstrip 477 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(2, contents3, TabStripModel::ADD_NONE); tabstrip 479 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.count()); tabstrip 486 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2 3", GetTabStripStateString(tabstrip)); tabstrip 490 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(2, true); tabstrip 504 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2 3", GetTabStripStateString(tabstrip)); tabstrip 509 chrome/browser/ui/tabs/tab_strip_model_unittest.cc WebContents* detached = tabstrip.DetachWebContentsAt(2); tabstrip 511 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(detached, true); tabstrip 541 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2 3", GetTabStripStateString(tabstrip)); tabstrip 545 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.CloseWebContentsAt(2, TabStripModel::CLOSE_NONE)); tabstrip 546 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 566 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2", GetTabStripStateString(tabstrip)); tabstrip 570 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(1, 0, true); tabstrip 576 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 579 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2 1", GetTabStripStateString(tabstrip)); tabstrip 583 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(1, 0, false); tabstrip 588 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 590 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(0, 1, false); tabstrip 593 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2 1", GetTabStripStateString(tabstrip)); tabstrip 597 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents2, tabstrip.GetActiveWebContents()); tabstrip 598 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents2, tabstrip.GetWebContentsAt(0)); tabstrip 599 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents1, tabstrip.GetWebContentsAt(1)); tabstrip 600 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.GetIndexOfWebContents(contents2)); tabstrip 601 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.GetIndexOfWebContents(contents1)); tabstrip 606 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.UpdateWebContentsStateAt(0, TabStripModelObserver::ALL); tabstrip 616 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(1, true); tabstrip 617 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SelectPreviousTab(); tabstrip 618 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 619 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SelectLastTab(); tabstrip 620 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 621 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SelectNextTab(); tabstrip 622 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 627 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 631 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 632 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 635 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 637 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 641 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.RemoveObserver(&observer); tabstrip 646 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 647 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 654 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(opener, true); tabstrip 663 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(tabstrip.count(), contents1, tabstrip 665 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(tabstrip.count(), contents2, tabstrip 667 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(tabstrip.count(), contents3, tabstrip 669 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(tabstrip.count(), contents4, tabstrip 671 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(tabstrip.count(), contents5, tabstrip 675 chrome/browser/ui/tabs/tab_strip_model_unittest.cc for (int i = 1; i < tabstrip.count(); ++i) tabstrip 676 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(opener, tabstrip.GetOpenerOfWebContentsAt(i)); tabstrip 679 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 1, false)); tabstrip 682 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(4, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 5, false)); tabstrip 687 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(5, tabstrip.GetIndexOfLastWebContentsOpenedBy(opener, 1)); tabstrip 692 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.GetIndexOfNextWebContentsOpenedBy(contents1, 3, false)); tabstrip 694 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.GetIndexOfLastWebContentsOpenedBy(contents1, 3)); tabstrip 697 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ForgetAllOpeners(); tabstrip 698 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 1, false)); tabstrip 699 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 5, false)); tabstrip 700 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfLastWebContentsOpenedBy(opener, 1)); tabstrip 703 chrome/browser/ui/tabs/tab_strip_model_unittest.cc for (int i = 0; i < tabstrip.count() - 1; ++i) tabstrip 704 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetOpenerOfWebContentsAt(i, contents5); tabstrip 706 chrome/browser/ui/tabs/tab_strip_model_unittest.cc for (int i = 0; i < tabstrip.count() - 1; ++i) tabstrip 707 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents5, tabstrip.GetOpenerOfWebContentsAt(i)); tabstrip 710 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.GetIndexOfNextWebContentsOpenedBy(contents5, 1, false)); tabstrip 714 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.GetIndexOfNextWebContentsOpenedBy(contents5, 4, false)); tabstrip 716 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 717 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 720 chrome/browser/ui/tabs/tab_strip_model_unittest.cc static int GetInsertionIndex(TabStripModel* tabstrip) { tabstrip 721 chrome/browser/ui/tabs/tab_strip_model_unittest.cc return tabstrip->order_controller()->DetermineInsertionIndex( tabstrip 725 chrome/browser/ui/tabs/tab_strip_model_unittest.cc static void InsertWebContentses(TabStripModel* tabstrip, tabstrip 729 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip->InsertWebContentsAt(GetInsertionIndex(tabstrip), tabstrip 732 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip->InsertWebContentsAt(GetInsertionIndex(tabstrip), tabstrip 735 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip->InsertWebContentsAt(GetInsertionIndex(tabstrip), tabstrip 743 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 744 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 747 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(opener, true); tabstrip 754 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 755 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents1, tabstrip.GetWebContentsAt(1)); tabstrip 756 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents2, tabstrip.GetWebContentsAt(2)); tabstrip 757 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents3, tabstrip.GetWebContentsAt(3)); tabstrip 759 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 760 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 771 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 772 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 775 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(opener, true); tabstrip 780 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(other, false); tabstrip 787 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 788 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(opener, tabstrip.GetWebContentsAt(0)); tabstrip 789 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents1, tabstrip.GetWebContentsAt(1)); tabstrip 790 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents2, tabstrip.GetWebContentsAt(2)); tabstrip 791 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(contents3, tabstrip.GetWebContentsAt(3)); tabstrip 792 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(other, tabstrip.GetWebContentsAt(4)); tabstrip 795 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 2, false)); tabstrip 796 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 3, false)); tabstrip 797 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.GetIndexOfLastWebContentsOpenedBy(opener, 1)); tabstrip 802 chrome/browser/ui/tabs/tab_strip_model_unittest.cc int insert_index = tabstrip.order_controller()->DetermineInsertionIndex( tabstrip 805 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(insert_index, fg_link_contents, tabstrip 808 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 809 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(fg_link_contents, tabstrip.GetActiveWebContents()); tabstrip 812 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 813 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 817 chrome/browser/ui/tabs/tab_strip_model_unittest.cc insert_index = tabstrip.order_controller()->DetermineInsertionIndex( tabstrip 819 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(tabstrip.count(), insert_index); tabstrip 821 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(insert_index, tabstrip 826 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(tabstrip.count() - 1, true); tabstrip 827 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(tabstrip.count() - 1, tabstrip.active_index()); tabstrip 828 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(fg_nonlink_contents, tabstrip.GetActiveWebContents()); tabstrip 831 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 2, false)); tabstrip 832 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 3, false)); tabstrip 833 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfNextWebContentsOpenedBy(opener, 3, false)); tabstrip 834 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(-1, tabstrip.GetIndexOfLastWebContentsOpenedBy(opener, 1)); tabstrip 836 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 837 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 853 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 854 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 857 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(opener, true); tabstrip 868 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 869 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 871 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(1); tabstrip 872 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 874 chrome/browser/ui/tabs/tab_strip_model_unittest.cc for (int i = tabstrip.count() - 1; i >= 1; --i) tabstrip 875 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(i); tabstrip 879 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 880 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 882 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ForgetAllOpeners(); tabstrip 883 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(1, true); tabstrip 884 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 885 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(1); tabstrip 886 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 887 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(1); tabstrip 888 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 889 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(1); tabstrip 890 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 892 chrome/browser/ui/tabs/tab_strip_model_unittest.cc for (int i = tabstrip.count() - 1; i >= 1; --i) tabstrip 893 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(i); tabstrip 897 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 898 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 899 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(2, false); tabstrip 900 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.active_index()); tabstrip 901 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(2, TabStripModel::CLOSE_NONE); tabstrip 902 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.active_index()); tabstrip 903 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(2, TabStripModel::CLOSE_NONE); tabstrip 904 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.active_index()); tabstrip 905 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(1, TabStripModel::CLOSE_NONE); tabstrip 906 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 910 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(1, other_contents, tabstrip 912 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 914 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(2, opened_contents, tabstrip 917 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.active_index()); tabstrip 918 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(2, TabStripModel::CLOSE_NONE); tabstrip 919 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 921 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 922 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 929 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 930 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 934 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 1, 0, "0")); tabstrip 935 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 937 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseTab); tabstrip 938 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_TRUE(tabstrip.empty()); tabstrip 942 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "0 1")); tabstrip 943 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 945 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseTab); tabstrip 947 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2", GetTabStripStateString(tabstrip)); tabstrip 949 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 950 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 955 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "0 1")); tabstrip 956 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 958 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(2, TabStripModel::CommandCloseTab); tabstrip 960 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0 1", GetTabStripStateString(tabstrip)); tabstrip 961 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 962 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 966 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 1, "0 1")); tabstrip 967 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 969 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseTab); tabstrip 971 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2", GetTabStripStateString(tabstrip)); tabstrip 972 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 973 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 980 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 981 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 986 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "0 1")); tabstrip 987 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 989 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseOtherTabs); tabstrip 990 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0 1", GetTabStripStateString(tabstrip)); tabstrip 991 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 992 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 997 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "0 1")); tabstrip 998 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1000 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseOtherTabs); tabstrip 1001 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0 1", GetTabStripStateString(tabstrip)); tabstrip 1002 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1003 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1007 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "0 1 2")); tabstrip 1008 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1010 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1011 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1015 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 1, "1 2")); tabstrip 1016 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1019 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1021 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1022 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1026 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 1, "1")); tabstrip 1027 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1029 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1031 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(1, TabStripModel::CommandCloseOtherTabs); tabstrip 1033 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0p 1", GetTabStripStateString(tabstrip)); tabstrip 1034 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1035 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1042 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1043 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1048 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 0, "1 2")); tabstrip 1049 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1051 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1053 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1055 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseTabsToRight); tabstrip 1056 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0", GetTabStripStateString(tabstrip)); tabstrip 1057 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1058 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1065 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1066 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1070 chrome/browser/ui/tabs/tab_strip_model_unittest.cc PrepareTabstripForSelectionTest(&tabstrip, 3, 1, "0 1")); tabstrip 1071 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1073 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1075 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsContextMenuCommandEnabled( tabstrip 1077 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandTogglePinned); tabstrip 1078 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0p 1p 2", GetTabStripStateString(tabstrip)); tabstrip 1081 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandTogglePinned); tabstrip 1082 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("0 1 2", GetTabStripStateString(tabstrip)); tabstrip 1085 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(2, TabStripModel::CommandTogglePinned); tabstrip 1086 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2p 0 1", GetTabStripStateString(tabstrip)); tabstrip 1088 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1089 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1098 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1099 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1102 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(opener, true); tabstrip 1108 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 1109 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 1111 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(2, TabStripModel::CommandCloseTab); tabstrip 1112 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.count()); tabstrip 1114 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(0, TabStripModel::CommandCloseTabsToRight); tabstrip 1115 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 1116 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(opener, tabstrip.GetActiveWebContents()); tabstrip 1119 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(dummy, false); tabstrip 1124 chrome/browser/ui/tabs/tab_strip_model_unittest.cc InsertWebContentses(&tabstrip, contents1, contents2, contents3); tabstrip 1125 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(5, tabstrip.count()); tabstrip 1127 chrome/browser/ui/tabs/tab_strip_model_unittest.cc int dummy_index = tabstrip.count() - 1; tabstrip 1128 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(dummy_index, true); tabstrip 1129 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(dummy, tabstrip.GetActiveWebContents()); tabstrip 1131 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ExecuteContextMenuCommand(dummy_index, tabstrip 1133 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 1134 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(dummy, tabstrip.GetActiveWebContents()); tabstrip 1136 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1137 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1143 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1144 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1152 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 1153 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents2, true); tabstrip 1154 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents3, true); tabstrip 1155 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents4, true); tabstrip 1156 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents5, true); tabstrip 1159 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 0, TabStripModel::CommandCloseTabsToRight)); tabstrip 1161 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 1, TabStripModel::CommandCloseTabsToRight)); tabstrip 1164 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 0, TabStripModel::CommandCloseOtherTabs)); tabstrip 1166 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 1, TabStripModel::CommandCloseOtherTabs)); tabstrip 1170 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(0, true); tabstrip 1171 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(1, true); tabstrip 1174 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 0, TabStripModel::CommandCloseTabsToRight)); tabstrip 1176 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 2, TabStripModel::CommandCloseTabsToRight)); tabstrip 1179 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 0, TabStripModel::CommandCloseOtherTabs)); tabstrip 1181 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip, 2, TabStripModel::CommandCloseOtherTabs)); tabstrip 1183 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1184 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1192 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1193 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1197 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1203 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1207 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1210 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(0, true); tabstrip 1215 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1219 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1223 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1227 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(5, tabstrip.count()); tabstrip 1229 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetWebContentsAt(0)); tabstrip 1230 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents1, tabstrip.GetWebContentsAt(1)); tabstrip 1231 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents2, tabstrip.GetWebContentsAt(2)); tabstrip 1232 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents3, tabstrip.GetWebContentsAt(3)); tabstrip 1233 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetWebContentsAt(4)); tabstrip 1241 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(2, true); tabstrip 1242 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1243 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents3, tabstrip.GetActiveWebContents()); tabstrip 1244 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1245 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents1, tabstrip.GetActiveWebContents()); tabstrip 1246 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1247 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetActiveWebContents()); tabstrip 1248 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1249 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetActiveWebContents()); tabstrip 1251 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 1253 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1254 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1262 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1263 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1267 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1273 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1277 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1280 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(0, true); tabstrip 1284 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents(left_click_contents, -1, tabstrip 1289 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.count()); tabstrip 1290 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetWebContentsAt(0)); tabstrip 1291 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(left_click_contents, tabstrip.GetWebContentsAt(1)); tabstrip 1292 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetWebContentsAt(2)); tabstrip 1295 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(left_click_contents, tabstrip.GetActiveWebContents()); tabstrip 1299 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1300 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetActiveWebContents()); tabstrip 1302 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1304 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1305 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1313 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1314 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1318 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1324 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1328 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1331 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(0, true); tabstrip 1335 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents(new_blank_contents, -1, tabstrip 1340 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(3, tabstrip.count()); tabstrip 1341 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetWebContentsAt(0)); tabstrip 1342 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetWebContentsAt(1)); tabstrip 1343 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(new_blank_contents, tabstrip.GetWebContentsAt(2)); tabstrip 1347 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1351 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1354 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(5, tabstrip.count()); tabstrip 1355 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetWebContentsAt(0)); tabstrip 1356 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetWebContentsAt(1)); tabstrip 1357 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(new_blank_contents, tabstrip.GetWebContentsAt(2)); tabstrip 1358 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(background_blank_contents1, tabstrip.GetWebContentsAt(3)); tabstrip 1359 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(background_blank_contents2, tabstrip.GetWebContentsAt(4)); tabstrip 1361 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1362 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1369 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1370 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1374 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1380 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1384 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1387 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(0, true); tabstrip 1392 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1396 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1400 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1405 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetWebContentsAt(4)); tabstrip 1406 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SelectLastTab(); tabstrip 1407 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetActiveWebContents()); tabstrip 1410 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(2, true); tabstrip 1411 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents2, tabstrip.GetActiveWebContents()); tabstrip 1416 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1417 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents3, tabstrip.GetActiveWebContents()); tabstrip 1418 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1419 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(typed_page_contents, tabstrip.GetActiveWebContents()); tabstrip 1420 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1421 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(middle_click_contents1, tabstrip.GetActiveWebContents()); tabstrip 1422 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseSelectedTabs(); tabstrip 1423 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(homepage_contents, tabstrip.GetActiveWebContents()); tabstrip 1425 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 1427 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1428 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1434 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1435 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1439 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1445 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddWebContents( tabstrip 1450 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 1455 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(target_blank, true); tabstrip 1456 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.active_index()); tabstrip 1457 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(2, TabStripModel::CLOSE_NONE); tabstrip 1458 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(0, tabstrip.active_index()); tabstrip 1461 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1715 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1716 chrome/browser/ui/tabs/tab_strip_model_unittest.cc MockTabStripModelObserver observer(&tabstrip); tabstrip 1717 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddObserver(&observer); tabstrip 1719 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1730 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 1731 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents2, true); tabstrip 1737 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1741 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(2, tabstrip.count()); tabstrip 1744 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1745 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1757 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 1758 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents2, true); tabstrip 1760 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseWebContentsAt(1, TabStripModel::CLOSE_NONE); tabstrip 1762 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ(1, tabstrip.count()); tabstrip 1764 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1765 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1772 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1773 chrome/browser/ui/tabs/tab_strip_model_unittest.cc MockTabStripModelObserver observer(&tabstrip); tabstrip 1774 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddObserver(&observer); tabstrip 1776 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1813 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents3, true); tabstrip 1820 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(1, contents1, TabStripModel::ADD_NONE); tabstrip 1827 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1ap 3", GetTabStripStateString(tabstrip)); tabstrip 1834 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(1, contents2, TabStripModel::ADD_NONE); tabstrip 1841 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1ap 2ap 3", GetTabStripStateString(tabstrip)); tabstrip 1848 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(2, 0, false); tabstrip 1853 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1ap 2ap 3", GetTabStripStateString(tabstrip)); tabstrip 1860 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(0, 2, false); tabstrip 1865 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1ap 2ap 3", GetTabStripStateString(tabstrip)); tabstrip 1872 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(0, 1, false); tabstrip 1880 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2ap 1ap 3", GetTabStripStateString(tabstrip)); tabstrip 1887 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DetachWebContentsAt(2); tabstrip 1890 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(0, contents3, TabStripModel::ADD_NONE); tabstrip 1897 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("2ap 1ap 3", GetTabStripStateString(tabstrip)); tabstrip 1902 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 1908 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 1909 chrome/browser/ui/tabs/tab_strip_model_unittest.cc MockTabStripModelObserver observer(&tabstrip); tabstrip 1910 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddObserver(&observer); tabstrip 1912 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.empty()); tabstrip 1929 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 1930 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents2, false); tabstrip 1931 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents3, false); tabstrip 1937 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(0, true); tabstrip 1945 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1p 2 3", GetTabStripStateString(tabstrip)); tabstrip 1952 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(0, false); tabstrip 1960 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1 2 3", GetTabStripStateString(tabstrip)); tabstrip 1967 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(2, true); tabstrip 1979 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("3p 1 2", GetTabStripStateString(tabstrip)); tabstrip 1986 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(1, true); tabstrip 1994 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("3p 1p 2", GetTabStripStateString(tabstrip)); tabstrip 2001 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.MoveWebContentsAt(2, 0, false); tabstrip 2007 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("3p 1p 2", GetTabStripStateString(tabstrip)); tabstrip 2014 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(0, false); tabstrip 2025 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1p 3 2", GetTabStripStateString(tabstrip)); tabstrip 2032 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(1, false); tabstrip 2036 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1p 3 2", GetTabStripStateString(tabstrip)); tabstrip 2043 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(0, true); tabstrip 2044 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.SetTabPinned(1, true); tabstrip 2046 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1p 3p 2", GetTabStripStateString(tabstrip)); tabstrip 2057 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.InsertWebContentsAt(1, contents4, TabStripModel::ADD_NONE); tabstrip 2063 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_EQ("1p 3p 4 2", GetTabStripStateString(tabstrip)); tabstrip 2066 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 2126 chrome/browser/ui/tabs/tab_strip_model_unittest.cc TabStripModel tabstrip(&delegate, profile()); tabstrip 2130 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents1, true); tabstrip 2132 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AppendWebContents(contents2, true); tabstrip 2136 chrome/browser/ui/tabs/tab_strip_model_unittest.cc MockTabStripModelObserver tabstrip_observer(&tabstrip); tabstrip 2137 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.AddObserver(&tabstrip_observer); tabstrip 2140 chrome/browser/ui/tabs/tab_strip_model_unittest.cc WebContents* null_contents1 = tabstrip.DiscardWebContentsAt(0); tabstrip 2141 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(2, tabstrip.count()); tabstrip 2142 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsTabDiscarded(0)); tabstrip 2143 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(1)); tabstrip 2144 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(null_contents1, tabstrip.GetWebContentsAt(0)); tabstrip 2145 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(contents2, tabstrip.GetWebContentsAt(1)); tabstrip 2153 chrome/browser/ui/tabs/tab_strip_model_unittest.cc WebContents* null_contents2 = tabstrip.DiscardWebContentsAt(0); tabstrip 2154 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(2, tabstrip.count()); tabstrip 2155 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_TRUE(tabstrip.IsTabDiscarded(0)); tabstrip 2156 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(1)); tabstrip 2157 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(null_contents2, tabstrip.GetWebContentsAt(0)); tabstrip 2158 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(contents2, tabstrip.GetWebContentsAt(1)); tabstrip 2166 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.ActivateTabAt(0, true /* user_gesture */); tabstrip 2167 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(2, tabstrip.count()); tabstrip 2168 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(0)); tabstrip 2169 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(1)); tabstrip 2172 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.DiscardWebContentsAt(0); tabstrip 2173 chrome/browser/ui/tabs/tab_strip_model_unittest.cc ASSERT_EQ(2, tabstrip.count()); tabstrip 2174 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(0)); tabstrip 2175 chrome/browser/ui/tabs/tab_strip_model_unittest.cc EXPECT_FALSE(tabstrip.IsTabDiscarded(1)); tabstrip 2177 chrome/browser/ui/tabs/tab_strip_model_unittest.cc tabstrip.CloseAllTabs(); tabstrip 101 chrome/browser/ui/views/ash/tab_scrubber.cc TabStrip* tab_strip = browser_view->tabstrip(); tabstrip 270 chrome/browser/ui/views/ash/tab_scrubber.cc TabStrip* tab_strip = browser_view->tabstrip(); tabstrip 64 chrome/browser/ui/views/ash/tab_scrubber_browsertest.cc return BrowserView::GetBrowserViewForNativeWindow(window)->tabstrip(); tabstrip 97 chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc views::View* tabstrip) const { tabstrip 32 chrome/browser/ui/views/frame/app_panel_browser_frame_view.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; tabstrip 315 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc browser_frame_->GetBoundsForTabStrip(browser_view_->tabstrip())); tabstrip 168 chrome/browser/ui/views/frame/browser_frame.cc gfx::Rect BrowserFrame::GetBoundsForTabStrip(views::View* tabstrip) const { tabstrip 169 chrome/browser/ui/views/frame/browser_frame.cc return browser_frame_view_->GetBoundsForTabStrip(tabstrip); tabstrip 62 chrome/browser/ui/views/frame/browser_frame.h gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const; tabstrip 32 chrome/browser/ui/views/frame/browser_non_client_frame_view.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const = 0; tabstrip 130 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc views::View* tabstrip) const { tabstrip 131 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc if (!tabstrip) tabstrip 144 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc tabstrip->GetPreferredSize().height()); tabstrip 216 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc gfx::Rect tabstrip_bounds(browser_view()->tabstrip()->bounds()); tabstrip 280 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc browser_view()->tabstrip()->GetPreferredSize().height(); tabstrip 304 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 305 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc if (tabstrip && browser_view()->IsTabStripVisible()) { tabstrip 309 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View::ConvertRectToTarget(this, tabstrip, &rect_in_tabstrip_coords_f); tabstrip 313 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc if (rect_in_tabstrip_coords.y() > tabstrip->height()) tabstrip 316 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc return !tabstrip->HitTestRect(rect_in_tabstrip_coords) || tabstrip 317 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc tabstrip->IsRectInWindowCaption(rect_in_tabstrip_coords); tabstrip 337 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc browser_view()->tabstrip()->GetMinimumSize().width(); tabstrip 39 chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; tabstrip 35 chrome/browser/ui/views/frame/browser_root_view.cc if (tabstrip() && tabstrip()->visible()) { tabstrip 47 chrome/browser/ui/views/frame/browser_root_view.cc if (!tabstrip() || !tabstrip()->visible()) tabstrip 63 chrome/browser/ui/views/frame/browser_root_view.cc tabstrip()->OnDragEntered(*mapped_event.get()); tabstrip 72 chrome/browser/ui/views/frame/browser_root_view.cc tabstrip()->OnDragEntered(*mapped_event.get()); tabstrip 75 chrome/browser/ui/views/frame/browser_root_view.cc return tabstrip()->OnDragUpdated(*mapped_event.get()); tabstrip 78 chrome/browser/ui/views/frame/browser_root_view.cc tabstrip()->OnDragExited(); tabstrip 86 chrome/browser/ui/views/frame/browser_root_view.cc tabstrip()->OnDragExited(); tabstrip 115 chrome/browser/ui/views/frame/browser_root_view.cc return tabstrip()->OnPerformDrop(*mapped_event); tabstrip 128 chrome/browser/ui/views/frame/browser_root_view.cc if (tabstrip()->Contains(hit_view) || tabstrip 163 chrome/browser/ui/views/frame/browser_root_view.cc if (!tabstrip()->visible()) tabstrip 169 chrome/browser/ui/views/frame/browser_root_view.cc ConvertPointToTarget(tabstrip(), this, &tab_loc_in_host); tabstrip 170 chrome/browser/ui/views/frame/browser_root_view.cc return event.y() < tab_loc_in_host.y() + tabstrip()->height(); tabstrip 177 chrome/browser/ui/views/frame/browser_root_view.cc ConvertPointToTarget(this, tabstrip(), &tab_strip_loc); tabstrip 183 chrome/browser/ui/views/frame/browser_root_view.cc return browser_view_->tabstrip(); tabstrip 56 chrome/browser/ui/views/frame/browser_root_view.h inline TabStrip* tabstrip() const; tabstrip 294 chrome/browser/ui/views/frame/browser_view.cc browser_view_->tabstrip())); tabstrip 165 chrome/browser/ui/views/frame/browser_view.h TabStrip* tabstrip() { return tabstrip_; } tabstrip 28 chrome/browser/ui/views/frame/browser_view_unittest.cc browser_view->frame()->GetBoundsForTabStrip(browser_view->tabstrip())); tabstrip 66 chrome/browser/ui/views/frame/browser_view_unittest.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 79 chrome/browser/ui/views/frame/browser_view_unittest.cc EXPECT_EQ(top_container, browser_view()->tabstrip()->parent()); tabstrip 97 chrome/browser/ui/views/frame/browser_view_unittest.cc EXPECT_EQ(expected_tabstrip_origin.x(), tabstrip->x()); tabstrip 98 chrome/browser/ui/views/frame/browser_view_unittest.cc EXPECT_EQ(expected_tabstrip_origin.y(), tabstrip->y()); tabstrip 101 chrome/browser/ui/views/frame/browser_view_unittest.cc tabstrip->bounds().bottom() - tabstrip 140 chrome/browser/ui/views/frame/browser_view_unittest.cc tabstrip->bounds().bottom() + tabstrip 192 chrome/browser/ui/views/frame/browser_view_unittest.cc EXPECT_FALSE(browser_view()->tabstrip()->visible()); tabstrip 109 chrome/browser/ui/views/frame/glass_browser_frame_view.cc views::View* tabstrip) const { tabstrip 142 chrome/browser/ui/views/frame/glass_browser_frame_view.cc tabstrip->GetPreferredSize().height()); tabstrip 177 chrome/browser/ui/views/frame/glass_browser_frame_view.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 178 chrome/browser/ui/views/frame/glass_browser_frame_view.cc int min_tabstrip_width = tabstrip->GetMinimumSize().width(); tabstrip 180 chrome/browser/ui/views/frame/glass_browser_frame_view.cc width() - GetBoundsForTabStrip(tabstrip).width() + min_tabstrip_width; tabstrip 26 chrome/browser/ui/views/frame/glass_browser_frame_view.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; tabstrip 161 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc if (show_tab_indicators != browser_view_->tabstrip()->IsImmersiveStyle()) { tabstrip 162 chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc browser_view_->tabstrip()->SetImmersiveStyle(show_tab_indicators); tabstrip 110 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 120 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->visible()); tabstrip 130 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->visible()); tabstrip 131 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->IsImmersiveStyle()); tabstrip 135 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_EQ(0, GetBoundsInWidget(tabstrip).y()); tabstrip 145 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->visible()); tabstrip 146 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->IsImmersiveStyle()); tabstrip 168 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->visible()); tabstrip 169 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->IsImmersiveStyle()); tabstrip 181 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->visible()); tabstrip 193 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_TRUE(tabstrip->visible()); tabstrip 194 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->IsImmersiveStyle()); tabstrip 285 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 296 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->visible()); tabstrip 309 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->visible()); tabstrip 319 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->visible()); tabstrip 335 chrome/browser/ui/views/frame/immersive_mode_controller_ash_unittest.cc EXPECT_FALSE(tabstrip->visible()); tabstrip 174 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc views::View* tabstrip) const { tabstrip 175 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc if (!tabstrip) tabstrip 178 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc return layout_->GetBoundsForTabStrip(tabstrip->GetPreferredSize(), width()); tabstrip 315 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc TabStrip* tabstrip = browser_view()->tabstrip(); tabstrip 316 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc if (!tabstrip || !browser_view()->IsTabStripVisible()) tabstrip 320 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View::ConvertRectToTarget(this, tabstrip, &rect_in_tabstrip_coords_f); tabstrip 323 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc if (rect_in_tabstrip_coords.bottom() > tabstrip->GetLocalBounds().bottom()) { tabstrip 328 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc if (tabstrip->HitTestRect(rect_in_tabstrip_coords)) { tabstrip 330 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc return tabstrip->IsRectInWindowCaption(rect_in_tabstrip_coords); tabstrip 522 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc gfx::Size s = browser_view()->tabstrip()->GetPreferredSize(); tabstrip 933 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); tabstrip 44 chrome/browser/ui/views/frame/opaque_browser_frame_view.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; tabstrip 45 chrome/browser/ui/views/frame/popup_non_client_frame_view.cc views::View* tabstrip) const { tabstrip 46 chrome/browser/ui/views/frame/popup_non_client_frame_view.cc return gfx::Rect(0, 0, width(), tabstrip->GetPreferredSize().height()); tabstrip 29 chrome/browser/ui/views/frame/popup_non_client_frame_view.h virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; tabstrip 223 chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc void BrowserTabStripController::InitFromModel(TabStrip* tabstrip) { tabstrip 224 chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc tabstrip_ = tabstrip; tabstrip 37 chrome/browser/ui/views/tabs/browser_tab_strip_controller.h void InitFromModel(TabStrip* tabstrip); tabstrip 120 chrome/browser/ui/views/tabs/browser_tab_strip_controller.h const TabStrip* tabstrip() const { return tabstrip_; } tabstrip 935 chrome/browser/ui/views/tabs/tab_drag_controller.cc TabStrip* other_tabstrip = browser_view->tabstrip(); tabstrip 945 chrome/browser/ui/views/tabs/tab_drag_controller.cc TabStrip* tabstrip, tabstrip 949 chrome/browser/ui/views/tabs/tab_drag_controller.cc gfx::Rect tabstrip_bounds = GetViewScreenBounds(tabstrip); tabstrip 1158 chrome/browser/ui/views/tabs/tab_drag_controller.cc Attach(dragged_browser_view->tabstrip(), gfx::Point()); tabstrip 1397 chrome/browser/ui/views/tabs/tab_drag_controller.cc TabStrip* tabstrip) { tabstrip 1404 chrome/browser/ui/views/tabs/tab_drag_controller.cc tabs.push_back(tabstrip->tab_at(model_index)); tabstrip 1744 chrome/browser/ui/views/tabs/tab_drag_controller.cc TabStrip* tabstrip) const { tabstrip 1745 chrome/browser/ui/views/tabs/tab_drag_controller.cc return static_cast<BrowserTabStripController*>(tabstrip->controller())-> tabstrip 314 chrome/browser/ui/views/tabs/tab_drag_controller.h bool DoesTabStripContain(TabStrip* tabstrip, tabstrip 376 chrome/browser/ui/views/tabs/tab_drag_controller.h std::vector<Tab*> GetTabsMatchingDraggedContents(TabStrip* tabstrip); tabstrip 409 chrome/browser/ui/views/tabs/tab_drag_controller.h gfx::Rect GetViewScreenBounds(views::View* tabstrip) const; tabstrip 464 chrome/browser/ui/views/tabs/tab_drag_controller.h TabStripModel* GetModel(TabStrip* tabstrip) const; tabstrip 145 chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc return static_cast<TabStrip*>(browser_view->tabstrip());