summaryrefslogtreecommitdiff
path: root/src/com/android/browser/BrowserActivity.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Reset title bar after closing tabAndrei Popescu2009-09-231-0/+1
| | | | Fixes http://b/issue?id=2139260
* switch to modern contact interfaceCary Clark2009-09-221-3/+3
| | | | | | | | The browser can launch an intent to add a phone number on a web page to a contact. Use the current interface to do so instead of the deprecated interface. Fixes http://b/issue?id=2126565
* Pass search intent extra data through the browserBjorn Bringert2009-09-221-2/+6
| | | | | | This is needed by some web search providers for logging. Change-Id: I7a6dba26d79ee97e4a4628269b212e80151ad9ee
* Support precomposed app icons.Patrick Scott2009-09-221-2/+25
| | | | | | The precomposed icon overrides any other touch icon. We still need to do the round rect clip because apparently apple still applies the rounded corners, just not the glass effect. Inset the rectangle by 1 to fit the icons better.
* Add a shadow to the fake title bar.Leon Scroggins2009-09-211-9/+7
| | | | | | | | | | | Remove old code which requests windowOverlays. When inserting the fake title bar, put a shadow underneath it. Do not show it if the scroll is at the top, since it is transparent, and showing it along with the shadow below the real title bar would show a darker shadow. Fixes http://b/issue?id=2118813 Change-Id: I84b8975ea82cc8659b702112c7e67498f863916c
* Check for a valid token before adding the fake title bar.Patrick Scott2009-09-211-1/+3
| | | | | | This is basically what happens when adding the view to the window. In some cases, the decor view may be null or the window token may be null which throws an exception.
* Update the correct favicon when starting the load.Patrick Scott2009-09-211-2/+10
| | | | | The WebView's original url and current url are incorrect during the provisional load. Use the given url instead when updating the favicon.
* Show the fake title bar when loading regardless of scroll position.Leon Scroggins2009-09-211-8/+2
| | | | | | Fix for http://b/issue?id=2131516 Change-Id: I7d5e02928a36d732b4fc4a2a6b47d7f59e473de1
* Put current screenshot under "Add" on bookmark thumbnail page.Ben Murdoch2009-09-211-10/+19
| | | | Change-Id: Iaf52037f755fea343ef68a23d3740f0f5cdcecb7
* Handle BACK key at UP in the Browser.Grace Kloba2009-09-201-74/+61
| | | | | | Remove KeyTracker, use KeyEvent instead. Remove ImageGrid and ImageAdapter.
* Add progress view and default poster for the <video> implementationAndrei Popescu2009-09-181-0/+38
|
* This tries to address a potential Browser CPU spinningGrace Kloba2009-09-171-3/+19
| | | | | problem. Fix http://b/issue?id=2127825
* Remove the WebView from its container to change focus.Patrick Scott2009-09-171-25/+9
| | | | | | | 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.
* Remove the old network status intent.Patrick Scott2009-09-171-17/+22
| | | | | | Use NetworkInfo to see if we are connected to a network instead of the intent extra. Update the network dialog text and refactor the alert dialog creation to reuse code.
* Remove the shadow in the Browser. Use xml to indicate windowNoTitle.Grace Kloba2009-09-161-1/+0
| | | http://b/issue?id=2125456
* Make the fake title bar extend to the full width.Leon Scroggins2009-09-161-1/+1
| | | | Change-Id: I3d20459c6c93e4d5186a8135168b3b7e7d97ad1c
* Fix the lock icon when switch tabs. Grace Kloba2009-09-161-29/+27
| | | | | | | | 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
* Make the fake title bar look more like the regular title bar.Leon Scroggins2009-09-161-2/+25
| | | | | | | | | Place the fake title bar in FrameLayout with a shadow overlay and a white background so it will look like the embedded title bar. Fixes http://b/issue?id=2123300 and part of http://b/issue?id=2118813 Change-Id: I079cd5100dbc344867a75e3593471bc0c1e3d8eb
* Need to add touch icon when adding bookmark through menu.Grace Kloba2009-09-161-0/+1
| | | | Fix http://b/issue?id=2123469
* Do not show the title bar if the Activity is paused.Leon Scroggins2009-09-151-1/+2
| | | | | | | | | | | | | | Fix http://b/issue?id=2121363 We attempt to show the fake title bar as a result of a callback. It is possible that we receive this callback while the BrowserActivity is not running (not sure how to reproduce, exactly, but the monkey did it; see the bug). Before showing the title bar, do a check to see if the BrowserActivity is currently paused, and only show it if not. Change-Id: I770a1f86ae50f936f45bbf1dc2f047049b8e1aa3
* Remove the tab slider, and go back to simply using a touchable title bar.Leon Scroggins2009-09-151-50/+14
| | | | | | | | | | | Remove the tab slider (TitleBarSet) from eclair. In TitleBar, override onTouchEvent to handle touches as either presses of the right button or the textfield. Fix the press states on the title bar to correctly reflect what will happen if you release your finger. Change-Id: I025b55e5ba546e8be4e9360e6f7db80fb6d9d3f9
* When opening in the background, do not move the tab to front.Leon Scroggins2009-09-151-8/+1
| | | | | | | | | | | Remove some code which I assume was there for going to the tab overview, and was incorrectly kept around. When opening a tab in the background, we do not need to set it as the current tab. Fixes http://b/issue?id=2118522 Change-Id: Ieaf512399b03307a1f70d952b648c0cfcf181c29
* Prevent showing the title bar while the active tabs page is showing.Leon Scroggins2009-09-151-1/+2
| | | | | | | | When opening the active tabs page, hide the titlebar. Also, when attempting to show the title bar, do not do it if the active tabs page is showing. Change-Id: Iee7e76056317c3bdf7f5023d59745ecaf3a3bbc1
* Call resetTitle() when switching tabs.Patrick Scott2009-09-151-0/+1
| | | | | | This will update the progress and the refresh/stop menu item. Bug: 2118878
* Fix a potential null pointer exception.Leon Scroggins2009-09-141-1/+3
| | | | | | Fixes http://b/issue?id=2075672 Change-Id: I8e1d052bb8316452405e8364e69d7092fefa4e10
* Limit the touch area for opening search to the right edge of the textfield.Leon Scroggins2009-09-141-6/+21
| | | | | | | | | | | | | Now all single taps to the title bar will result in either a search or opening the bookmarks picker, depending on whether they were past the right edge of the textfield. Fixes http://b/issue?id=2113429 Also move the lock icon in between the favicon and the url. See http://b/issue?id=2085847 Change-Id: I30447aa7517b6fc801d3cf34eff233db3a4ce635
* Show title bar while loading, and hide it when finished loading.Leon Scroggins2009-09-141-7/+29
| | | | | | Fix for http://b/issue?id=2107276 Change-Id: I96cb4d3bd71edeb38b3afc7e58a339021a81ed46
* Show the title bar when pressing bringing up the menu.Leon Scroggins2009-09-111-147/+164
| | | | | | | | | | | | | | | | | | Show an actionable title bar at the top of the screen when the menu shows. Change TitleBar* to take a Bitmap for setFavicon, and move the logic for creating the drawable into TitleBar, so that we can update directly from the WebView (whose getFavicon method returns a bitmap). Remove CUSTOM_BROWSER_BAR, since we are set on using our custom title bar, and it enabled me to put mGenericFavicon in TitleBar. Also take screen density into account when sizing the icons for the title bar. Change-Id: I3ee6b1d02e8845299f9cd1f648b271543683954a
* Remove the active tabs page when pausing the BrowserActivity.Leon Scroggins2009-09-111-0/+8
| | | | | | This fixes http://b/issue?id=2113505 Change-Id: Ibb66546a86082986170ec983c4e081008182baac
* allow mixed-case schemes in user-defined URLsCary Clark2009-09-101-0/+18
| | | | | | Adjust the scheme to all lower case before fixing the URL. This allows mixed-case entries in bookmarks to resolve to a conical lower case URL.
* Add an active tabs page.Leon Scroggins2009-09-101-8/+49
| | | | | | | | | | The active tabs page gives the user the ability to see all of their open tabs in a list, and switch tabs, create a new one, or close an old one. Fix for http://b/issue?id=2101994 Change-Id: Id4c14dd437f769144dbdb02011144ea97d8fd030
* Remove clientid from the url before it is added to the database. So that weGrace Kloba2009-09-091-0/+11
| | | | | | | won't show them in the auto-complete list. Update the browser.db and remove history only entries who has clientid. Fix http://b/issue?id=2099727
* Go to the home page when opening a new tab/the browser.Leon Scroggins2009-09-041-46/+17
| | | | | | | | As requested in http://b/issue?id=2101999, we are going back to opening the home page when opening the browser or a new tab. Change-Id: I2608bab74494a0af2919bf351340579bcd58201f
* Clean up changes from attaching title bar to top of WebViewLeon Scroggins2009-09-041-2/+2
| | | | | | | Renamed addTitleBar to setEmbeddedTitleBar. Requires a change to frameworks/base Change-Id: I0ea3c969dbd8c365a9f71eb373b11ddb0aa30b9b
* Attach the title bar to the top of the page.Leon Scroggins2009-09-021-27/+6
| | | | | | | | | Remove the old notions of changing the viewing mode resulting in changing the visibility of the title bar. Instead, attach the title bar to the current WebView. Requires a change to frameworks/base. Change-Id: I65ba1182db040848700840e6229d7e1a7c6050d0
* When we close a window on exit, make sure pauseWebView taking action byGrace Kloba2009-09-011-0/+4
| | | | | | setting mPageStarted to false. Part 1 for fixing http://b/issue?id=2087410
* Update the appearance of the title bar in the browser.Leon Scroggins2009-09-011-1/+15
| | | | | | | | | Change the title bar to use the look of the search bar. Remove the new tab button, which is now a part of the updated menu. Make the title bar for each WebView span the width of the screen. Make the title bar appear when pressing the menu button. Change-Id: I7ad1c955412d422be0fc6f26ec8d286172a0a99a
* Use the new code values for onReceivedError.Patrick Scott2009-08-311-6/+6
|
* Do not include ourselves as a candidate for downloading content.Patrick Scott2009-08-311-12/+25
| | | | | | | | | If we are attempting to download a file and try to resolve to another activity, it is possible to get BrowserActivity as the best candidate. In that case, we need to fall back to the download manager. If we do not, we end up in a loop trying to download the file and sending ourselves a new intent. BUG: 2062310
* Use the estimated size of new databases as the default quota if we have ↵Ben Murdoch2009-08-261-4/+5
| | | | | | enough space to satisfy it. Change-Id:I23daac8fbf27f50f304ee53060353423deaed50a
* Implement new title bar behavior.Leon Scroggins2009-08-241-6/+18
| | | | | | | | Depends on a change to frameworks/base. When loading a new page, display the title bar. Implement a callback so that we can toggle the title bar's visibility on mobile sites. Change-Id: Ie2cbe2a53bcfd1bcc9fb9d2f12285ecf45e06997
* Fix a bug where we were opening a new tab unnecessarily.Leon Scroggins2009-08-191-2/+5
| | | | | | Code got changed along with other code. When changing to an appTab, if it matches the current tab, do nothing. Fixes http:/b/issue?id=197317
* Allow user to enter a URL to visit a site without closing the browser.Leon Scroggins2009-08-181-0/+7
|
* resolved conflicts for merge of 918e1d78 to eclairGrace Kloba2009-08-181-0/+10
|\
| * Fix http://b/issue?id=2052775. According to the comment, we try to callGrace Kloba2009-08-131-1/+10
| | | | | | | | | | | | pauseWebView(). But as mActivityInPause is false, pauseWebView doesn't do anything. This cause inbalanced pause/resume and the WebCoreThread's timer is never put on hold even Browser is in the background.
* | Ensure that switching tabs also updates the title bar.Leon Scroggins2009-08-181-2/+6
| | | | | | | | | | In particular, when we open a tab associated with an appId, move the title bar to that tab's title.
* | Disable "open in new window" if Go came up from a new tab.Leon Scroggins2009-08-171-2/+5
| |
* | Fix several bugs surrounding the "go" screen and closing tabs.Leon Scroggins2009-08-171-24/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | http://b/issue?id=2053635 : Home page should appear when last tab is closed http://b/issue?id=2049620 : click on a link opening a new window should skip the landing page http://b/issue?id=2042079 : When I open a new tab, then hit back get strange state Now if you close the last tab, it will bring up the "go" screen. If you hit back, it closes the browser; otherwise it will go where the user specifies. When opening a new tab, if the user hits back, it will close this new tab. This also prevents the "go" screen from coming up unnecessarily when a link opens in a new window.
* | Bring up search directly from the Go page.Leon Scroggins2009-08-171-2/+0
| | | | | | | | | | | | | | Rather than returning to BrowserActivity to bring up search, bring it up directly from the Go page. This means that hitting back from search will take you to the Go page (if you reached search from the Go page). Fixes http://b/issue?id=2042017
* | Hide the title bar when zoomed inLeon Scroggins2009-08-141-0/+14
| |