summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TitleBar.java
Commit message (Collapse)AuthorAgeFilesLines
* Replace TitleBar sub views with a ViewStub.Ben Murdoch2011-08-181-8/+40
| | | | | | | | Optimise startup performance by using a ViewStub for TitleBar views that aren't needed until later. Bug: 5179151 Change-Id: I87cf23cbd1e3b818a566c95dc6bb9cc1ff366587
* Snapshot title barJohn Reck2011-07-131-3/+23
| | | | | | Bug: 4982126 Change-Id: I67931d39e3a3ce535b38197ebeee1651241d1a60
* TitleBar refactorJohn Reck2011-07-111-0/+341
| | | | Change-Id: I0a2df041529143c8e0ff17af341376a3f827be04
* fix title barMichael Kolb2011-03-231-198/+0
| | | | | | | | Merge code from TitleBarXLarge down into base to support omnibox in both tablet and phone browser Change-Id: If54f3b162725411236f0b0676887bbcbdabadd25
* unify voice search codeMichael Kolb2011-03-201-24/+3
| | | | Change-Id: Icf1fc84405d08da8504ac91094e67c7d8d1c901d
* use BrowserWebView for all UIsJohn Reck2011-03-181-0/+8
| | | | | | Rename ScrollWebView->BrowserWebView Change-Id: Icce042be4ad054b1fc3d5c0f9500f8ea112479a4
* Phone UI title bar workJohn Reck2011-02-161-48/+13
| | | | | | | | | Updated progress bar to holo and below URL bar Removed spinner Swapped stop/bookmark with new assets Wired up bookmark listener to change star state Change-Id: Ie91ae446cc1c429ce4a1662cc337202aaf7877c3
* Fix title bar button handling on phoneJohn Reck2011-02-151-14/+28
| | | | Change-Id: I1bf298b93a54dd379a06d4752ae4ea7a65ad6950
* Switch the phone to use the omnibox instead of qsbJohn Reck2011-02-151-142/+29
| | | | | | Initial changes, needs more work Change-Id: Ic9bbe4eb8e95212baa7c40813217f01d9efdf286
* Only edit existing bookmark when bookmarking from the title bar.Leon Scroggins2011-02-111-1/+1
| | | | | Bug:3425178 Change-Id: I32341270440231a870dad5b007d218654760548b
* Change homepage setting handlingJohn Reck2010-12-031-2/+2
| | | | | | | | | 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
* Controller RefactorMichael Kolb2010-11-171-47/+59
| | | | | | | | | | 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
* Incorporate save to home screen with add bookmark dialog.Leon Scroggins2010-10-221-1/+2
| | | | | | | | | | | 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
* checkpoint for moving UI to Holo styleMichael Kolb2010-09-081-1/+1
| | | | | | | mostly final assets dialogs are not styled correctly Change-Id: Ib98312ca9465ded3efc2743f9828fe9a815814cc
* Improve the visibility and discoverability of the "add shortcutBen Murdoch2010-07-091-1/+1
| | | | | | | | | | | | | | | 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
* Initial work on new browser barLeon Scroggins2010-06-161-56/+4
| | | | | | Bug 2712871 Change-Id: Id1c76b05a5f126a4a68369a32dda8975fc1d2e6b
* Use the green box's padding, and not the TitleBar's padding.Leon Scroggins2010-04-151-2/+2
| | | | | | Bug 2566133 Change-Id: Ia780bcc74ad7317dfeea3adfc9a8c5eb4609d1f2
* Use new assets for green box in voice title bar.Leon Scroggins III2010-04-091-2/+5
| | | | | | | | | | | The new assets have a better margin to match the other search field textfields. Also update title_voice.xml to use a pressed state that matches the new assets. In TitleBar.java, do not clear out the vertical padding in voice search mode. Bug 2566133 Change-Id: Icb15d0660d2f06363e66adbdd92537e34b90b64e
* Add "android.speech.extras.SEND_APPLICATION_ID_EXTRA"=false to theMike LeBeau2010-04-011-0/+5
| | | | | | voice search intent, as discussed in http://b/2546173 Change-Id: I60650d096a874cfe089a4ba691c9ae44802f2419
* Lessen the difference in appearance of title bar during load.Leon Scroggins2010-03-311-40/+9
| | | | | | | | | | | | Change to using textfield_search_empty assets, which have margin values that better match the assets used outside of a load. As a result, there is no longer a need to edit the LayoutParams in TitleBar.java. However, do set the padding in TitleBar.java, since it needs to be set for each of the different backgrounds used. Fixes http://b/issue?id=2558919 Change-Id: Idf0d8bea59bcc76c32e1e03bf736a4b64bf31887
* Show stop button in a pressed state when pressed.Leon Scroggins2010-03-221-7/+8
| | | | | | Fix for http://b/issue?id=2533372 Change-Id: I9a614a95f5537d17c9cb89e96afe6c21fc56d59a
* Use a margin to make the title bar stay the same size while loading.Leon Scroggins2010-03-161-2/+43
| | | | | | | | | Allows title_bar to use wrap_content, and therefore be able to show multiple lines of text in voice search mode. Fixes http://b/issue?id=2510376 Change-Id: If196f63577b6606be0129ee224842dc858f5931a
* Attach the stop button to the textbox in the title bar.Leon Scroggins2010-03-041-9/+21
| | | | | | This also required using different assets for the title bar background. Fix for http://b/issue?id=2485473
* When long pressing on title bar, do not use WebView in onCreateContextMenuLeon Scroggins2010-02-231-1/+2
| | | | | | | Fix for http://b/issue?id=2456405 Override TitleBar::createContextMenu to call BrowserActivity's onCreateContextMenu directly, so that WebView is ignored, and we only get the options for TitleBar.
* Clear omnibox when pressing search key.Leon Scroggins2010-02-161-1/+1
| | | | | | | | Fix for http://b/issue?id=2442426 No longer override onSearchRequested, so that pressing the search key behaves normally. For touching the title bar, use the old onSearchRequested (renamed to editUrl).
* send broadcast intents to voice search for logging purposesLeon Scroggins2010-02-091-0/+18
| | | | Fix for http://b/issue?id=2390720
* Do not ellipsize the title bar in voice search mode.Leon Scroggins2010-02-081-0/+3
| | | | | | | | Fix for http://b/issue?id=2427828 Apparently TextView, when set to ellipsize="end", will truncate before going to three lines. Turn off truncation when in voice search mode.
* Trim the extra whitespace before passing to SearchDialog.Leon Scroggins2010-02-081-1/+1
| | | | Fixes http://b/issue?id=2427810
* Update look of title bar when in voice search mode.Leon Scroggins2010-02-051-2/+20
| | | | | | | | Fix for http://b/issue?id=2390713 Add the arcs to the end of the title. Change to multiline. Use the standard long press look.
* Handle the voice search intent.Leon Scroggins2010-01-291-9/+28
| | | | | | | | Once the voice search intent has been handled, the title bar background changes to green, and touching it displays other voice search possibilities. Fixes http://b/issue?id=2390686
* Always show the voice search button in the browser title bar when in voice ↵Leon Scroggins2010-01-251-17/+42
| | | | | | search mode. Fix for http://b/issue?id=2390704
* New assets. This makes the title bar's button match the voice button.Leon Scroggins2009-09-301-1/+1
| | | | Change-Id: I3c58dbaa02b5f81c6db5fb96ec1b8021728a5e66
* Add a context menu for the title bar.Leon Scroggins2009-09-241-0/+35
| | | | | | Fix for http://b/issue?id=2131232 Change-Id: I28f23d4dc1060208c3d12cf8e2bcbd0be24a9c6c
* Fix for the progress indicator not spinningNicolas Roard2009-09-161-2/+6
|
* Use an "X" on the title bar to allow the user to stop loading.Leon Scroggins2009-09-161-2/+1
| | | | | | See http://b/issue?id=2111209 Change-Id: I751f2f94d342fac67c4a9172704fbb0edda69075
* Remove the tab slider, and go back to simply using a touchable title bar.Leon Scroggins2009-09-151-9/+58
| | | | | | | | | | | 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
* Limit the touch area for opening search to the right edge of the textfield.Leon Scroggins2009-09-141-18/+5
| | | | | | | | | | | | | 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 the title bar when pressing bringing up the menu.Leon Scroggins2009-09-111-9/+33
| | | | | | | | | | | | | | | | | | 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
* Go to the home page when opening a new tab/the browser.Leon Scroggins2009-09-041-1/+1
| | | | | | | | 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
* New title bar look.Leon Scroggins2009-09-041-25/+35
| | | | | | | | | Use the same method as the search bar for showing the circular progress, which is much more visible than the current model. Use latest assets. Move the lock icon outside the textbox. Change-Id: I7fd5911cb4492d3cd52132e817da75f720b42b55
* Show the full url in the title bar.Leon Scroggins2009-09-031-1/+1
| | | | | | Fix for http://b/issue?id=2096235 Change-Id: I79d34c6e847587c63dc79b8c68813508eacaf9d5
* Update the appearance of the title bar in the browser.Leon Scroggins2009-09-011-61/+43
| | | | | | | | | 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
* Initial attempt to get the sliding title bar working, using a Gallery.Leon Scroggins2009-08-131-47/+56
| | | | | | | In addition the sliding title bar, I have now removed the TabPicker. Now, when changing to a new tab, we just go straight there. Also put back in Add bookmark in the top level menu. And fix the bug where switching tabs was always bringing up the bookmarks.
* Set a title for pages with no title.Leon Scroggins2009-07-201-4/+21
| | | | | | | In the title bar, we were showing "Loading..." as the title for a page that finished loading but still has no title. Now, display the url where the title is displayed and display nothing for the url.
* Fix a null pointer exception.Leon Scroggins2009-06-151-1/+4
| | | | | In setTitleAndUrl, check to make sure url is non null before calling url.toString().
* Only show the host portion of the url in the title bar.Leon Scroggins2009-06-111-1/+1
| | | | | | | For security reasons, we want to ensure that the domain name of the current page is being shown in the title bar. Use BrowserActivity's method of building the url for the title bar, which also shows https if it is a secure site.
* Updates to the browser's custom title bar.Leon Scroggins2009-06-091-34/+48
| | | | | | | | Use an asset copied from the Market for the background. Since this background is dark, change the title's text to white, as well as the dividing line. Changed the functionality of the buttons on the title bar. Also flipped the title and the url, and fixed a bug where "Loading..." remained for too long. Also added the drop shadow below the title bar.
* Use a custom title bar that is touchable.Leon Scroggins2009-06-041-0/+136
The new title bar is thicker and has areas that can be touched to open the search bar, zoom in, zoom out, and stop a load. Also inserted a flag to use the old title bar.