Home | History | Annotate | Download | only in tabs

Lines Matching refs:tab_strip

26 #include "chrome/browser/ui/views/tabs/tab_strip.h"
164 void TabDragControllerTest::StopAnimating(TabStrip* tab_strip) {
165 tab_strip->StopAnimating(true);
198 int GetDetachY(TabStrip* tab_strip) {
201 tab_strip->height() + 1;
308 TabStrip* tab_strip = GetTabStripForBrowser(browser());
309 gfx::Point tab_1_center(GetCenterInScreenCoordinates(tab_strip->tab_at(1)));
313 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
322 EXPECT_FALSE(tab_strip->IsDragSessionActive());
328 TabStrip* tab_strip = GetTabStripForBrowser(browser());
330 Tab* tab1 = tab_strip->tab_at(1);
339 tab_strip->MaybeStartDrag(tab1, gesture_tap_down,
340 tab_strip->GetSelectionModel());
348 tab_strip->OnGestureEvent(&gesture_end);
350 EXPECT_FALSE(tab_strip->IsDragSessionActive());
548 TabStrip* tab_strip = GetTabStripForBrowser(browser());
551 gfx::Point tab_1_center(GetCenterInScreenCoordinates(tab_strip->tab_at(1)));
553 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
558 EXPECT_FALSE(tab_strip->IsDragSessionActive());
562 EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
595 TabStrip* tab_strip = GetTabStripForBrowser(browser());
606 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
609 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
611 this, tab_strip, tab_strip2)));
616 ASSERT_FALSE(tab_strip->IsDragSessionActive());
623 ASSERT_FALSE(tab_strip->IsDragSessionActive());
635 EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
677 TabStrip* tab_strip = GetTabStripForBrowser(browser());
681 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
684 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
692 ASSERT_FALSE(tab_strip->IsDragSessionActive());
722 EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
744 TabStrip* tab_strip = GetTabStripForBrowser(browser());
748 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
751 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
759 ASSERT_FALSE(tab_strip->IsDragSessionActive());
791 TabStrip* tab_strip = GetTabStripForBrowser(browser());
794 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
798 ASSERT_TRUE(tab_strip->IsDragSessionActive());
805 ASSERT_FALSE(tab_strip->IsDragSessionActive());
831 TabStrip* tab_strip = GetTabStripForBrowser(browser());
835 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
841 ASSERT_TRUE(tab_strip->IsDragSessionActive());
848 ASSERT_FALSE(tab_strip->IsDragSessionActive());
877 TabStrip* tab_strip = GetTabStripForBrowser(browser());
880 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
885 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
890 ASSERT_FALSE(tab_strip->IsDragSessionActive());
926 TabStrip* tab_strip = GetTabStripForBrowser(browser());
929 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
933 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
976 TabStrip* tab_strip = GetTabStripForBrowser(browser());
979 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
982 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
987 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1000 EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
1029 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1035 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1038 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1043 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1089 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1104 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1107 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1108 base::Bind(&DragAllToSeparateWindowStep2, this, tab_strip, tab_strip2,
1164 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1179 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1182 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1184 tab_strip, tab_strip2, native_browser_list)));
1220 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1236 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1245 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1251 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1276 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1288 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1291 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1292 base::Bind(&DragAllToSeparateWindowStep2, this, tab_strip, tab_strip2,
1347 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1354 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1357 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1378 TabStrip* tab_strip,
1388 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1391 EXPECT_TRUE(tab_strip->GetWidget()->IsVisible());
1406 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1410 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1413 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1414 base::Bind(&DragInMaximizedWindowStep2, this, browser(), tab_strip,
1491 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1495 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1498 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1502 + GetDetachY(tab_strip)))));
1506 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1564 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1583 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1586 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1588 this, tab_strip, tab_strip2)));
1593 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1599 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1614 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1644 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1648 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1650 this, tab_strip, tab_strip2)));
1655 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1661 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1678 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1702 EXPECT_EQ(2, tab_strip->tab_count());
1707 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1710 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1712 this, tab_strip, tab_strip2)));
1717 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1724 EXPECT_EQ(1, tab_strip->tab_count());
1728 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1744 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1773 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1776 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1778 this, tab_strip, tab_strip2)));
1783 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1794 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1899 TabStrip* tab_strip = GetTabStripForBrowser(browser());
1906 gfx::Point tab_0_center(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
1909 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
1911 this, tab_strip, 0)));
1952 TabStrip* tab_strip,
1954 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1967 TabStrip* tab_strip,
1971 ASSERT_FALSE(tab_strip->IsDragSessionActive());
1982 tab_strip, browser_list)));
1993 TabStrip* tab_strip = GetTabStripForBrowser(browser());
2006 gfx::Point tab_0_dst(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
2008 tab_0_dst.Offset(0, GetDetachY(tab_strip));
2011 this, tab_strip, roots[0], final_destination,
2016 ASSERT_FALSE(tab_strip->IsDragSessionActive());
2034 TabStrip* tab_strip = GetTabStripForBrowser(browser());
2051 gfx::Point tab_0_dst(GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
2053 tab_0_dst.Offset(0, GetDetachY(tab_strip));
2056 this, tab_strip, roots[1], final_destination,
2061 ASSERT_FALSE(tab_strip->IsDragSessionActive());
2090 TabStrip* tab_strip = GetTabStripForBrowser(browser());
2095 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
2098 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
2105 ASSERT_FALSE(tab_strip->IsDragSessionActive());
2148 TabStrip* tab_strip = GetTabStripForBrowser(browser());
2152 GetCenterInScreenCoordinates(tab_strip->tab_at(0)));
2158 tab_0_center.x(), tab_0_center.y() + GetDetachY(tab_strip),
2160 gfx::Point(0, tab_0_center.y() + GetDetachY(tab_strip)),
2166 ASSERT_FALSE(tab_strip->IsDragSessionActive());