OSDN Git Service

android-x86/packages-apps-Browser.git
15 years agoam 27b0a497: Merge change 3315 into donut
Android (Google) Code Review [Sat, 6 Jun 2009 04:16:50 +0000 (21:16 -0700)]
am 27b0a497: Merge change 3315 into donut

Merge commit '27b0a4977829fa0cc362506236d17e95192a6f37'

* commit '27b0a4977829fa0cc362506236d17e95192a6f37':
  Remove test library and instrumentation defs from Browser.

15 years agoMerge change 3315 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 18:50:32 +0000 (11:50 -0700)]
Merge change 3315 into donut

* changes:
  Remove test library and instrumentation defs from Browser.

15 years agoam 0d7ae0ed: Fix a monkey crash.
Leon Scroggins [Fri, 5 Jun 2009 18:41:24 +0000 (11:41 -0700)]
am 0d7ae0ed: Fix a monkey crash.

Merge commit '0d7ae0ed82e21d472cde8cf92b5657d8ee8ca0d8'

* commit '0d7ae0ed82e21d472cde8cf92b5657d8ee8ca0d8':
  Fix a monkey crash.

15 years agoRemove test library and instrumentation defs from Browser.
Brett Chabot [Fri, 5 Jun 2009 18:21:18 +0000 (11:21 -0700)]
Remove test library and instrumentation defs from Browser.

See bug 1900802.

15 years agoFix a monkey crash.
Leon Scroggins [Fri, 5 Jun 2009 15:04:45 +0000 (11:04 -0400)]
Fix a monkey crash.

The monkey crashed because getTopWindow() returned null.
Ensure that we either have a top window, or we are in
the tab picker.  If neither is true, return false, to
avoid the null pointer exception.

15 years agoWhen a JavaScript console message is received from WebCore, write it to the log.
Ben Murdoch [Wed, 3 Jun 2009 17:21:19 +0000 (18:21 +0100)]
When a JavaScript console message is received from WebCore, write it to the log.

15 years agoam bd34f7db: Merge change 3134 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 05:42:06 +0000 (22:42 -0700)]
am bd34f7db: Merge change 3134 into donut

Merge commit 'bd34f7dbbb25059121c2eb9f0d3d8478d78e7e63'

* commit 'bd34f7dbbb25059121c2eb9f0d3d8478d78e7e63':
  Change the default client id for better stats

15 years agoam bc5b9f35: Include ACCEPTED_URI_SCHEMA in url patterns to skip.
Satish Sampath [Fri, 5 Jun 2009 05:41:54 +0000 (22:41 -0700)]
am bc5b9f35: Include ACCEPTED_URI_SCHEMA in url patterns to skip.

Merge commit 'bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f'

* commit 'bc5b9f358a2b75bf3a104b9f5cd477ad2f6f740f':
  Include ACCEPTED_URI_SCHEMA in url patterns to skip.

15 years agoUse a custom title bar that is touchable.
Leon Scroggins [Thu, 4 Jun 2009 21:45:11 +0000 (17:45 -0400)]
Use a custom title bar that is touchable.

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.

15 years agoam 598c9ccf: Do not use the original url in onReceivedTitle.
Patrick Scott [Thu, 4 Jun 2009 20:40:15 +0000 (13:40 -0700)]
am 598c9ccf: Do not use the original url in onReceivedTitle.

Merge commit '598c9ccf8641e0e4563bba2fd5613bcb4de766ec'

* commit '598c9ccf8641e0e4563bba2fd5613bcb4de766ec':
  Do not use the original url in onReceivedTitle.

15 years agoMerge change 3134 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 17:52:24 +0000 (10:52 -0700)]
Merge change 3134 into donut

* changes:
  Change the default client id for better stats

15 years agoInclude ACCEPTED_URI_SCHEMA in url patterns to skip.
Satish Sampath [Thu, 4 Jun 2009 17:21:40 +0000 (18:21 +0100)]
Include ACCEPTED_URI_SCHEMA in url patterns to skip.

Without this inclusion, the web search detection code thought that URLs
of the format about:blank or about:debug were web searches and passed
them on to the search provider.

15 years agoDo not use the original url in onReceivedTitle.
Patrick Scott [Thu, 4 Jun 2009 15:10:38 +0000 (11:10 -0400)]
Do not use the original url in onReceivedTitle.

We used to use the original url because that was what was entered into the
history database. Now, with a change in webkit, the correct url will be passed
to updateVisitedHistory if the server sent a redirect. This allows for the
correct url and title to be displayed in the title bar as well as the correct
url and title to be stored in the history.

15 years agoChange the default client id for better stats
Ramanan Rajeswaran [Thu, 4 Jun 2009 02:34:58 +0000 (19:34 -0700)]
Change the default client id for better stats

15 years agoresolved conflicts for merge of 565505 to master
Satish Sampath [Wed, 3 Jun 2009 17:25:32 +0000 (18:25 +0100)]
resolved conflicts for merge of 565505 to master

15 years agoUse system default web search & suggestions providers.
Satish Sampath [Fri, 29 May 2009 14:37:27 +0000 (15:37 +0100)]
Use system default web search & suggestions providers.

- Web search was hard coded to Google and suggestions in the search dialog were hard coded to the GoogleSearch suggest provider package. Both now point to the system default web search/suggest provider which can include third party search engines.
- I also removed the intent filter to handle action.WEB_SEARCH from the browser because it should no longer provide web search functionality for other apps, that feature is provided by the recently added WebSearchProvider package. Removing this intent filter also removes the browser from the list of web search providers in the system settings.
- As part of this change I had to factor out the search shortcut code to a separate function, add a couple of new functions and modify the browser provider code to access cursor fields in a safe manner.

15 years agoam 8dd422a6: Change the string for the browser in global search from "Bookmarks ...
Mike LeBeau [Wed, 3 Jun 2009 15:39:26 +0000 (08:39 -0700)]
am 8dd422a6: Change the string for the browser in global search from "Bookmarks & history" to "Browser".

Merge commit '8dd422a6b60f82a950900fb12d3ba987edac3e86'

* commit '8dd422a6b60f82a950900fb12d3ba987edac3e86':
  Change the string for the browser in global search from

15 years agoChange the string for the browser in global search from
Mike LeBeau [Wed, 3 Jun 2009 14:42:13 +0000 (15:42 +0100)]
Change the string for the browser in global search from
"Bookmarks & history" to "Browser".

15 years agoam c5f4f732: Use "unknown" as the default value for the client id to avoid crashing.
Patrick Scott [Tue, 2 Jun 2009 15:55:43 +0000 (08:55 -0700)]
am c5f4f732: Use "unknown" as the default value for the client id to avoid crashing.

Merge commit 'c5f4f732aea6303e5c3630d982847a26d41715f5'

* commit 'c5f4f732aea6303e5c3630d982847a26d41715f5':
  Use "unknown" as the default value for the client id to avoid crashing.

15 years agoUse "unknown" as the default value for the client id to avoid crashing.
Patrick Scott [Tue, 2 Jun 2009 15:45:54 +0000 (11:45 -0400)]
Use "unknown" as the default value for the client id to avoid crashing.

15 years agoEnable setting home page from bookmarks/history.
Leon Scroggins [Thu, 28 May 2009 21:27:38 +0000 (17:27 -0400)]
Enable setting home page from bookmarks/history.

Fix for issue 1482954: Longpress on bookmark or history should set homepage
[1/1].  Add a string for set homepage.  Add the option in both the context menu
for the browser history and for browser bookmarks.  In BrowserHistoryPage and
BrowserBookmarksPage handle the new option by setting the new homepage.

15 years agocall webview's onPause/onResume in the right places:
Mike Reed [Thu, 28 May 2009 15:08:32 +0000 (11:08 -0400)]
call webview's onPause/onResume in the right places:
- pause when a view is in a non-current tab
- pause the current view when the activity itself is paused

15 years agoAdd location info to the SEARCH and change it to use postUrl instead of loadUrl(...
Grace Kloba [Tue, 26 May 2009 22:41:51 +0000 (15:41 -0700)]
Add location info to the SEARCH and change it to use postUrl instead of loadUrl() when it is needed.

Have to change the signature of sendAnimateFromOverview to include the extra postData field.

Temp add ""&action=devloc" to enable server side location query.

15 years agoMerge change 2450
Android (Google) Code Review [Tue, 26 May 2009 20:23:51 +0000 (13:23 -0700)]
Merge change 2450

* changes:
  Searching the history now checks for matches to the title.

15 years agoSearching the history now checks for matches to the title.
Leon Scroggins [Tue, 26 May 2009 19:57:35 +0000 (15:57 -0400)]
Searching the history now checks for matches to the title.

Fix for http://b/issue?id=1853732 : Searching the browser
provider does not match bookmarks based on title.

15 years agoMerge commit 'f2c5c1b555904400f4092888ae81b8ed74bfe026' into manualfix
Grace Kloba [Tue, 26 May 2009 18:32:53 +0000 (11:32 -0700)]
Merge commit 'f2c5c1b555904400f4092888ae81b8ed74bfe026' into manualfix

Conflicts:
src/com/android/browser/BrowserSettings.java

15 years agoFix #1722851. Move the Browser's default home page to the resource so that we can...
Grace Kloba [Tue, 26 May 2009 17:48:31 +0000 (10:48 -0700)]
Fix #1722851. Move the Browser's default home page to the resource so that we can localize it easily.

15 years agoMerge change 2255
Android (Google) Code Review [Tue, 26 May 2009 13:16:22 +0000 (06:16 -0700)]
Merge change 2255

* changes:
  Fix an issue where bookmarking https: sites doesn't work.

15 years agoFix an issue where bookmarking https: sites doesn't work.
Leon Scroggins [Thu, 21 May 2009 23:13:04 +0000 (16:13 -0700)]
Fix an issue where bookmarking https: sites doesn't work.

Fix for issue 1863535.  We were storing https:// sites in
the database without https:, so it was stored as a non
secure site.  Then going back to that bookmark does not work.
Now, use the truncated url to compare, but store the original
url (with https at the beginning)

15 years agoDo not display unvisited sites in the history.
Leon Scroggins [Thu, 21 May 2009 20:00:19 +0000 (13:00 -0700)]
Do not display unvisited sites in the history.

Fix for issue 1831854: An unvisited, bookmarked site
shows up in the history under "1 month ago".  This is
because although the site will be in the database with
a visited date of 0, it has some visits, so that it
will raise its priority in other lists.  Now, ignore
any sites with a visited date of 0 (or less) in the
history page.  Make the HistoryAdapter's member
variables private, and make the where clause final.

modified:   src/com/android/browser/BrowserHistoryPage.java
modified:   src/com/android/browser/BrowserHistoryPage.java

15 years agoRemove an unnecessary field.
Leon Scroggins [Thu, 21 May 2009 19:39:59 +0000 (12:39 -0700)]
Remove an unnecessary field.

This string was used for logging error messages, but
it is not used.

15 years ago[findbugs] Add the static keyword to unchanging integers.
Leon Scroggins [Thu, 21 May 2009 19:37:10 +0000 (12:37 -0700)]
[findbugs] Add the static keyword to unchanging integers.

mUrlIndex, mTitleIndex, and mBookmarkIndex are member variables
which are the same for all MyAdapters, so change them to static.

15 years agoMerge change 1898
Android (Google) Code Review [Thu, 21 May 2009 15:27:38 +0000 (08:27 -0700)]
Merge change 1898

* changes:
  Fix issues found by FindBugs.

15 years agoam 123ecfb2: bug fix: browser was not replacing whitepsace in url if scheme is not...
Mitsuru Oshima [Tue, 19 May 2009 06:56:13 +0000 (23:56 -0700)]
am 123ecfb2: bug fix: browser was not replacing whitepsace in url if scheme is not fully lowercased.

Merge commit '123ecfb21e7ca670e3d04efe58780b3bac54a9a1'

* commit '123ecfb21e7ca670e3d04efe58780b3bac54a9a1':
  bug fix: browser was not replacing whitepsace in url if scheme is not fully lowercased.

15 years agoam 6eea6456: Add data scheme support to Browser
Mitsuru Oshima [Tue, 19 May 2009 06:56:13 +0000 (23:56 -0700)]
am 6eea6456: Add data scheme support to Browser

Merge commit '6eea6456fed41b1c94a41d2507d4a2d8cfcae27e'

* commit '6eea6456fed41b1c94a41d2507d4a2d8cfcae27e':
  Add data scheme support to Browser

15 years agobug fix: browser was not replacing whitepsace in url if scheme is not fully lowercased.
Mitsuru Oshima [Tue, 19 May 2009 02:11:14 +0000 (19:11 -0700)]
bug fix: browser was not replacing whitepsace in url if scheme is not fully lowercased.

15 years agoAdd data scheme support to Browser
Mitsuru Oshima [Fri, 15 May 2009 18:09:58 +0000 (11:09 -0700)]
Add data scheme support to Browser

15 years agoFix issues found by FindBugs.
Leon Scroggins [Mon, 18 May 2009 20:58:08 +0000 (16:58 -0400)]
Fix issues found by FindBugs.

Remove inefficient "new String(String)" constructor.  Also use
Integer.valueOf() instead of "new Integer".

15 years agoMerge change 1812
Android (Google) Code Review [Mon, 18 May 2009 15:31:23 +0000 (08:31 -0700)]
Merge change 1812

* changes:
  Remove an unused variable found by FindBugs.

15 years agoRemove an unused variable found by FindBugs.
Leon Scroggins [Fri, 15 May 2009 21:34:07 +0000 (17:34 -0400)]
Remove an unused variable found by FindBugs.

Remove the variable mOk, which is never referenced.

15 years agoam c42f81b8: Get the color value for the search url color from a theme value (depende...
Mike LeBeau [Fri, 15 May 2009 18:51:29 +0000 (11:51 -0700)]
am c42f81b8: Get the color value for the search url color from a theme value (dependent on change 1691, and will not submit until that is submitted).

Merge commit 'c42f81b8a0233af34aeba7526489883f6a1e0542'

* commit 'c42f81b8a0233af34aeba7526489883f6a1e0542':
  Get the color value for the search url color from a theme value

15 years agoTrack the package manager. So if there is a Browser plugin installed or unintalled...
Grace Kloba [Thu, 14 May 2009 21:45:40 +0000 (14:45 -0700)]
Track the package manager. So if there is a Browser plugin installed or unintalled, we will update the WebView properly.

15 years agoGet the color value for the search url color from a theme value
Mike LeBeau [Thu, 14 May 2009 22:04:19 +0000 (15:04 -0700)]
Get the color value for the search url color from a theme value
(dependent on change 1691, and will not submit until that is
submitted).

15 years agoam 1ef26a30: Only swap title and subtitle for website suggestions; query suggestions...
Mike LeBeau [Thu, 14 May 2009 22:18:14 +0000 (15:18 -0700)]
am 1ef26a30: Only swap title and subtitle for website suggestions; query suggestions should still stay the same (i.e., query in title, number of results in subtitle).

Merge commit '1ef26a30d0372d9fe55e8cb877b1b94bc93c2829'

* commit '1ef26a30d0372d9fe55e8cb877b1b94bc93c2829':
  Only swap title and subtitle for website suggestions; query suggestions

15 years agoOnly swap title and subtitle for website suggestions; query suggestions
Mike LeBeau [Thu, 14 May 2009 03:11:00 +0000 (20:11 -0700)]
Only swap title and subtitle for website suggestions; query suggestions
should still stay the same (i.e., query in title, number of results in
subtitle).

Also update all url subtitles to be green text as per search UI standards.

And change the text of "Search Google" to "Search the web" to accommodate
upcoming choices of web search provider.

15 years agoam 21beb13: Swap the title and subtitle of browser suggestions, so the w
Mike LeBeau [Wed, 13 May 2009 22:27:03 +0000 (15:27 -0700)]
am 21beb13: Swap the title and subtitle of browser suggestions, so the w

Merge commit '21beb13181eb2b04a0356c77e0c737ea7acdad71'

* commit '21beb13181eb2b04a0356c77e0c737ea7acdad71':
  Swap the title and subtitle of browser suggestions, so the webpage title

15 years agoSwap the title and subtitle of browser suggestions, so the webpage title
Mike LeBeau [Wed, 13 May 2009 21:57:50 +0000 (14:57 -0700)]
Swap the title and subtitle of browser suggestions, so the webpage title
shows as the first line and the url shows as the second line. Preceding
"http://" is stripped from urls. If the first line would be empty or
whitespace, the second line is promoted to the first line.

This affects suggestions both for the browser and for global search. I
thought this looked a lot better so ran it by Leland and he's cool with
this.

I went ahead and reused the raw int values being used for column indices
and such, but this is bad. You guys should really consider making this
code a little safer/cleaner. :)

15 years agoMake menus inactive when needed and only show possible quotas
Nicolas Roard [Tue, 12 May 2009 15:31:33 +0000 (16:31 +0100)]
Make menus inactive when needed and only show possible quotas

15 years agoAdd UI support in the browser for HTML5 databases
Nicolas Roard [Mon, 11 May 2009 12:34:17 +0000 (13:34 +0100)]
Add UI support in the browser for HTML5 databases

15 years agoMerge change 1287
Android (Google) Code Review [Mon, 11 May 2009 13:40:51 +0000 (06:40 -0700)]
Merge change 1287

* changes:
  When adding a bookmark, use the same database entry as the history item.

15 years agoWhen adding a bookmark, use the same database entry as the history item.
Leon Scroggins [Fri, 8 May 2009 22:17:08 +0000 (18:17 -0400)]
When adding a bookmark, use the same database entry as the history item.

Fix for buganizer issue 1659694.  Prior to this change, the user could
visit http://cuil.com, and then bookmark http://www.cuil.com, and the
bookmark would be stored in the database as a separate entry.  This
results in the bookmark claiming to have been visited long ago.  Now,
the two are stored as one entry, clearing up disagreements about
number of visits and last visited date.

15 years agoAvoid using a deprecated method.
Leon Scroggins [Fri, 8 May 2009 17:54:52 +0000 (13:54 -0400)]
Avoid using a deprecated method.

The Cursor method commitUpdates has been deprecated, in favor
of using ContentResolver.update.  Eliminate this call of
commitUpdates.

15 years agoam 910ac1a: Merge change 1006 into donut
Android (Google) Code Review [Thu, 7 May 2009 20:57:12 +0000 (13:57 -0700)]
am 910ac1a: Merge change 1006 into donut

Merge commit '910ac1a8b53218984608d0d4ebde767f2c6c7f63'

* commit '910ac1a8b53218984608d0d4ebde767f2c6c7f63':
  Update google_search_base for chinese language.

15 years agoMerge change 1006 into donut
Android (Google) Code Review [Thu, 7 May 2009 20:56:49 +0000 (13:56 -0700)]
Merge change 1006 into donut

* changes:
  Update google_search_base for chinese language.

15 years agoUpdate google_search_base for chinese language.
Bill Napier [Tue, 5 May 2009 20:16:30 +0000 (13:16 -0700)]
Update google_search_base for chinese language.

Changed default search base for china to be www.google.cn and changed the language param.

15 years agoMerge change 646
Android (Google) Code Review [Thu, 7 May 2009 07:09:20 +0000 (00:09 -0700)]
Merge change 646

* changes:
  Use ViewStub for setEmptyView (bug 1803058)

15 years agoam 9c7a356: Add includeInGlobalSearch to Browser bookmarks search.
Bjorn Bringert [Wed, 6 May 2009 12:28:43 +0000 (05:28 -0700)]
am 9c7a356: Add includeInGlobalSearch to Browser bookmarks search.

Merge commit '9c7a356d95f0c9bf84b0cf5dd4215a6d77fc0149'

* commit '9c7a356d95f0c9bf84b0cf5dd4215a6d77fc0149':
  Add includeInGlobalSearch to Browser bookmarks search.

15 years agoAdd includeInGlobalSearch to Browser bookmarks search.
Bjorn Bringert [Tue, 5 May 2009 11:09:06 +0000 (12:09 +0100)]
Add includeInGlobalSearch to Browser bookmarks search.

This will allow bookmarks+history suggestions to show
up in global search without having it hard-coded
in GlobalSearch.SuggestionSources.

15 years agoam d582359: am a6911fc: AI 148147: Import lots of zh_TW translation chan
Eric Fischer [Fri, 1 May 2009 01:12:54 +0000 (18:12 -0700)]
am d582359: am a6911fc: AI 148147: Import lots of zh_TW translation chan

Merge commit 'd58235994a49b720cae95663bdda395f91a4b1c0'

* commit 'd58235994a49b720cae95663bdda395f91a4b1c0':
  AI 148147: Import lots of zh_TW translation changes.

15 years agoam a6911fc: AI 148147: Import lots of zh_TW translation changes.
Eric Fischer [Fri, 1 May 2009 00:37:28 +0000 (17:37 -0700)]
am a6911fc: AI 148147: Import lots of zh_TW translation changes.

Merge commit 'a6911fcc3a90faa8cd9dd01c856dc5ac15937a7a' into donut

* commit 'a6911fcc3a90faa8cd9dd01c856dc5ac15937a7a':
  AI 148147: Import lots of zh_TW translation changes.

15 years agoAI 148147: Import lots of zh_TW translation changes.
Eric Fischer [Fri, 1 May 2009 00:32:15 +0000 (17:32 -0700)]
AI 148147: Import lots of zh_TW translation changes.

Automated import of CL 148147

15 years agoam d2490b1: am 9ebc0f0: AI 148026: Update zh_TW translations.
Eric Fischer [Fri, 1 May 2009 00:24:24 +0000 (17:24 -0700)]
am d2490b1: am 9ebc0f0: AI 148026: Update zh_TW translations.

Merge commit 'd2490b12abd8109ce93df2f2265d890c3acb186a'

* commit 'd2490b12abd8109ce93df2f2265d890c3acb186a':
  AI 148026: Update zh_TW translations.

15 years agoam 9ebc0f0: AI 148026: Update zh_TW translations.
Eric Fischer [Fri, 1 May 2009 00:10:36 +0000 (17:10 -0700)]
am 9ebc0f0: AI 148026: Update zh_TW translations.

Merge commit '9ebc0f0882535b716ef65233d965a8980232dfe1' into donut

* commit '9ebc0f0882535b716ef65233d965a8980232dfe1':
  AI 148026: Update zh_TW translations.

15 years agoAI 148026: Update zh_TW translations.
Eric Fischer [Thu, 30 Apr 2009 23:48:33 +0000 (16:48 -0700)]
AI 148026: Update zh_TW translations.

Automated import of CL 148026

15 years agoMerge change 421
Android (Google) Code Review [Thu, 30 Apr 2009 17:06:35 +0000 (10:06 -0700)]
Merge change 421

* changes:
  Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.

15 years agoam 2f7c6be: Update browser suggestion icons.
Bjorn Bringert [Thu, 30 Apr 2009 16:20:54 +0000 (09:20 -0700)]
am 2f7c6be: Update browser suggestion icons.

Merge commit '2f7c6be6f223c262b29b45d611a7b87777bbf933'

* commit '2f7c6be6f223c262b29b45d611a7b87777bbf933':
  Update browser suggestion icons.

15 years agoam e90ede4: Add bookmarks search activity to browser.
Bjorn Bringert [Thu, 30 Apr 2009 16:20:54 +0000 (09:20 -0700)]
am e90ede4: Add bookmarks search activity to browser.

Merge commit 'e90ede446d39dfbee45bcaef6a5ae876a5c92752'

* commit 'e90ede446d39dfbee45bcaef6a5ae876a5c92752':
  Add bookmarks search activity to browser.

15 years agoam bcd20b3: Import clean-up in BrowserProvider.
Bjorn Bringert [Thu, 30 Apr 2009 16:20:54 +0000 (09:20 -0700)]
am bcd20b3: Import clean-up in BrowserProvider.

Merge commit 'bcd20b33a57c6505eb610c9d0bad2aa643bc2dfc'

* commit 'bcd20b33a57c6505eb610c9d0bad2aa643bc2dfc':
  Import clean-up in BrowserProvider.

15 years agoam 346dafb: Add search suggestions for just bookmarks+history.
Bjorn Bringert [Thu, 30 Apr 2009 16:20:54 +0000 (09:20 -0700)]
am 346dafb: Add search suggestions for just bookmarks+history.

Merge commit '346dafbfbd4c43fb6e71227b5c812978a1d9ac3f'

* commit '346dafbfbd4c43fb6e71227b5c812978a1d9ac3f':
  Add search suggestions for just bookmarks+history.

15 years agoMerges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.
Ben Murdoch [Wed, 22 Apr 2009 11:34:12 +0000 (12:34 +0100)]
Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.

15 years agoUpdate browser suggestion icons.
Bjorn Bringert [Wed, 29 Apr 2009 21:41:39 +0000 (22:41 +0100)]
Update browser suggestion icons.

The existing icons for bookmarks, history and search suggestions
in the browser are quite small and don't match the search suggestion
icons used in the rest of the system.

15 years agoAdd bookmarks search activity to browser.
Bjorn Bringert [Wed, 29 Apr 2009 21:33:52 +0000 (22:33 +0100)]
Add bookmarks search activity to browser.

This activity is never started from the browser. Its purpose
is to provide bookmark suggestions to global search (through
its searchable meta-data), and to handle the intents produced
by clicking such suggestions.

15 years agoImport clean-up in BrowserProvider.
Bjorn Bringert [Wed, 29 Apr 2009 20:52:09 +0000 (21:52 +0100)]
Import clean-up in BrowserProvider.

While I was working on BrowserProvider, I noticed some unused and
incorrecly ordered imports.

15 years agoam 24e1ec6: Fix Google search suggestions in Browser address bar.
Bjorn Bringert [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am 24e1ec6: Fix Google search suggestions in Browser address bar.

Merge commit '24e1ec69f429c0dc5205e021a46c2b432b2ce652'

* commit '24e1ec69f429c0dc5205e021a46c2b432b2ce652':
  Fix Google search suggestions in Browser address bar.

15 years agoam 3ea6f86: am 94d2163: AI 147962: Import updated zh_TW translations.
Eric Fischer [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am 3ea6f86: am 94d2163: AI 147962: Import updated zh_TW translations.

Merge commit '3ea6f8638c13ae1672494736960ec138ae0889bc'

* commit '3ea6f8638c13ae1672494736960ec138ae0889bc':
  AI 147962: Import updated zh_TW translations.

15 years agoam c26a433: am 09c5179: AI 147492: Update zh_TW translations.
Eric Fischer [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am c26a433: am 09c5179: AI 147492: Update zh_TW translations.

Merge commit 'c26a433bc059ed35b71d26d7a38ae221bc4faa7f'

* commit 'c26a433bc059ed35b71d26d7a38ae221bc4faa7f':
  AI 147492: Update zh_TW translations.

15 years agoam 8df1967: Remove the tab from the list of tabs so the ImageGrid will u
Patrick Scott [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am 8df1967: Remove the tab from the list of tabs so the ImageGrid will u

Merge commit '8df1967e2a198b69af9da63e9571afef425c95db'

* commit '8df1967e2a198b69af9da63e9571afef425c95db':
  Remove the tab from the list of tabs so the ImageGrid will update.

15 years agoam 20abe04: Check for null before accessing mPickerData.
Patrick Scott [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am 20abe04: Check for null before accessing mPickerData.

Merge commit '20abe047a9f424a916e1b2a5d8b614b9b466e924'

* commit '20abe047a9f424a916e1b2a5d8b614b9b466e924':
  Check for null before accessing mPickerData.

15 years agoam 761b3b5: Merge change 423 into donut
Android (Google) Code Review [Wed, 29 Apr 2009 20:43:13 +0000 (13:43 -0700)]
am 761b3b5: Merge change 423 into donut

Merge commit '761b3b5a23c06b64b9ecb99953665d2059e3b145'

* commit '761b3b5a23c06b64b9ecb99953665d2059e3b145':
  Show the saved picture for freed tabs.

15 years agoAdd search suggestions for just bookmarks+history.
Bjorn Bringert [Wed, 29 Apr 2009 20:41:47 +0000 (21:41 +0100)]
Add search suggestions for just bookmarks+history.

The browser returns bookmarks+history, and pads with
google search suggest, when search suggestions are
requested using content://browser/search_suggest_query
This patch adds a new URI
content://browser/bookmarks/search_suggest_query
that only returns bookmarks+history.

15 years agoFix Google search suggestions in Browser address bar.
Bjorn Bringert [Wed, 29 Apr 2009 15:10:43 +0000 (16:10 +0100)]
Fix Google search suggestions in Browser address bar.

Before, the BrowserProvider talked directly to the
SearchManagerService and implemented its own version of
the SearchManager code for getting search suggestions.
This breaks if the global search provider is not
GoogleSearch.

This patch changes BrowserProvider to instead use
the SearchManager API to get suggestions from
the GoogleSearch application. When we have support
for third-party web search providers, this should be
changed to use the selected web search provider.

15 years agoUse ViewStub for setEmptyView (bug 1803058)
Mihai Preda [Tue, 28 Apr 2009 12:24:47 +0000 (14:24 +0200)]
Use ViewStub for setEmptyView (bug 1803058)

and use <merge> instead of FrameLayout

15 years agoam 94d2163: AI 147962: Import updated zh_TW translations.
Eric Fischer [Wed, 29 Apr 2009 04:57:20 +0000 (21:57 -0700)]
am 94d2163: AI 147962: Import updated zh_TW translations.

Merge commit '94d2163ddf27a162bbe66aad7336c5858a3b3f11' into donut

* commit '94d2163ddf27a162bbe66aad7336c5858a3b3f11':
  AI 147962: Import updated zh_TW translations.

15 years agoam 09c5179: AI 147492: Update zh_TW translations.
Eric Fischer [Wed, 29 Apr 2009 04:57:20 +0000 (21:57 -0700)]
am 09c5179: AI 147492: Update zh_TW translations.

Merge commit '09c51792e15cd7bbd1c239ec3346d571478923ba' into donut

* commit '09c51792e15cd7bbd1c239ec3346d571478923ba':
  AI 147492: Update zh_TW translations.

15 years agoAI 147962: Import updated zh_TW translations.
Eric Fischer [Tue, 28 Apr 2009 22:48:38 +0000 (15:48 -0700)]
AI 147962: Import updated zh_TW translations.

Automated import of CL 147962

15 years agoRemove the tab from the list of tabs so the ImageGrid will update.
Patrick Scott [Tue, 28 Apr 2009 12:57:56 +0000 (08:57 -0400)]
Remove the tab from the list of tabs so the ImageGrid will update.

I removed this by accident when removing the clearPictureListeners method. This
fixes a NPE when touching a removed tab in the tab picker.

BUG=1816205

15 years agoCheck for null before accessing mPickerData.
Patrick Scott [Tue, 28 Apr 2009 12:03:29 +0000 (08:03 -0400)]
Check for null before accessing mPickerData.

It could be null when switching to a parent tab since the parent tab will be
restored before showing the tab picker. This clears mPickerData before building
the tab picker.

15 years agoAI 147492: Update zh_TW translations.
Eric Fischer [Thu, 23 Apr 2009 18:59:14 +0000 (11:59 -0700)]
AI 147492: Update zh_TW translations.

Automated import of CL 147492

15 years agoMerge change 423 into donut
Android (Google) Code Review [Thu, 23 Apr 2009 12:47:43 +0000 (05:47 -0700)]
Merge change 423 into donut

* changes:
  Show the saved picture for freed tabs.

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 01:33:17 +0000 (18:33 -0700)]
Merge donut into master

15 years agomerge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:59 +0000 (17:56 -0700)]
merge cupcake into donut

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:12:36 +0000 (17:12 -0700)]
Merge donut into master

15 years agoAI 147406: Import revised translations.
Eric Fischer [Wed, 22 Apr 2009 19:33:55 +0000 (12:33 -0700)]
AI 147406: Import revised translations.

Automated import of CL 147406

15 years agoShow the saved picture for freed tabs.
Patrick Scott [Wed, 22 Apr 2009 14:07:45 +0000 (10:07 -0400)]
Show the saved picture for freed tabs.

Create a small class containing the data needed to display the saved or current
picture. For freed tabs, inflate the picture and use the saved state from
mSavedState. Reorganize populatePickerData to use the current top window or the
saved state depending on if the tab has been freed.

There was another bug where onNewPicture would update the wrong FakeWebView due
to ListViews reusing the same view. Have the tab manage the new picture and
invalidate the FakeWebView. When reusing the view, clear out the tab's
FakeWebView field.

Wipe all the picker data at the same time the ImageGrid and ImageAdapter are
cleared.

15 years agoSet a persistent default home page for the browser.
Leon Scroggins [Mon, 20 Apr 2009 16:53:46 +0000 (12:53 -0400)]
Set a persistent default home page for the browser.

Fix for buganizer issue 1793708: 'Set home page' is empty after resetting to default.  Keep track of the base for the default home page in a final variable.  In loadFromDb, add the client to that (instead of to homeUrl, which could result in the client showing up twice in homeUrl) to get the homeUrl.  Then, in resetDefaultPreferences, call setHomePage, with that same construction, so if the user clears their settings, they will return to having the default home page.

15 years agoMerge change 325
Android (Google) Code Review [Mon, 20 Apr 2009 19:42:31 +0000 (12:42 -0700)]
Merge change 325

* changes:
  Check for null before animating the tab/webview.

15 years agoCheck for null before animating the tab/webview.
Patrick Scott [Mon, 20 Apr 2009 17:51:49 +0000 (13:51 -0400)]
Check for null before animating the tab/webview.

The tab will most likely not be null but the top window could easily be null if
the tab has been freed due to low memory. Update getTabIndex to return -1 if the
tab is null.

15 years agoMerge change 262
Android (Google) Code Review [Mon, 20 Apr 2009 17:04:37 +0000 (10:04 -0700)]
Merge change 262

* changes:
  Enable Application Caches.

15 years agoEnable Application Caches.
Andrei Popescu [Fri, 17 Apr 2009 09:43:07 +0000 (10:43 +0100)]
Enable Application Caches.

15 years agoCorrect behavior of FindDialog when clicking trackball.
Leon Scroggins [Thu, 16 Apr 2009 19:24:07 +0000 (15:24 -0400)]
Correct behavior of FindDialog when clicking trackball.

Fix for buganizer issue 1793584.  Previously, a CENTER_KEY (or trackball) event passed to the EditText in the FindDialog would go to the next match, removing the soft keyboard in the process.  Now the FindDialog does not override it, so it behaves exactly like touching on the EditText.