Lines Matching refs:Tab
221 // Create the tab control and our initial tab
327 // Create an initial tab.
330 // the tab will be close when exit.
334 final Tab t = mTabControl.createNewTab(
356 // TabControl.restoreState() will create a new tab even if
396 Tab current = mTabControl.getCurrentTab();
397 // When a tab is closed on exit, the current tab index is set to -1.
398 // Reset before proceed as Browser requires the current tab to be set.
400 // Try to reset the tab in case the index was incorrect.
465 // from the browser. In that case, reuse the current tab.
469 Tab appTab = mTabControl.getTabFromId(appId);
471 Log.i(LOGTAG, "Reusing tab for " + appId);
489 // If the tab was the current tab, we have to attach
498 // No matching application tab, try to find a regular tab
505 // Otherwise, we are already viewing the correct tab.
508 // will be opened in a new tab unless we have reached
510 // tab. If a new tab is created, it will have "true" for
542 // If the current Tab is being used as an application tab,
976 // Remove the current tab and sub window
977 Tab t = mTabControl.getCurrentTab();
1039 Tab tab = mTabControl.getCurrentTab();
1040 if (tab == null) return; // monkey can trigger this
1041 boolean inLoad = tab.inLoad();
1044 WebView w = tab.getWebView();
1052 Tab tab = mTabControl.getCurrentTab();
1053 boolean inLoad = tab.inLoad();
1134 Tab currentTab = mTabControl.getCurrentTab();
1201 * @param index Index of the tab to change to, as defined by
1202 * mTabControl.getTabIndex(Tab t).
1203 * @return boolean True if we successfully switched to a different tab. If
1204 * the indexth tab is null, or if that tab is the same as
1208 Tab tab = mTabControl.getTab(index);
1209 Tab currentTab = mTabControl.getCurrentTab();
1210 if (tab == null || tab == currentTab) {
1218 mTabControl.setCurrentTab(tab);
1219 attachTabToContentView(tab);
1225 /* package */ Tab openTabToHomePage() {
1230 final Tab current = mTabControl.getCurrentTab();
1232 // This is the last tab. Open a new one, with the home
1238 final Tab parent = current.getParentTab();
1244 // Try to move to the tab to the right
1247 // Try to move to the tab to the left
1261 * @param needToAttach If true, the active tabs page did not attach a tab
1351 Tab current = mTabControl.getCurrentTab();
1389 Tab currentTab = mTabControl.getCurrentTab();
1432 Tab desiredTab = mTabControl.getTab(id);
1610 // decide whether to show the open link in new tab option
1643 // Attach the given tab to the content view.
1644 // this should only be called for the current tab.
1645 private void attachTabToContentView(Tab t) {
1647 // associated with the tab.
1674 // Attach a sub window to the main WebView of the given tab.
1675 void attachSubWindow(Tab t) {
1680 // Remove the given tab from the content view.
1681 private void removeTabFromContentView(Tab t) {
1698 /* package */ void dismissSubWindow(Tab t) {
1707 private Tab openTabAndShow(String url, boolean closeOnExit, String appId) {
1711 // This method does a ton of stuff. It will attempt to create a new tab
1712 // if we haven't reached MAX_TABS. Otherwise it uses the current tab. If
1714 /* package */Tab openTabAndShow(UrlData urlData, boolean closeOnExit,
1716 final Tab currentTab = mTabControl.getCurrentTab();
1718 final Tab tab = mTabControl.createNewTab(closeOnExit, appId,
1720 WebView webview = tab.getWebView();
1721 // If the last tab was removed from the active tabs page, currentTab
1726 // We must set the new tab as the current tab to reflect the old
1728 mTabControl.setCurrentTab(tab);
1729 attachTabToContentView(tab);
1731 loadUrlDataIn(tab, urlData);
1733 return tab;
1745 private Tab openTab(String url) {
1747 Tab t = mTabControl.createNewTab();
1969 * Close the tab, remove its associated title bar, and adjust mTabControl's
1970 * current tab to a valid value.
1972 /* package */ void closeTab(Tab t) {
1984 Tab current = mTabControl.getCurrentTab();
2002 Tab parent = current.getParentTab();
2005 // Now we close the other tab
2009 // force the tab's inLoad() to be false as we are going to
2010 // either finish the activity or remove the tab. This will
2100 // if tab page is showing, hide it
2196 final Tab parent = mTabControl.getCurrentTab();
2197 final Tab newTab = openTab(url);
2960 * @param tab The tab to show info about
2966 private void showPageInfo(final Tab tab,
2973 final WebView view = tab.getWebView();
2979 url = tab.getUrl();
2980 title = tab.getTitle();
3000 mPageInfoView = tab;
3066 showSSLCertificate(tab);
3079 * @param tab The tab to show certificate for.
3081 private void showSSLCertificate(final Tab tab) {
3083 inflateCertificateView(tab.getWebView().getCertificate());
3098 mSSLCertificateView = tab;
3111 showPageInfo(tab, false);
3120 showPageInfo(tab, false);
3448 final Tab currentTab =
3495 * @param startWithHistory If true, open starting on the history tab.
3496 * Otherwise, start with the bookmarks tab.
3559 * Load UrlData into a Tab and update the title bar to reflect the new
3561 * @param t The Tab used to load.
3564 private void loadUrlDataIn(Tab t, UrlData data) {
3823 private Tab mPageInfoView;
3839 private Tab mSSLCertificateView;
3956 * Load this UrlData into the given Tab. Use loadUrlDataIn to update
3959 public void loadIn(Tab t) {