Lines Matching full:current
36 private static final String CURRENT = "current";
48 // Current position in mTabs.
70 * Return the current tab's main WebView. This will always return the main
72 * @return The current tab's WebView.
83 * Return the current tab's top-level WebView. This can return a subwindow
85 * @return The top-level WebView of the current tab.
96 * Return the current tab's subwindow if it exists.
97 * @return The subwindow of the current tab or null if it doesn't exist.
127 * Return the current tab.
128 * @return The current tab.
135 * Return the current tab position.
136 * @return The current tab position
173 for (Tab current : mTabs) {
174 if (current != null && current.getId() == tab.getId()) {
176 + current.toString());
229 * Remove the tab from the list. If the tab is the current tab shown, the
238 // Grab the current tab before modifying the list.
239 Tab current = getCurrentTab();
244 // Put the tab in the background only if it is the current one.
245 if (current == t) {
249 // If a tab that is earlier in the list gets removed, the current
251 mCurrentTab = getTabPosition(current);
285 * current position
320 Tab current = getCurrentTab();
322 if (current != null) {
323 cid = current.getId();
325 outState.putLong(CURRENT, cid);
331 * current tab id is returned. This can be passed to restoreState below
340 final long oldcurrent = inState.getLong(CURRENT);
341 long current = -1;
343 current = oldcurrent;
348 current = id;
353 return current;
375 * @param restoreAll All webviews get restored, not just the current tab
406 // Me must set the current tab before restoring the state
417 // added the tab to the front as they are not current
475 private Vector<Tab> getHalfLeastUsedTabs(Tab current) {
478 // Don't do anything if we only have 1 tab or if the current tab is
480 if (getTabCount() == 1 || current == null) {
489 // available tabs which are not the current tab or the parent of the
490 // current tab.
495 if (t != current && t != current.getParent()) {
509 Tab getLeastUsedTab(Tab current) {
510 if (getTabCount() == 1 || current == null) {
516 // find a tab which is not the current tab or the parent of the
517 // current tab
520 if (t != current && t != current.getParent()) {
586 // Check the current tab first.
608 // Create a new WebView. If this tab is the current tab, we need to put
609 // back all the clients so force it to be the current tab.
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
642 * If force is true, this method skips the check for newTab == current.
645 Tab current = getTab(mCurrentTab);
646 if (current == newTab && !force) {
649 if (current != null) {
650 current.putInBackground();
664 // Display the new current tab