summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* Restore overhaulJohn Reck2011-07-271-2/+2
| | | | | | | | Bug: 5069192 Store thumbnails in a database restored async for each tab Fix restoring a tab not restoring its current state Change-Id: I2c14e352638aac0ef766fb3bf4036ff220c53ecd
* Preload crash recovery stateJohn Reck2011-07-221-1/+1
| | | | | | Bug: 5069111 Change-Id: Ia19d7b3a8eb483fc4e9076fa388c82d8673894ac
* Startup optimizationJohn Reck2011-07-211-7/+7
| | | | | | | | | | | | | Bug: 5019676 Save one thread by letting CrashRecoveryHandler re-use the BrowserSettings startup thread Lazy initialize the wake lock only if we need it (avoids IPC overhead at startup) Slight ordering shuffle in BrowserActivity to maximize the usefulness of the BrowserSettings startup thread Change-Id: I1fc7412d492f93e0630008fa6030da9e0d726ebb
* Move ComboView to its own activityJohn Reck2011-07-181-5/+2
| | | | | | Bugs: 5009130 3368824 Change-Id: I559bb88a1e759172ef9a7d2a8b41ea4c7e523ec6
* Null checkJohn Reck2011-07-171-2/+3
| | | | | | | | Bug: 5021967 Check if ACCESSIBILITY_SERVICE is null. Documentation claims this is acceptable, and it probably is happening due to low memory Change-Id: Ie12059236baedd8b149831ad24da74f79453fae8
* catch search key in browserMichael Kolb2011-07-071-0/+5
| | | | | | | | Bug: 5003493 When in browser, the hardware search key brings up the url bar for the current tab. Change-Id: I57a666a548771c7e5949116db71d2164cb8972fd
* Preloading support in browserMichael Kolb2011-06-301-1/+0
| | | | | | | | | | | | | | | | | Apps like the QSB can request the browser to preload a web page. - preloaded pages are not added to the browser history if they'r not seen by the user - when a request is received, a new tab is created for the preloaded page, but not added to the tab list - upon receiving the view intent for the preloaded page the tab is added to the tab list, and shown - if several pages are preloaded consecutively in the same tab, the back stack is cleared before it is displayed - preloaded pages use the main browser cookie jar, so pages that have never been viewed by the user can drop cookies Change-Id: I9ed21f2c9560fda0ed042b460b73bb33988a2e8a
* Prevent crashing in CrashRecoveryHandlerJohn Reck2011-05-271-2/+2
| | | | | | | Catch Throwable instead of Exception Don't save screenshots for crash recovery Change-Id: I22c36dc644ae597c609880d2ced79436918d83a6
* resolved conflicts for merge of e619f1e5 to masterJohn Reck2011-05-181-5/+3
|\ | | | | | | Change-Id: I04de9e92a91cd66e848d37cbb07f7d36a4edba06
| * Use tablet UI for largeJohn Reck2011-05-171-5/+3
| | | | | | | | | | | | Bug: 4443420 Change-Id: I51e85a75cc246e940374eca8eae43ddcd3898923
* | Browser settings refactorJohn Reck2011-04-261-11/+0
|/ | | | Change-Id: I6fc1b21f7ea692fbe37a17bf900e9b7408a9c077
* Fix back long press behaviorJohn Reck2011-02-241-0/+6
| | | | | | Bug: 3486271 Change-Id: I49eb218670b4082b1fcf6daaab025ec7e0be6b8c
* fix shortcut handlingMichael Kolb2011-02-161-1/+0
| | | | | | | | | | | | | | Bugs: 3400078 3270434 3368141 3381411 Fixed controller to check for menu & ctrl keys for shortcuts Changed focus handling in url bar Keyboard focus transitions are not 100% working yet, but it's possible to navigate to all the elements Change-Id: I514d85a37dae2589e3ce1ecb18c7fc0bf4e715f3
* Make bookmarks useable-ish on phonesJohn Reck2011-02-141-3/+8
| | | | | | | | This fix just makes it so that you can actually see and get to all the various controls. It is unpleasant to use, but at least it can be used at all. Change-Id: I43dabb337af61497ddee78cb07ffd04d2e9309b2
* Clear session cookies before attempting pre-login.Patrick Scott2011-02-041-6/+1
| | | | | | | | | | | | | 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
* Re-login after a week.Patrick Scott2011-01-311-32/+6
| | | | | | | | 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
* hardware keyboard supportMichael Kolb2011-01-251-2/+0
| | | | | | | | | | | 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-1/+1
| | | | Change-Id: Ibdf7f93f7c5863d7108044dcd40d3866ff02518a
* Skip auto sign-in if the user is already logged in.Patrick Scott2011-01-131-2/+12
| | | | | | Also delay dismissing the dialog to avoid flashing it briefly. Change-Id: I86c23ccebc6ccaad1feac56bea4ddcfefe1607f4
* Different approach to auto signin.Patrick Scott2011-01-131-3/+27
| | | | | | | | | | | | | On startup, attempt to log the user into google sites. Show a progress dialog that the user can cancel if login takes too long. Add a new preference for toggling auto signin. This preference shows the current account and allows the user to choose the account to use. If there are no accounts, the option is disabled. The saved account is validated each time it is accessed in case the account was removed. Bug: 3278072 Change-Id: I10ce1dc57a683b2820b17ef6955577037c82f332
* Spec update for Bookmark widgetJohn Reck2010-12-151-0/+2
| | | | | | | | | | 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
* Split UI based on screen sizeMichael Kolb2010-12-141-1/+8
| | | | | | Different UI implementation for normal and xlarge screens Change-Id: I8217ffd16e1f87b248a22426b17fa34b3a4f89df
* fix NPE in onDestroyMichael Kolb2010-12-061-3/+9
| | | | | | | | Bug 3255996 In case of a search we might exit the browser without ever creating a controller; added check to lifecycle methods. Change-Id: I5fc358c31263ff63297a18944dce230f48886628
* Debug settings changesJohn Reck2010-12-031-0/+17
| | | | | | | | Bug: 3250498 Makes OpenGL rendering and user agent normally visible in settings->debug Changing the OpenGL setting now automatically restarts the browser Change-Id: I04036b580f2463f77376edb4bee2dfefe3d123ed
* Fixes test errorsJohn Reck2010-12-021-6/+3
| | | | | | | | Bug: 3248213 Fixes errors in the tests that were caused by missing files, proguard, and the refactor. Change-Id: I503dfc7ee42d0173e3a5ad032f58a6f4f310588c
* Make BrowserSettings.loadFromDb asynchronousBen Murdoch2010-11-261-0/+5
| | | | | | | | | | | | | loadFromDb does a lot of disk IO, including accessing SQLite and SharedPreferences. This should not be done on the UI thread. With this patch we move it into an AsyncTask. However there is one caveat with this solution - all settings must be read and sent to WebCore before BrowserActivity.onCreate is called so we must block there if the async task is not complete. This is better than doing the IO on the UI thread though and fixes a load of Browser StrictMode violations. Change-Id: I0ab37ee9e95c682a59d6170a1327ae4ad1deceec
* Controller RefactorMichael Kolb2010-11-171-3979/+57
| | | | | | | | | | Bug: 3170671 First step towards a model/view/control design in Browser introduced Controller object started separating UI code represent state of the app in one place only Change-Id: Ica387d6bde2dcf1a4993c3db0cce498cf34ff60f
* Allow HW accleration to be activated on demand.Derek Sollenberger2010-11-161-9/+13
| | | | | | | | | This CL adds a debugging preference that allows developers to enable/disable Open GL rendering on demand. The setting change does not take effect until the browser is restarted. bug: 3185844 Change-Id: Ifcf5a7b7d4ddbf02a649a28c4f462e2da3f34bb6
* Fix issue introduced by API changeAdam Powell2010-11-161-0/+1
| | | | Change-Id: I869f6a197721350cd2aa17be923364a901951a8a
* Updated for ActionBar API changesAdam Powell2010-11-151-3/+3
| | | | Change-Id: I20d162c2921b1d8797594b162aaafd4a72aae607
* use new API (and not db) to access download notificationsVasu Nori2010-11-151-0/+3
| | | | | | | | | | | | | | | | | | | instead of opening a cursor on the database to retrieve the file to be opened when a notification is clicked on, use DownloadManager's newly introduced API to get Uri and its mimetype. also, in BrowserActivity, when downloading a file, allow it to be MediaScanner scannable and thus allow media files to be displayed in Gallery. by default, downloaded files DO NOT appear in Gallery app any longer depends on the following 3 CLs I1f5dd734e394db0056579a3a0c26862fee27981e I5c062ad6d1b58306044cee49ff3827e908d27fd9 Ia15000de4a66e8728b43fc53f428e098503b003b Change-Id: Iad11a63fe0a7b8de188d1b6dc0445ccb96211fb2
* Open downloads from notifications.Leon Scroggins2010-11-151-0/+2
| | | | | | | | | | Bug:3116742 When moving to the public API, notifications no longer worked as expected. Make downloads show after completing, and use the public API in OpenDownloadReceiver. Change-Id: Ia15000de4a66e8728b43fc53f428e098503b003b
* Remove the web archive UI from the browserTeng-Hui Zhu2010-11-051-33/+0
| | | | | | | | | | | This is a change intended to remove this UI from honeycomb. On the release after honeycomb, we are supposed to bring this UI back. http://b/issue?id=3158570 refer to http://b/issue?id=2905874 for more background Change-Id: Id9f83828f1bc5524c2dd2e46cf09f846f7916aed
* set http header 'cookie' before inserting download request in DMVasu Nori2010-10-291-1/+2
| | | | | bug:3136154 Change-Id: Id1c7547293e3b3779fffd21cd73717db8f2c4a1b
* Use the new public API for DownloadManager.Leon Scroggins2010-10-271-23/+18
| | | | | Bug:3116742 Change-Id: I5d0d9a12e1bd601cf6a95198578ce8f9acd81372
* Remove unused code.Leon Scroggins2010-10-221-20/+0
| | | | Change-Id: I2b9eae20e0e519ce3d7cc59681afcc2ca72ba10b
* Use constants in place of strings, and remove unused code.Leon Scroggins2010-10-221-33/+14
| | | | Change-Id: I4d27cf74edefcabacffbfc59fa8fe28f5b592fa7
* Incorporate save to home screen with add bookmark dialog.Leon Scroggins2010-10-221-85/+11
| | | | | | | | | | | Bug:2953515 Remove the initial popup menu when pressing the star that selects between saving to home screen and saving to bookmarks. Instead, once the add bookmark dialog is open, the user can select between bookmarks and saving to home screen. Change-Id: I35e8590ff6a2a7c2058e45e4f77ec6b5d209b0f9
* Rewrite HTTP auth dialog codeBjorn Bringert2010-10-151-81/+19
| | | | | | | | The old code reached into the AlertDialog view using hidden view ID constants to pull out the title. I've moved the dialog to its own class and made it only use public APIs. Change-Id: I84f576ece09ca802091175e1f928ae0be4a35d07
* Fixed lock icon, url touch area, dropdown visibilityMichael Kolb2010-10-141-4/+2
| | | | | | | | | | | Bug 2989058 Bug 3098918 added light colored icons (not final assets) added click handler to generic web icon fixed suggestion adapter result count Change-Id: I1842335be22eab6da2dd4187b2147e535a9ac77c
* fix history context menu bugMichael Kolb2010-10-141-0/+3
| | | | | | | | | http://b/issue?id=2953912 Note: the bookmark status (star) is not correct and will be fixed separately Change-Id: I20d1e52e9d6f6aeb7c0f1c66a61bed4d001e9092
* Remove unused drag tracking codeBjorn Bringert2010-10-141-7/+0
| | | | Change-Id: I1284704472178b0de6634e911fc88d37855b519d
* new bookmark screen part 2Michael Kolb2010-10-131-8/+19
| | | | | | | | | specs here: https://docs.google.com/a/google.com/present/edit?id=0ARMpWryWB2oaY2RkbmZwdnBfODc0Y2diYnBoNDc&hl=en moved tabs to top added bread crumbs view for folder hierarchy changed thumbnail sizes for xlarge screens Change-Id: I3035f299b343f9aa1ec0dd41772e5594cd6b21f5
* Use getters/setters for WebAddress fieldsBjorn Bringert2010-10-131-3/+3
| | | | Change-Id: If5be5f28ad0ba2dd7ed3caef587136dca120a055
* Remove some unnecessary use of hidden APIsBjorn Bringert2010-10-121-2/+2
| | | | Change-Id: Ie72947017550d759994e34d7db8087d1f9e6d63a
* am da0d5462: am 956cf01e: Remove QuickSearch shortcuts.Leon Scroggins2010-10-101-51/+6
|\ | | | | | | | | | | | | Merge commit 'da0d5462c9c522ef19b61b43ed3294ec49193f75' * commit 'da0d5462c9c522ef19b61b43ed3294ec49193f75': Remove QuickSearch shortcuts.
| * Remove QuickSearch shortcuts.Leon Scroggins2010-10-071-51/+6
| | | | | | | | | | Bug:3070691 Change-Id: If3a4214fea0bca8ee0b29c37d2bb67d8b3d00570
* | update bookmarks & history pageMichael Kolb2010-10-061-71/+77
| | | | | | | | | | | | | | | | convert combopage from activity to view embed combopage in main layout handle callbacks in BrowserActivity Change-Id: Ie5f092f5de677a960181544e7519c2f7d5cb86c1
* | Move AddBookmark dialog to upper right of screen.Leon Scroggins III2010-10-051-0/+3
| | | | | | | | | | | | Bug: 2953515 Change-Id: I5150cb5b5ac2034eb5f4fdfcee2165b845facd5b
* | move new tab button next to tabsMichael Kolb2010-10-011-3/+2
| | | | | | | | | | | | | | | | | | | | http://b/issue?id=3052018 moved tab button added new tab option to menu http://b/issue?id=3052583 changed text from window to tab Change-Id: I079636f29ea529915a5f8c3ad55b4b4c7afe579f