summaryrefslogtreecommitdiff
path: root/src/com/android/browser/BrowserActivity.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | UI work on CombinedBookmarksHistoryMichael Kolb2010-08-211-5/+24
| | | | | | | | | | | | | | Adjust the CombinedBookmarksHistory activity to leave TabBar and UrlBar visible Enable clicks on the top bars to propagate back to the BrowserActivity Change-Id: Ie6aed7dc0777d31dafc7c31807adf17a60f57767
* | Add RLZ support to Browser.Jeff Davidson2010-08-191-0/+80
| | | | | | | | | | | | | | | | | | | | RLZ assigns non-unique, non-personally identifiable tracking labels to client products; these labels sometimes appear in Google search queries. See http://code.google.com/p/rlz for more info. Bug: 2927060 Change-Id: I992cd2859d590616df57293adb7ac22038088d49
* | incognito mode added for large screensMichael Kolb2010-08-181-0/+4
| | | | | | | | Change-Id: I8a3b479acc50c7e658e5d24e83ccf9256f4bf592
* | Fix Browser crash on search in new Browser session.Elliott Slaughter2010-08-181-1/+1
| | | | | | | | Change-Id: I7e96b062223c8ed2a15610dd52fa3b65656710d6
* | Switch the bookmarks and history over to fragments.Jeff Hamilton2010-08-181-2/+2
| | | | | | | | Change-Id: If4edc97d1115bfd261136d5b8cfc82afa21f8ced
* | Switch the history management over to the new provider.Jeff Hamilton2010-08-181-3/+4
| | | | | | | | | | | | | | Also fix up a bunch of bugs causing things like thumbnails to not be stored properly. Change-Id: I5758ee108734d9b50e741822dcbe86b7cc834e8e
* | Use ActionMode for Find-on-page and Copy.Leon Scroggins III2010-08-181-44/+73
| | | | | | | | | | Bug: 2641352 Change-Id: Ib5c0dd5997457a8d7b9a5c3e5a3727acc6a2f367
* | First revision of the new browser provider.Jeff Hamilton2010-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This one has support for bookmarks sync, has the bookmarks and history in separate tables, and supports hierarchical bookmarks. Compatibility with the old APIs is not yet complete. The Bookmarks UI has been switched over to the new provider. Creating bookmarks puts them in the UIs root folder. Change-Id: Ib21713ddd19f43d178d49dbac977f749e7103368
* | switched to using action bar for large screenMichael Kolb2010-08-131-13/+20
| | | | | | | | Change-Id: I33b6bcd78d4983e0ce1b503d3756687588dd8ed0
* | New tab flow through Bookmarks/History screenMichael Kolb2010-08-091-11/+16
| | | | | | | | Change-Id: I0f21279fea33582229f16f37bf813ad1fca15fc2
* | UI revision for tabbed browsingMichael Kolb2010-08-061-99/+93
| | | | | | | | | | | | | | | | | | | | bug # http://b/issue?id=2712871 separated tab bar from url bar subclassed webview for scroll listener added search button support Change-Id: Ib9bd0c7e815e2ef08cdd20334daf61263cd52938
* | Initial work on browser incognito mode history feature.Elliott Slaughter2010-08-051-10/+27
| | | | | | | | Change-Id: I5d1575a9b74704abc313b322ae08ca7caaccdc69
* | Fix build.Dianne Hackborn2010-08-051-9/+3
| | | | | | | | Change-Id: Ibd26d72bbe94c7de66849310d1cca0b75fb83963
* | tabbed title bar workMichael Kolb2010-07-271-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | bug # http://b/issue?id=2712871 added tab bar added tab status callbacks to Tab and TabControl added compact progress/stop/refresh button added UrlInputView for auto-complete suggestions modified BrowserProvider for url input suggestions modified BrowserActivity to use TitleBarXLarge Change-Id: I62db2be5b89f4c4f27c09dbc6fee7b3b0d5e91b5
* | remove save/restore picture from browser appCary Clark2010-07-271-0/+9
| | | | | | | | | | | | | | | | | | | | These pictures may be arbitrarily large, and with the newer caching mechanism, are rarely used. Also, remove any old pictures when the Browser starts. Change-Id: I08e1720a198b159733fda819304dc6af6811390a http://b/2650945
* | Add support for accept type="audio/*" and audio/*;capture=microphone in the ↵Ben Murdoch2010-07-211-3/+21
| | | | | | | | | | | | | | | | Browser file picker. Change-Id: Ie2da87381f020e2d66791e8214ff14dc4ed3b8da
* | Fix NPEs after merge of d159ec534823b87f9896843e95912b0df8c27e16 from openBen Murdoch2010-07-191-1/+1
| | | | | | | | | | | | source master. Change-Id: Ief98236102983698e4b753ec9649142761c86607
* | Capture API updates from new specificationBen Murdoch2010-07-161-6/+6
| | | | | | | | | | | | | | | | http://dev.w3.org/2009/dap/camera/ Replace "source" with "capture" and "gallery" with "filesystem". Change-Id: I6b95d2a24c8e8795e4cab62a023511047bb6ea26
* | Browser save page as web archive.Elliott Slaughter2010-07-121-0/+17
| | | | | | | | Change-Id: I01366f575f61fd6e2084ad003b860f5c6083258e
* | Improve the visibility and discoverability of the "add shortcutBen Murdoch2010-07-091-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to home" functionality in the Browser. When the user selects the bookmark button adjacent to the URL bar they will be prompted to either add a new bookmark for the current page or add a shortcut to the current page to their homescreen, rather than being taken to the bookmark management activity. The bookmarks button on the options menu will still take the user directly to the bookmark management activity. Bug: b/2794945 Change-Id: I07190250379f1d6e2fe6b8ea280317949cd58b15
* | Add camcorder support to the file picker.Ben Murdoch2010-07-061-17/+52
| | | | | | | | | | | | | | | | | | Camcorder will now be supported in the upload dialog for blank accept types, */* or video/*. Additionally web developers can specify "video/*;source=camcorder" to jump straight into the camcorder activity, or "video/*;source=gallery" to jump straight into the gallery filtered for videos. Change-Id: I5eb48273c71add12075b537fb56b17d5776ef40d
* | Make size of the webview screenshot configurable with width/height parameters.Ben Murdoch2010-06-301-11/+12
| | | | | | | | | | | | | | Although not visible at the moment, this is to enable us to take full-res screenshots to use as splash screens for the Web App runtime. Change-Id: Ib4e0e704e437f1b339e3bd0a814383dd355b9e93
* | fix related to bug http://b/issue?id=2101719Michael Kolb2010-06-291-24/+18
| | | | | | | | | | | | | | | | | | adjusted menu for large screen introduced new menu-xlarge for tablet menu added menu-normal with tablet menu for testing purposes added shortcut items to tablet menu Change-Id: Ic23cc7ccc02f57dca07fbd151c77dc490422874e
* | Prevent a null pointer exception.Leon Scroggins2010-06-291-1/+4
| | | | | | | | Change-Id: I6daa89bebcfd1168c76d214cf56ad1e9c18b2a58
* | If url hijacking happens on a newly opened child window,Grace Kloba2010-06-281-0/+27
| | | | | | | | | | close the child window after switching Activity. Fix http://b/issue?id=2764723
* | Update the lock icon when closing a tab.Leon Scroggins2010-06-281-0/+1
| | | | | | | | | | Bug: 2790724 Change-Id: Ia7431b033bd2b56629457fe38b392504862f26c5
* | Refactor find and select dialogsCary Clark2010-06-241-31/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (This is a work in progress -- assets in particular are not final) Use common code when showing the select and find dialogs. Both now use similarly constructed contextual action bars and share resources where possible. Both share a common base class so supporting code can communicate with either. Companion changes in frameworks/base and external/webkit Change-Id: I62e15afd2730444985f8dbd2472df3cae351f47a http://b/262451
* | Initial work on new browser barLeon Scroggins2010-06-161-11/+16
| | | | | | | | | | | | Bug 2712871 Change-Id: Id1c76b05a5f126a4a68369a32dda8975fc1d2e6b
* | Broadcast to the media scanner when the user takes a photo from the file ↵Ben Murdoch2010-05-271-0/+3
| | | | | | | | | | | | | | | | picker so that it gets added to their gallery rather than lingering inaccessible on the SD card. Change-Id: If7e67ff5b5126964f5e6cc1853e435abc2d75c40
* | Plugin may have Java components. So always refreshGrace Kloba2010-05-261-3/+1
| | | | | | | | | | if the package has been changed. Fix http://b/issue?id=2718983
* | Use the URL stored in the nav cache to open in new window.Leon Scroggins III2010-05-261-11/+18
| | | | | | | | | | | | | | | | | | | | | | Previously we passed a message to find out the URL, which introduced a delay before the window was actually opened. A possible result of the delay is a crash. Remove the delay and prevent the crash. Bug 2714880 Change-Id: Id1579adc258ff9b386d2dc08c3456b336cdbcc37
* | Add support for the camera as a source for the file picker.Ben Murdoch2010-05-201-4/+89
| | | | | | | | | | | | | | Determine whether to show the camera based on the accept type associated with the input element. Change-Id: I48fea76fbd7a1f3df3c87288f28e01a32d9e955e
* | Leave the title bar at the top of the screen for xlarge screen layout.Leon Scroggins2010-05-191-25/+66
| | | | | | | | | | | | | | | | | | Since the title bar is always at the top of the screen, there is no need for the fake title bar, so it is unused. Bug 2697366 Change-Id: I4aa2472cd747ed662b97713ff9c67f15e4c57e35
* | Adding accessibility content provider responsible for user script injectionSvetoslav Ganov2010-05-171-1/+6
| | | | | | | | Change-Id: I3ce7f684b69cc8e904dd4cf1f557b20987e8c6a5
* | Move the find dialog to the top of the screen.Leon Scroggins2010-05-101-2/+34
| | | | | | | | | | | | | | | | | | Adjust the animations for the new location, and remove the browser bar when Find is showing. Bug 2667046 Change-Id: I565106b6c7e02200ed45ae145033447a8931af62
* | Use the text in an anchor as the subject line when sharing a link.Leon Scroggins2010-05-101-34/+1
| | | | | | | | | | | | Bug 2652226 Change-Id: Ibebf6ee5fcb9a92bf377e5133a4249ddf5da9e18
* | Allow interaction with page while Find is up.Leon Scroggins III2010-05-061-4/+12
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to do this, I have changed the FindDialog from an actual Dialog, which steals all touch events, to a Linearlayout, which rests below the WebView. Also dismiss Find when the user opens/closes a subwindow, or navigates to a new page. res/layout/browser_subwindow.xml: Add an id to the holder for the subwindow, so it can be used to add the FindDialog. res/values/styles.xml: Remove the style for FindDialog, as the animations are now added in code (since FindDialog is now a LinearLayout, which has no theme). res/values/themes.xml: Deleted, as the only theme there was FindDialog, which has been removed. src/com/android/browser/BrowserActivity.java: closeFind is now the starting point for removing the FindDialog, so that it can be called from Tab. Close the FindDialog when a new page starts loading. Call showFind on the current Tab. src/com/android/browser/FindDialog.java Change from a Dialog to a LinearLayout, so it can be inserted into the layout. Call closeFind directly, which now calls dismiss. Perform the animations which were previously part of the theme. Remove the call to set the height of the find dialog, which is no longer necessary. Open and close the IME when opening and closing Find. src/com/android/browser/Tab.java Change pointer to mContainer to a LinearLayout, which is used to add the FindDialog. Add a pointer to BrowserActivity to SubWindowClient, which is then used to close the FindDialog in onPageStarted. Close find when adding/removing a Tab or its subwindow. Add showFind, which attaches it to the layout for the tab, and closeFind, which removes it from the layout. Requires a change to frameworks/base Change-Id: If6745fb65c5628da827781a7b98061e87b279844
* Click on notification for unfinished download, open downloads page.Leon Scroggins2010-04-191-1/+1
| | | | | | | | | | | | | BrowserActivity: Use OpenDownloadReceiver as class name, so that it will handle the notification from download manager. OpenDownloadReceiver: If the download is not complete, show the downloads page. Bug 2606772 Change-Id: Ifeeac0943650552c6da232cf98088bbf958fd403
* When loading a new Intent, remove appTab association.Leon Scroggins2010-04-151-0/+4
| | | | | | Bug 2598904 Change-Id: Ib4ef625606ccdae4b24efd0761f416e4851ca800
* Update screenshots in a background thread.Patrick Scott2010-04-151-23/+36
| | | | | Bug: 2591404 Change-Id: I380c77c1144a40b955b4fff321eb75c1c0765606
* Treat voice searches from within the browser differentlyLeon Scroggins2010-04-081-1/+4
| | | | | | | | | | | | | | | | | from those initiated from outside the browser. Fix for http://b/issue?id=2546173 For a voice search initiated from outside the browser, an appId will be attached. In that case, try to reuse the application tab. In TabControl.recreateWebView, treat this as if the url does not match the old url, so a new WebView will be created with a fresh history list, and the back key will exit the browser. However, if no appId is provided, simply reuse the current tab. In this case, the history list will be preserved, and pressing the back key will return to earlier voice searches. Change-Id: I9ec1efd56454ba94eb2bc348c4476fb6bd025dad
* use 565 bitmap instead of 4444 to improve qualityCary Clark2010-04-081-1/+1
| | | | | | http://b/2577416 Change-Id: I74f00f700bbe7bc1be9b790e075fec111765341c
* Show the faked title bar even content height is 0.Grace Kloba2010-04-021-4/+1
| | | | | | | | | | | Otherwise for the new window, we may have a long delay for showing progress which is only shown in the faked title bar now. I verified that we still get the benefit from the previous change by moving the faked title bar from sub panel to its own window. Fix http://b/issue?id=2568875
* Reduce reported "Displayed activity com.android.browser/.BrowserActivity"Grace Kloba2010-03-301-15/+9
| | | | | | | | | | | | | | | | | | | time from random 3~5s to consistent ~2.5s assuming no apps need to be killed in the start up. Move the faked title bar to its own Window instead of the sub panel of the main window. This way Browser can start when its main window is ready, instead of waiting for both windows are ready. Also we don't depend on mBrowserFrameLayout for the y position. We also don't need to check decorView's window token. Delay the fake tile bar starting time until the main window is ready. This way we ensure the main window will be drawn when it is ready. Otherwise the window manager will wait until all the current windows are ready before showing them. Fix http://b/issue?id=2548712
* Fix for bug 2538060. Decoding and encoding an URL.Kristian Monsen2010-03-301-29/+40
| | | | | | | | | Just encoding [ and ] instead of decoding and encoding again. This is because decoding is not a reversible function so we might not always get back to the same URL. Tested against bug 1634719, which this was a fix for. Change-Id: I041820c15e0a0cf2e6a20bea3801e8b5039d39d5
* Fixes browser to store and read HTTP authentication credentials in the ↵Steve Block2010-03-251-1/+1
| | | | | | correct WebView. Change-Id: Ib9831e7985232a5f362ef529d1aec2ee1e4fbecd
* fix monkey-triggered crashCary Clark2010-03-251-4/+2
| | | | | | | | While we're in there, change to void since callers never use boolean function result. Change-Id: Ia62f9dd5bac252a17bcc5086daed1407a2dbb4ff http://b/2544188
* Use system setting for default geolocation permissionsBjorn Bringert2010-03-251-0/+11
| | | | | | | | | | This reverts change I0be5dbf4d99d07ca13b07fb299155c5aa17a51bd and adds an observer on the new default geolocation permission secure setting. Bug http://b/issue?id=2535598 Change-Id: I4edcbd3080b7d3af5dc6d74f26779b6d92248010
* Use AsyncTask when calling Browser.updateVisitedHistoryLeon Scroggins2010-03-241-3/+17
| | | | | | | | | | Previously updateVisitedHistory itself used an AsyncTask, but since that method could be called from a non-main thread, move the AsyncTask to the call site. Part of http://b/issue?id=2539948 Change-Id: I9a70130ab125490fa96964ea9637eba67732180a
* reject unhandled key events if browser is pausedCary Clark2010-03-221-1/+1
| | | | | | http://b/2532511 Change-Id: Idd08b90d3a5dec61c9328eecda834f2fcc7d16f5