summaryrefslogtreecommitdiff
path: root/src/com/android/browser/Controller.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix update screenshot when redirectedJohn Reck2011-02-161-1/+1
| | | | | | Bug: 3462227 Change-Id: I3c09bfe2b6ac15541f183b31eaa10b0dc3f3a29b
* look for null web viewsCary Clark2011-02-161-4/+2
| | | | | | | This edits change 96341. bug:3447246 Change-Id: Ica15a022cdfac1b98a6ee63c6d118eb01609fccb
* fix closing app tabsMichael Kolb2011-02-151-1/+1
| | | | | | | Bug: 3452002 Although not reproducible, the first tab was selected, not the last one. Change-Id: I2766150fa19bbdbc5a0fb46fa49f46a56f437666
* Merge "Do not allow saving a web archive of a web archive."Leon Scroggins2011-02-151-0/+5
|\
| * Do not allow saving a web archive of a web archive.Leon Scroggins2011-02-111-0/+5
| | | | | | | | | | Bug:3447246 Change-Id: Ie620d6567f676f3c5dca06c6fd1d869003fecd71
* | Only edit existing bookmark when bookmarking from the title bar.Leon Scroggins2011-02-111-2/+9
|/ | | | | Bug:3425178 Change-Id: I32341270440231a870dad5b007d218654760548b
* Show a toast when the web archive is saved.Leon Scroggins2011-02-111-0/+2
| | | | Change-Id: I539e158ddb63b1a670d9cdd5f15d09728e60a298
* Integrate Save WebArchive with download manager.Leon Scroggins2011-02-111-0/+48
| | | | | | | Bug:2968359 Bug:2905874 Change-Id: I80f557af415b03698325397d7a10d66bb0c10827
* Always update screenshots for bookmarksJohn Reck2011-02-101-40/+47
| | | | | | | | | | | Bug: 3425221 Changes the call to updateScreenshot to take the Tab so that it can more intelligently determine if it needs to update the screenshot. Specifically, if it is an HTTP/HTTPS URL, we always update (for things like most visited), and if it is a bookmark we always update (users are free to bookmark file:// urls, for example) Change-Id: I582284d612e77190404eb98de6ca8a0b21083ed1
* Clear session cookies before attempting pre-login.Patrick Scott2011-02-041-7/+24
| | | | | | | | | | | | | If ClientLogin issues session cookies, we do not want to clear them immediately after getting them from login. If we are not going to restore tabs, go ahead and clear the cookies before attempting pre-login. Keep track of the tab to restore so that we don't need to figure it out again. Requires a change in frameworks/base that exposes the CookieManager api. If we receive a 403 from IssueTokenAuth, inval the auth tokens and try again. Bug: 3421214 Change-Id: I5dd4cc0eba365a20a731ac43dd2571ef6274eaa9
* fix menu state after fullscreen videoMichael Kolb2011-02-021-0/+3
| | | | | | | | http://b/issue?id=3413957 before leaving browser activity, hide custom view this also restores the menu state Change-Id: Ie0859bc21b2821bb513eaea9ad3ea401b95dc177
* Re-login after a week.Patrick Scott2011-01-311-5/+13
| | | | | | | | Refactor GoogleAccountLogin to handle the progress dialog. Store the last login time and login after a week to refresh cookies. Bug: 3367395 Change-Id: I62a277610af5b642f51cc775f17806c558812d4a
* Fix incognito start pageJohn Reck2011-01-271-1/+2
| | | | | | Bug: 3400698 Change-Id: I1f64a15fb4309c5b84f791d792ed8446d606ec09
* fix incognito url loadingMichael Kolb2011-01-261-1/+2
| | | | | | | | http://b/issue?id=3349090 load "browser:incognito" explicitely when opening new incognito tab Change-Id: I3929605479a0869bd9361664e1ea1ee7c9476fc7
* add tab bar animationsMichael Kolb2011-01-251-4/+1
| | | | | | | http://b/issue?id=3281119 added in/out animations for tabs Change-Id: Ia8a467b93e5bc14b8b84cfe7b7e25ffbfadc7209
* hardware keyboard supportMichael Kolb2011-01-251-56/+10
| | | | | | | | | | | http://b/issue?id=3368141 http://b/issue?id=3368100 Removed duplicate key handling added focus transition from page to url bar once framework bug http://b/issue?id=3381411 is fixed, focus transitions in url bar will be fixed Change-Id: Id5011e78bf70d51a25a4e01cf31d9e6ad95ceab7
* Bookmark UI updateJohn Reck2011-01-141-3/+29
| | | | Change-Id: Ibdf7f93f7c5863d7108044dcd40d3866ff02518a
* fix link context menusMichael Kolb2011-01-141-23/+4
| | | | | | | | | | http://b/issue?id=3351385 http://b/issue?id=3352255 remove bookmark/share link option change open in new tab text based on open in background setting Change-Id: I3930d085339a7f829d8ef4f1afc879b4df743f24
* fix context menu titleMichael Kolb2011-01-131-5/+1
| | | | Change-Id: Ia7b3444d77753ed24bffd09a15176bf242a0314e
* Close cab before showing ComboPageMichael Kolb2011-01-121-0/+4
| | | | | | | http://b/issue?id=3312056 Close action mode before showing the ComboPage Change-Id: I5f3ac135fb4fd72bb0398f713bd12351fab072d0
* Merge "Changes Controller to use Tab.getUrl in more places" into honeycombJohn Reck2011-01-111-8/+11
|\
| * Changes Controller to use Tab.getUrl in more placesJohn Reck2011-01-111-8/+11
| | | | | | | | | | | | | | | | | | | | Bug: 3342456 Changes Controller to use Tab.getUrl() and then added empty url checks in places like doUpdateVisitedHistory. Tab already takes care of filtering URLs, so filtering out most visited URLs is thus handled. Change-Id: Iaf60353d7cb924991c5e0a5adf18074fcf13bfe6
* | restrict voice search to webMichael Kolb2011-01-111-0/+1
|/ | | | | | | http://b/issue?id=3176717 Add the EXTRA_WEB_SEARCH_ONLY to the intent Change-Id: I21e537957a16cd0e2847149a6d424417157844d1
* be exact about key accelerationCary Clark2011-01-101-4/+10
| | | | | | | | Make the key acceleration detection exact; if accelerator requires shift, allow only shift, and so on. bug:3301564 Change-Id: I9b0ff27d5bb1d91f8aa0eae0af37a6fe4dabc54e
* Call the new API for showFindDialog.Leon Scroggins2011-01-051-2/+2
| | | | | | | | Bug:3312049 Requires a change to frameworks/base. Change-Id: Iaa950c0cc52e8d28d36c99372299bae863957e8d
* Adds pseudo AA to thumbnailsJohn Reck2011-01-051-1/+10
| | | | | | | | | Bug: 3321583 This changes the thumbnail rendering to draw to a bitmap 2x as large and then down-scale with filtering to try and reduce aliasing on the thumbnails. Change-Id: Ifdc5254d6c49afbbd0b50d57a90f08faf25789e2
* Moves Tab.updateBookmarkedStatus to DataControllerJohn Reck2011-01-051-0/+1
| | | | | | | | | | | | | Bug: 3277738 Changed Tab.updateBookmarkedStatusForUrl from an AsyncTask to using the DataController. This also changes DataController from using Handlers and Messages to using its own message queue so that it can inspect and manipulate the queue (remove duplicate requests, for example). It also allowed for a cleaner API for callers, as it could then just take an interface callback instead of a Messenger to reply to. Change-Id: I4fd693c02d9e959b18e68fa474d2e3df94a305e0
* add Browser accelerator keysCary Clark2011-01-051-0/+109
| | | | | | | | Add implementations and placeholders for common accelerators, using the Chrome keyboard mapping as a guide. bug:3270434 Change-Id: Idf85aa4f0b61fb9b7e95d67afe9bd4fb6faaeefb
* Fix NPEJohn Reck2011-01-041-1/+1
| | | | | | | Bug: 3299384 Added missing null check. Change-Id: Ib26135c6f0d743c6cda34bb1b2df6079f7851e72
* Fix and hide action bar for html5 videoJohn Reck2010-12-221-0/+5
| | | | | | Bug: 3304569 Change-Id: Ic794b4f704c5da01a93990e08ec89b5c26ffc937
* Overhaul handling tab data updatesJohn Reck2010-12-171-52/+25
| | | | | | | | | | Bug: 2127502, 3191165 Pushed some state tracking to the tab for URL, title, favicon, and lock status. This allowed me to remove many duplicate methods of updating that data, preventing the UI from getting out of sync with the web view. Change-Id: I995caa98068ad03ca37710207b5ab57bb9d801ab
* Fix crash trying to add data: URLs to icon dbJohn Reck2010-12-161-25/+32
| | | | | | | | bug: 3291958 Made it so that only web urls have screenshots added to the database, preventing us from trying to query with extremely long data: urls Change-Id: Iabd3ebd5308d965a0ee383a6cdfbab15c91c5d91
* Closing last tab closes the browserJohn Reck2010-12-151-4/+1
| | | | | | | | Bug: 3254181 Closing the last tab will now close the browser rather than creating a new tab and then closing the old tab. Change-Id: Iac458783eea4c4a893671281f2a631e0365f8697
* extract anchor href and image src separatelyCary Clark2010-12-151-1/+5
| | | | | | | | | | | | | Long pressing a link may return an anchor, an image, or an image in an anchor. Sometimes we want one, sometimes the other. Make both available so the context menu can choose. Companion changes are in external/webkit, frameworks/base bug:3282745 bug:3263340 Change-Id: I382044c3ec760f086ac3f973b09af332d5d5f544
* Spec update for Bookmark widgetJohn Reck2010-12-151-8/+3
| | | | | | | | | | Bug: 3286323 This updates both the assets for the bookmark widget and slightly alters its behavior to match the updated spec. There are now two touch targets in the header, one launches the browser and the other launches the bookmarks view. Change-Id: I1e8864983852af8421280b86421dea1d9ed4335e
* Enable voice searchMichael Kolb2010-12-151-2/+14
| | | | | | | | | http://b/issue?id=3039695 send voice search intent implement voice search title bar also fixes another Urlbar focus handling bug Change-Id: Icdcbec9ffff586d445545cc7fe86ca045022f381
* Split UI based on screen sizeMichael Kolb2010-12-141-6/+0
| | | | | | Different UI implementation for normal and xlarge screens Change-Id: I8217ffd16e1f87b248a22426b17fa34b3a4f89df
* Private browsing cleanup is now done in webkitKristian Monsen2010-12-131-8/+0
| | | | | | Bug 3243891 Change-Id: Ia359d1138f50514decc72860a20532a755093f4b
* Propagate incognito mode to child tabMichael Kolb2010-12-101-27/+25
| | | | | | | | | Bug: http://b/issue?id=3234294 add parent tab parameter to open tab method inherit parent's private browsing status remove one unnecessary openTab signature Change-Id: I4edf002798d8bbdf4cafa58e5b5b442e74d5cb28
* Fixes history update race conditionJohn Reck2010-12-101-58/+4
| | | | | | | | | Bug: 3270709 Since ContentResolver does not have transaction support, I moved history updates to a controller that can serialize updates to the history table. This prevents the race condition. Change-Id: Ic33bedb9d6faef2393379306f8f88778d16caf24
* Warn user when max number of tabs is reachedMichael Kolb2010-12-101-7/+14
| | | | | | | Bug: http://b/issue?id=3123994 A toast is shown when the max number of tabs is reached Change-Id: I5008e227c91139147920fd214f184061f816a353
* fix ComboPage and tab interactionMichael Kolb2010-12-091-0/+6
| | | | | | | | Bug: http://b/issue?id=3259963 Make sure the combo page is hidden correctly when the user interacts with the tab bar Change-Id: I776b30690dbc10a399ca31f9e1c8b9c4f677a1d2
* Not using a async task for removing session cookiesKristian Monsen2010-12-091-12/+2
| | | | | | The cookie manager method are now taking care of making this async and blocking on the webcore thread Change-Id: I52d69b4e277aef84a59ff777302c7b223831b724
* Update each Tab when the bookmarks database changes.Leon Scroggins2010-12-071-0/+17
| | | | | | | | | | | Bug:3222677 When the bookmarks database changes, we may have added or removed a bookmark. For each Tab, make sure that it knows whether or not it is a bookmark, and update the UI accordingly. Change-Id: Ie91008973c2841dc7367e38ad5db40bf25b1dddf
* Clear session cookies in a bg threadKristian Monsen2010-12-071-1/+13
| | | | | | | | This buys us very little, as we wait on function returning just below. At least we are not doing disk access on the UI thread. Change-Id: I899a795ffbdd2ed63bf6ece70de52cfd48f65a1c
* Show a highlighted star for bookmarked pages.Leon Scroggins2010-12-061-0/+5
| | | | | | Bug:3222677 Change-Id: Ifeb6e7a922c0defb1e4a88ded0c188b97e0a4a56
* flushCookieStore() shouldn't be in the public API after all.Iain Merrick2010-12-061-1/+0
| | | | | | | See change Ic4433400, where I reorganised the framework so that cookies are synced automatically by CookieSyncManager. Change-Id: Ide0afbe60c6ca0601e7337051c6aa98522a8b0bb
* Change homepage setting handlingJohn Reck2010-12-031-29/+0
| | | | | | | | | Bug: 3247095 Tweaks the setting of the homepage setting. Replaces the "set to..." dialog with 2 buttons, and user can now enter a blank url to get a blank page with title "New Tab". Change-Id: I95bcfcd241db4b9efbde645100d2fd44c980e061
* Url bar selection handling updatedMichael Kolb2010-12-021-7/+18
| | | | | | | | | Bug: 3222647 framework has been updated to change the way tap/double tap and long press are handled url bar uses a custom action bar to add the share option Change-Id: Ie75fc07fe71c9e16fc7f83deda8ecddea39b0397
* Flush cookies when the browser is paused.Iain Merrick2010-12-011-0/+1
| | | | | | | | | | | | | | | Cookies are currently flushed on a 30-second timer, but this isn't sufficient because Android has a different application lifecycle from a desktop OS -- it can kill the app when it's in the background to save memory. Here we flush cookies during onPause(), so the most recent user activity should always be safely flushed to persistent memory. Depends on CookieManager change in frameworks/base (I04e96aff). Bug: 3231371 Change-Id: Iaa4541d4d18ab4c7bb6da372a4452f265b81d201