Home | History | Annotate | Download | only in browser

Lines Matching refs:newTab

633      * Put the current tab in the background and set newTab as the current tab.
634 * @param newTab The new tab. If newTab is null, the current tab is not
637 boolean setCurrentTab(Tab newTab) {
638 return setCurrentTab(newTab, false);
642 * If force is true, this method skips the check for newTab == current.
644 private boolean setCurrentTab(Tab newTab, boolean force) {
646 if (current == newTab && !force) {
653 if (newTab == null) {
657 // Move the newTab to the end of the queue
658 int index = mTabQueue.indexOf(newTab);
662 mTabQueue.add(newTab);
665 mCurrentTab = mTabs.indexOf(newTab);
666 WebView mainView = newTab.getWebView();
671 newTab.setWebView(mainView);
673 newTab.putInForeground();