Home | History | Annotate | Download | only in tabs

Lines Matching refs:tab_strip

24 #include "chrome/browser/ui/views/tabs/tab_strip.h"
166 void TabDragControllerTest::StopAnimating(TabStrip* tab_strip) {
167 tab_strip->StopAnimating(true);
200 int GetDetachY(TabStrip* tab_strip) {
203 tab_strip->height() + 1;
380 TabStrip* tab_strip = GetTabStripForBrowser(browser());
383 gfx::Point tab_1_center(GetCenterInScreenCoordinates(tab_strip->tab_at(1)));
385 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
390 EXPECT_FALSE(tab_strip->IsDragSessionActive());
422 TabStrip* tab_strip = GetTabStripForBrowser(browser());
433 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
436 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
438 this, tab_strip, tab_strip2)));
443 ASSERT_FALSE(tab_strip->IsDragSessionActive());
450 ASSERT_FALSE(tab_strip->IsDragSessionActive());
492 TabStrip* tab_strip = GetTabStripForBrowser(browser());
496 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
499 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
507 ASSERT_FALSE(tab_strip->IsDragSessionActive());
551 TabStrip* tab_strip = GetTabStripForBrowser(browser());
555 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
558 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
566 ASSERT_FALSE(tab_strip->IsDragSessionActive());
598 TabStrip* tab_strip = GetTabStripForBrowser(browser());
601 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
605 ASSERT_TRUE(tab_strip->IsDragSessionActive());
612 ASSERT_FALSE(tab_strip->IsDragSessionActive());
624 TabStrip* tab_strip = GetTabStripForBrowser(browser());
628 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
634 ASSERT_TRUE(tab_strip->IsDragSessionActive());
641 ASSERT_FALSE(tab_strip->IsDragSessionActive());
663 TabStrip* tab_strip = GetTabStripForBrowser(browser());
666 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
671 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
676 ASSERT_FALSE(tab_strip->IsDragSessionActive());
705 TabStrip* tab_strip = GetTabStripForBrowser(browser());
708 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
712 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
748 TabStrip* tab_strip = GetTabStripForBrowser(browser());
751 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
754 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
759 ASSERT_FALSE(tab_strip->IsDragSessionActive());
790 TabStrip* tab_strip = GetTabStripForBrowser(browser());
796 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
799 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
804 ASSERT_FALSE(tab_strip->IsDragSessionActive());
843 TabStrip* tab_strip = GetTabStripForBrowser(browser());
858 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
861 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
862 base::Bind(&DragAllToSeparateWindowStep2, this, tab_strip, tab_strip2,
910 TabStrip* tab_strip = GetTabStripForBrowser(browser());
925 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
928 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
930 tab_strip
959 TabStrip* tab_strip = GetTabStripForBrowser(browser());
975 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
984 ASSERT_FALSE(tab_strip->IsDragSessionActive());
990 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1007 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1019 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1022 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1023 base::Bind(&DragAllToSeparateWindowStep2, this, tab_strip, tab_strip2,
1071 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1078 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1081 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1101 TabStrip* tab_strip,
1111 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1114 EXPECT_TRUE(tab_strip->GetWidget()->IsVisible());
1129 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1133 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1136 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1137 base::Bind(&DragInMaximizedWindowStep2, this, browser(), tab_strip,
1201 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1205 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1208 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1212 + GetDetachY(tab_strip)))));
1216 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1274 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1293 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1296 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1298 this, tab_strip, tab_strip2)));
1303 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1309 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1324 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1354 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1358 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1360 this, tab_strip, tab_strip2)));
1365 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1371 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1388 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1412 EXPECT_EQ(2, tab_strip->tab_count());
1417 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1420 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1422 this, tab_strip, tab_strip2)));
1427 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1434 EXPECT_EQ(1, tab_strip->tab_count());
1438 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1459 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1489 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1492 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1494 this, tab_strip, tab_strip2)));
1499 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1510 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1608 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1615 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1618 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1620 this, tab_strip, 0)));
1661 TabStrip* tab_strip,
1663 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1676 TabStrip* tab_strip,
1680 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1691 tab_strip, browser_list)));
1702 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1715 gfx::Point tab_0_dst(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1717 tab_0_dst.Offset(0, GetDetachY(tab_strip));
1720 this, tab_strip, roots[0], final_destination,
1725 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1743 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1760 gfx::Point tab_0_dst(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1762 tab_0_dst.Offset(0, GetDetachY(tab_strip));
1765 tab_strip, roots[1], final_destination,
1770 ASSERT_FALSE(tab_strip->IsDragSessionActive());