Lines Matching defs:tab
93 // Opens a link in a new tab via a "real" context menu.
110 content::WebContents* tab =
112 gfx::Rect offset = tab->GetContainerBounds();
116 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
118 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
120 // The menu_observer will select "Open in new tab", wait for the new tab to
123 tab = tab_observer.GetTab();
124 content::WaitForLoadStop(tab);
126 // Verify that it's the correct tab.
127 EXPECT_EQ(GURL("about:blank"), tab->GetURL());
151 // Select "Open Link in New Tab" and wait for the new tab to be added.
159 content::WebContents* tab = tab_observer.GetTab();
160 content::WaitForLoadStop(tab);
162 // Verify that it's the correct tab.
163 ASSERT_EQ(echoheader, tab->GetURL());
167 tab,
175 tab,
211 content::WebContents* tab = tab_observer.GetTab();
212 content::WaitForLoadStop(tab);
214 // Verify that it's the correct tab.
215 ASSERT_EQ(echoheader, tab->GetURL());
219 tab,
227 tab,
252 content::WebContents* tab =
254 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
256 tab->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
269 // Create a new tab with no committed entry.
275 content::WebContents* tab = tab_observer.GetTab();
276 EXPECT_FALSE(tab->GetController().GetLastCommittedEntry());
277 EXPECT_FALSE(tab->GetController().GetVisibleEntry());
281 TestRenderViewContextMenu menu(tab->GetMainFrame(), context_menu_params);