summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Controller.java
Commit message (Collapse)AuthorAgeFilesLines
* View images without throwing an intentMichael Kolb2011-09-281-2/+8
| | | | | | | | Bug: 5375434 load images directly into a new tab and set parent on the new tab Change-Id: I5b038d30127b6cf3144de4ae38e6f4ab6d9117a5
* Remove network connection error dialogJohn Reck2011-09-191-3/+0
| | | | | | Bug: 5341852 Change-Id: I34028cbfb6fa834624ccb816dda0824504b56028
* Use overlay action modeJohn Reck2011-09-161-17/+0
| | | | | | | | | | | | | | Bug: 5327408 By using actionBar: false with actionModeOverlay: true the action mode callbacks happen before the action mode animation. This allows us to animate down the URL bar at the same time if needed (when the URL is being edited). Overlay mode fixes the issue with webview being translated, which was what caused the selection handles to move. Only the selection handles were affected thanks to b/4982054 Change-Id: I8153de63124eb4e4d02e88637f0cf01658054a14
* Merge "Cleanup menus"John Reck2011-09-151-4/+18
|\
| * Cleanup menusJohn Reck2011-09-141-4/+18
| | | | | | | | | | | | Bug: 5290513 Change-Id: I2ca1de40fe362b74d941056504fc4e3249de03a3
* | Revert "Support for measuring page load times."Mathew Inwood2011-09-151-33/+1
|/ | | | | | | | | | | The page load time measurement was a stop gap measure until server side support is ready, and we don't want to ship with it in. Bug: 5266893 This reverts commit b4e831bf1ff62945199b89a77ad039be7bd16545. Change-Id: Iafc08cea88774e5ecf018112a25e4dc2993a4623
* Use onDraw instead of capturePicture for thumbnailsJohn Reck2011-09-081-31/+35
| | | | | | Bug: 5220344 Change-Id: I78ebbb8ae6c574d79b99fcde8220e5d08342876c
* Merge "Support for measuring page load times."Mathew Inwood2011-09-071-1/+33
|\
| * Support for measuring page load times.Mathew Inwood2011-09-061-1/+33
| | | | | | | | | | | | | | | | | | | | An app can attached a pending intent to an intent sent to the browser which will be send when the load completes. The browser will fill in the timestamp of when the page load completed, and details of preloading success or otherwise if this was used. Bug: 5259031 Change-Id: I2d025caabd6055ac25f06e69897a03d5c57c4f41
* | Monkey protectionJohn Reck2011-09-061-2/+8
|/ | | | | | Bug: 5134204 Change-Id: Id61b16b17b4a054ab7f1948614399f157f52821f
* Make sure preloaded tabs have unique IDs.Mathew Inwood2011-09-021-0/+1
| | | | | Bug: 5251821 Change-Id: I6dd7561a2461805912268a5faf967199cf39fd8c
* Unregister the NFC callback onPause.Ben Murdoch2011-09-021-2/+2
| | | | | | | | This prevents us from leaking BrowserActivity when we go to the background. Bug: 5233864 Change-Id: Idf59de67637c8c9eb39ea9f8b9cb93320c4afa99
* Merge "Fix blank page activity selection bug"John Reck2011-08-291-6/+2
|\
| * Fix blank page activity selection bugJohn Reck2011-08-291-6/+2
| | | | | | | | | | | | | | | | | | | | Bug: 5191031 Sets an app id on the tab so that if the intent comes back to us, it is opened in the current tab. Close empty tabs correctly if the intent goes elsewhere Fix Tab.syncCurrentState to deal with WebView.getUrl() == null correctly Change-Id: I31e1e1f6688fb5c5c31ba07dde4e6b3bad34fb13
* | Fix issues with state save/restoreJohn Reck2011-08-291-7/+3
|/ | | | | | | | | | | | | Bug: 5144214 Tracked down the issue with messed up state to a bug where tab ids were not unique, and would actually get messed up in restore. Switched it to the tab's responsibility to assign an id to itself in the ctor to make sure all possible paths where a tab is created are fixed as well as the tab being the best informed about whether or not it has an ID to restore from. Added some checks to watch for a similar problem in the future as well. Change-Id: Icd8333232a0baca7a3639323538886ea595de05a
* Updates for NDEF push API change.Nick Pelly2011-08-251-4/+2
| | | | Change-Id: I2390665d59f6b3868b5a3a27bfc38ea4c9cdf0d4
* Drop active tab check when blocking eventsMichael Kolb2011-08-241-14/+5
| | | | | | | Bug: 5198309 The active tab check was freezing the browser Change-Id: I3376c84bb178c02d02deb54bf23fa1149809963d
* Merge "Avoid showing previous tab when closing an app tab"Michael Kolb2011-08-221-2/+9
|\
| * Avoid showing previous tab when closing an app tabMichael Kolb2011-08-221-2/+9
| | | | | | | | | | | | | | | | Bug: 5188145 skip setActiveTab when closing a tab launched from an app set active tab in onResume Change-Id: If602358a61690f15fe2e81a6b3d62d51ad15e16d
* | Add bulletproofing to state recoveryJohn Reck2011-08-221-7/+2
|/ | | | | | Bug: 5166335 Change-Id: Ife9ef2da7664f8de6b0ff9655611efa78d84df05
* YAMR - Yet Another Menu ReorgJohn Reck2011-08-191-0/+10
| | | | | | Bug: 5186166 Change-Id: Icd459c8f9cd557659a5402431a843a856fb1b134
* Show web content before handling new intentMichael Kolb2011-08-181-0/+3
| | | | | | | | Bug: 5184826 hide nav screen before handling new intent Change-Id: I7d6b17f71bb45c05917a4d2346368f0f0188b5f5
* Merge "Faster all the things!"John Reck2011-08-171-20/+0
|\
| * Faster all the things!John Reck2011-08-171-20/+0
| | | | | | | | | | | | | | | | | | | | Bug: 5177959 Improve browser startup. Elinate IO access on UI thread during startup by removing the super legacy ClearThumbnails task. Also rework how the hardware acceleration debug setting works to remove the requirement for initialized BrowserSettings in onCreate Change-Id: I4c1014d380827af4833586e6a3ae842fd59aa48b
* | fix close tab keyboard shortcutMichael Kolb2011-08-161-6/+1
|/ | | | | | | | | Bug: 5129293 Tab closing is handled twice: as a menu shortcut and in the key handler removed the key handler Change-Id: I436b4bcb380ea4daeeea3a9f317e42142f1b2e69
* Fix monkey bugMichael Kolb2011-08-151-5/+14
| | | | | | | | Bug: 5166733 added missing return statements and valid active tab check Change-Id: Ida7ffa6faf77a95eaf19ef566176ad522be4efef
* Tab switcher animationMichael Kolb2011-08-151-0/+28
| | | | | | | | Bug: 5123884 first step towards animations between browser and tab switcher Change-Id: I1d959d42d0036f3c4498972fcc8ad434fa7f4437
* Merge "Don't hide the navscreen when going to bookmarks"John Reck2011-08-111-1/+2
|\
| * Don't hide the navscreen when going to bookmarksJohn Reck2011-08-111-1/+2
| | | | | | | | | | | | Bug: 5144826 Change-Id: If810b3d82c52265f841954f295f5974af9807a01
* | Menu shufflingJohn Reck2011-08-111-2/+0
|/ | | | | | | Bug: 5145209 Move some stuff from the overflow menu to the favicon menu Change-Id: Ied61630281f1fbb8078997d72af6333a6d527249
* Merge "Observe a flag to supress the HTTP auth dialog prompt and silently ↵Ben Murdoch2011-08-091-1/+1
|\ | | | | | | cancel auth."
| * Observe a flag to supress the HTTP auth dialog prompt and silently cancel auth.Ben Murdoch2011-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | Requires external/webkit change If8c6f22e8307e1e13b8f7ad29f79305ce24b3255 Requires frameworks/base change: Ida5708aad7cbe5633106e9ae2997c9231aaf95b8 Bug: 5094761 Change-Id: Id901855830bbe17ede8a18293cff2bbc0aad4ba8
* | close external tabs on backMichael Kolb2011-08-051-0/+3
|/ | | | | | | | | Bug: 4466495 close externally created tabs when the back button is used and no further back history is available Change-Id: If605474d929fb759226a1e1f4125bfaab43e6653
* Clear bitmap from canvas after done drawing to it.Dianne Hackborn2011-08-021-0/+1
| | | | Change-Id: I0ebc8510021a2dd0b147ced7890d939ec47809f6
* fix url action modeMichael Kolb2011-08-021-1/+1
| | | | | | | | | Bug: 5093025 The url bar is kept visible now It's still not perfect, because the url bar gets pushed down under the user's finger Change-Id: I7142cd1f442bf7e3b53af5aac150defda68661ed
* fix action bar and menuMichael Kolb2011-08-011-0/+1
| | | | | | | | | | | | | Bug: 5077207 Bug: 5097486 cleaned up action bar items dynamically change menu items based on context bookmarks option added to nav bar menu new tab added to navbar menu find/addbookmark only on real pages removed new incognito tab from tab switcher action bar Change-Id: I973f20a13bb7d9900041f717aff012e7a2c735b8
* fix last tab close bugMichael Kolb2011-08-011-0/+1
| | | | | | | | | | | | Bug: 5098467 The controller did not update the tab list correctly and called activity finish instead. The adapter got updated and showed the last tab still Now the controller removes the last tab before calling finish, so the visible update to the tab list is correct. Change-Id: Idf29dff7d60181c63f6b3ebcbc8a1562f027b2c1
* remove unused referencesMichael Kolb2011-07-281-15/+0
| | | | | | fixing the build Change-Id: I0eb96c00a50918bc2cbf588c6ee2bce8b7082358
* Restore overhaulJohn Reck2011-07-271-10/+49
| | | | | | | | Bug: 5069192 Store thumbnails in a database restored async for each tab Fix restoring a tab not restoring its current state Change-Id: I2c14e352638aac0ef766fb3bf4036ff220c53ecd
* handle preload tab when max count is reachedMichael Kolb2011-07-271-0/+7
| | | | | | | | | | Bug: 5066968 when opening the pre-load tab, check against max count if max count is already reached, replace the least used tab with the pre-loaded tab; it's back/forward history will be lost Change-Id: I091b6b066a3e990f330be458d4aff72f62c8de38
* Remove obsolete usage of WebIconDatabaseJohn Reck2011-07-261-37/+10
| | | | | | | Bug: 5019676 Removes some other legacy code Change-Id: I766d9d6f7805b5619a9769e6d72ae2f4c363d3ed
* Switch to a background thread poolJohn Reck2011-07-251-15/+15
| | | | | | | | | Bug: 5019676 Use a shared thread pool Eliminate some unnecessary use of AsyncTask (which has extra overhead compared to using a thread pool) Change-Id: I01d6c84816a9c9705216c8fdb8ed8c990265626a
* Quick disabling of state imagesJohn Reck2011-07-221-1/+1
| | | | | | Bug: 5069192 Change-Id: I9a9e16bb9014c2734cf258526a8579907a9f6791
* Preload crash recovery stateJohn Reck2011-07-221-2/+5
| | | | | | Bug: 5069111 Change-Id: Ia19d7b3a8eb483fc4e9076fa388c82d8673894ac
* Startup optimizationJohn Reck2011-07-211-17/+17
| | | | | | | | | | | | | 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
* ActionBar change for phonesJohn Reck2011-07-201-0/+26
| | | | | | Bug: 5022239 Change-Id: I0ccf131468cd129f4770ef85bde8d023670c33c8
* use system menuMichael Kolb2011-07-201-4/+4
| | | | | | | | | | | On phones with hardware menu key, use the framework's menu Also fixes: Bug: 5051899 remove overflow button from bar if menu key is present Nav options are not visible on tab switcher Change-Id: I5b55934a392a76f9d9ef16e3bf5c71f27b88d69a
* Move ComboView to its own activityJohn Reck2011-07-181-75/+32
| | | | | | Bugs: 5009130 3368824 Change-Id: I559bb88a1e759172ef9a7d2a8b41ea4c7e523ec6
* Closing last tab clears stateJohn Reck2011-07-171-0/+1
| | | | | | | | When closing the last tab, clear the crash recovery state. This prevents the issue where closing the last tab and re-launching browser would recover the last tab anyway Change-Id: Ia080aca5401fbc65e62a7651cb17cf9cd2e25ed8
* fix menu on tabletMichael Kolb2011-07-141-2/+4
| | | | Change-Id: I85b075d715a571faa78b50e45347d4e1eb2a712b