summaryrefslogtreecommitdiff
path: root/src/com/android/browser/TabControl.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Stop the loading after WAKELOCK_TIMEOUT (5min) whenGrace Kloba2009-10-061-0/+10
| | | | | | | | the Browser is in the background. So we won't continue to burn the battery if there is some mis-behaved JavaScript running. Fix http://b/issue?id=2147840
* Enable fading scrollbar for the BrowserGrace Kloba2009-09-281-0/+2
| | | Fix http://b/issue?id=2151115
* Use favicons in the tab page instead of a snapshot.Patrick Scott2009-09-231-59/+9
| | | | | | Remove the FakeWebView and all the picture stuff from the picker data. Use the favicon in a layout similar to history and bookmarks. Add tab_view_add_tab.xml to have a simpler layout for the "new tab" item in the list.
* Remove the WebView from its container to change focus.Patrick Scott2009-09-171-31/+66
| | | | | | | When the container is removed from the content view, its child views do not lose focus. Removing the WebView from the container as well will trigger a focus change from the WebView. Move the attach/remove logic to TabControl since it knows all about the containers.
* Fix the lock icon when switch tabs. Grace Kloba2009-09-161-0/+21
| | | | | | | | In switchToTab, I think it is wrong code where it calls removeTabFromContentView(tab). In openTabAndShow, we should really attach after we the tab to the current. Fix http://b/issue?id=2067930
* Check for null tabs before acquiring the parent tab.Patrick Scott2009-08-311-6/+8
| | | | | This prevents a NPE when the current tab is null. This is very rare but can still possibly happen.
* Initial attempt to get the sliding title bar working, using a Gallery.Leon Scroggins2009-08-131-1/+1
| | | | | | | In addition the sliding title bar, I have now removed the TabPicker. Now, when changing to a new tab, we just go straight there. Also put back in Add bookmark in the top level menu. And fix the bug where switching tabs was always bringing up the bookmarks.
* Pass unhandled keys up to the main tab.Patrick Scott2009-08-121-0/+10
|
* make private inner classes staticCary Clark2009-08-111-1/+1
| | | | | bug found by findbugs http://b/issue?id=1856695
* Adds the browser Geolocation permissions prompt.Steve Block2009-08-061-9/+65
| | | | | | | | Note that the appearance of the prompt has not yet been finalized. Also the interaction of the prompt with the animation used to move to and from the tab picker is not fixed. This may become unecessary if the tab selection UI is redisgned.
* When free the background tabs due to low memory, keep the parent tab of theGrace Kloba2009-08-031-3/+6
| | | | | | | | current tab around so that hit Back won't cause reload the page. This should address the complain of reloading while using Google Reader. Remove our own checkMemory() as the system now provides onLowMemory().
* Implement an error console. The console is displayed when the user has ↵Ben Murdoch2009-07-171-0/+24
| | | | enabled debug in the browser (been to about:debug) and there are errors on the page. It can be toggled on/off in debug mode in the settings menu.
* Try to reuse tabs with matching urls to avoid loading a new page.Patrick Scott2009-07-161-0/+39
| | | | | | | | | | If there is no matching application tab, try to find a regular tab (created in the browser) with a matching url. This avoids opening a new tab and loading a new page for a page that has already been loaded. TODO: There is a ton of duplicate code around animations to/from the tab overview. It is a massive amount of cruft and I really want to rewrite it all in a separate change.
* Show the new tab when creating it from the bookmarks/history.Patrick Scott2009-07-141-0/+5
| | | | | | | | | | | | When we are in the tab picker and a new tab is created from bookmarks/history, show the new tab in the picker and then animate to it. Only do this for the "open tabs in background" setting since openTab() will show the tab if that setting is false. We animate to the new tab because we currently don't have a way to show the new tab in the tab picker with updated picker data (title and url in particular). So instead of showing a blank tab, animate to the tab. Once the animations have been redesigned and the code refactored, this will hopefully get better.
* am 73972695: Merge change 4925 into donutAndroid (Google) Code Review2009-06-221-2/+3
|\ | | | | | | | | | | | | Merge commit '73972695c844b25370ad738bb76e8eb2e9cd81e6' * commit '73972695c844b25370ad738bb76e8eb2e9cd81e6': Fix 2 NPEs in the Browser.
| * Fix 2 NPEs in the Browser.Patrick Scott2009-06-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | The first was from freeMemory getting a tab back that had already been freed. This is a really hard case to reproduce but it appears that it can happen. So just check for a null mMainView before trying to free the tab. The second was a null mTabOverview during the onAnimationStart method when animating to the tab overview. I think this is caused by message delays not being accurate enough to ensure the overview has been created. A check for null fixes the problem for now but I am working on a better solution to ensure animation message order.
* | Call the WebViewCore's freeMemory instead of just clearCacheDerek Sollenberger2009-06-101-3/+3
| |
* | call webview's onPause/onResume in the right places:Mike Reed2009-05-281-27/+49
| | | | | | | | | | - pause when a view is in a non-current tab - pause the current view when the activity itself is paused
* | am 20abe04: Check for null before accessing mPickerData.Patrick Scott2009-04-291-2/+8
|\| | | | | | | | | | | | | Merge commit '20abe047a9f424a916e1b2a5d8b614b9b466e924' * commit '20abe047a9f424a916e1b2a5d8b614b9b466e924': Check for null before accessing mPickerData.
| * Check for null before accessing mPickerData.Patrick Scott2009-04-281-2/+8
| | | | | | | | | | | | It could be null when switching to a parent tab since the parent tab will be restored before showing the tab picker. This clears mPickerData before building the tab picker.
* | am 761b3b5: Merge change 423 into donutAndroid (Google) Code Review2009-04-291-31/+134
|\| | | | | | | | | | | | | Merge commit '761b3b5a23c06b64b9ecb99953665d2059e3b145' * commit '761b3b5a23c06b64b9ecb99953665d2059e3b145': Show the saved picture for freed tabs.
| * Show the saved picture for freed tabs.Patrick Scott2009-04-221-31/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a small class containing the data needed to display the saved or current picture. For freed tabs, inflate the picture and use the saved state from mSavedState. Reorganize populatePickerData to use the current top window or the saved state depending on if the tab has been freed. There was another bug where onNewPicture would update the wrong FakeWebView due to ListViews reusing the same view. Have the tab manage the new picture and invalidate the FakeWebView. When reusing the view, clear out the tab's FakeWebView field. Wipe all the picker data at the same time the ImageGrid and ImageAdapter are cleared.
* | Merge donut into masterJean-Baptiste Queru2009-04-221-2/+1
|\|
| * Browser: Remove references to android.util.ConfigDave Bort2009-04-131-2/+1
| | | | | | | | | | | | | | The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
* | Check for null before animating the tab/webview.Patrick Scott2009-04-201-0/+3
|/ | | | | | The tab will most likely not be null but the top window could easily be null if the tab has been freed due to low memory. Update getTabIndex to return -1 if the tab is null.
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-0/+2
|
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-25/+125
|
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-091-0/+2
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+937
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-935/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+24
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-21/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-6/+98
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+840