Home | History | Annotate | Download | only in browser

Lines Matching refs: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());
235 * Remove the tab from the list. If the tab is the current tab shown, the
244 // Grab the current tab before modifying the list.
245 Tab current = getCurrentTab();
250 // Put the tab in the background only if it is the current one.
251 if (current == t) {
255 // If a tab that is earlier in the list gets removed, the current
257 mCurrentTab = getTabPosition(current);
291 * current position
326 Tab current = getCurrentTab();
328 if (current != null) {
329 cid = current.getId();
331 outState.putLong(CURRENT, cid);
337 * current tab id is returned. This can be passed to restoreState below
346 final long oldcurrent = inState.getLong(CURRENT);
347 long current = -1;
349 current = oldcurrent;
354 current = id;
359 return current;
381 * @param restoreAll All webviews get restored, not just the current tab
412 // Me must set the current tab before restoring the state
423 // added the tab to the front as they are not current
481 private Vector<Tab> getHalfLeastUsedTabs(Tab current) {
484 // Don't do anything if we only have 1 tab or if the current tab is
486 if (getTabCount() == 1 || current == null) {
495 // available tabs which are not the current tab or the parent of the
496 // current tab.
501 if (t != current && t != current.getParent()) {
515 Tab getLeastUsedTab(Tab current) {
516 if (getTabCount() == 1 || current == null) {
522 // find a tab which is not the current tab or the parent of the
523 // current tab
526 if (t != current && t != current.getParent()) {
592 // Check the current tab first.
614 // Create a new WebView. If this tab is the current tab, we need to put
615 // back all the clients so force it to be the current tab.
639 * Put the current tab in the background and set newTab as the current tab.
640 * @param newTab The new tab. If newTab is null, the current tab is not
648 * If force is true, this method skips the check for newTab == current.
651 Tab current = getTab(mCurrentTab);
652 if (current == newTab && !force) {
655 if (current != null) {
656 current.putInBackground();
670 // Display the new current tab