OSDN Git Service

android-x86/packages-apps-Browser.git
14 years agoMerge change 21291 into eclair
Android (Google) Code Review [Fri, 14 Aug 2009 18:30:10 +0000 (11:30 -0700)]
Merge change 21291 into eclair

* changes:
  Bring up the "Go" page when touching the title bar.

14 years agoMerge change 21296 into eclair
Android (Google) Code Review [Fri, 14 Aug 2009 18:24:37 +0000 (11:24 -0700)]
Merge change 21296 into eclair

* changes:
  Fix a class cast exception.

14 years agoFix a class cast exception.
Leon Scroggins [Fri, 14 Aug 2009 18:16:10 +0000 (14:16 -0400)]
Fix a class cast exception.

If we are in grid mode, the target view will not be
a history item.  Find out the information using the
BookmarksAdapter instead.

14 years agoUse the correct resource for the add bookmark item in the menu.
Leon Scroggins [Fri, 14 Aug 2009 18:12:47 +0000 (14:12 -0400)]
Use the correct resource for the add bookmark item in the menu.

14 years agoBring up the "Go" page when touching the title bar.
Leon Scroggins [Fri, 14 Aug 2009 17:39:05 +0000 (13:39 -0400)]
Bring up the "Go" page when touching the title bar.

14 years agoAdd BACKUP_DATA permission to the browser
Christopher Tate [Thu, 13 Aug 2009 21:19:10 +0000 (14:19 -0700)]
Add BACKUP_DATA permission to the browser

14 years agohandle false results in file.delete and similar calls
Cary Clark [Wed, 12 Aug 2009 16:56:42 +0000 (12:56 -0400)]
handle false results in file.delete and similar calls

found by findbugs
http://b/issue?id=1856614

14 years agoInitial attempt to get the sliding title bar working, using a Gallery.
Leon Scroggins [Mon, 10 Aug 2009 21:36:42 +0000 (17:36 -0400)]
Initial attempt to get the sliding title bar working, using a Gallery.

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.

14 years agoremove gears
Andrei Popescu [Wed, 12 Aug 2009 18:35:50 +0000 (19:35 +0100)]
remove gears

14 years agoMerge commit '60c8c06e' into manualmerge
Ramanan Rajeswaran [Wed, 12 Aug 2009 22:18:36 +0000 (15:18 -0700)]
Merge commit '60c8c06e' into manualmerge

14 years agoChange the default google homepage to google.co.jp
Ramanan Rajeswaran [Wed, 12 Aug 2009 21:35:44 +0000 (14:35 -0700)]
Change the default google homepage to google.co.jp

14 years agoPass unhandled keys up to the main tab.
Patrick Scott [Wed, 12 Aug 2009 13:15:51 +0000 (09:15 -0400)]
Pass unhandled keys up to the main tab.

14 years agoChange the Browser trace file from data dir to sdcard, increase the size
Grace Kloba [Wed, 12 Aug 2009 16:35:42 +0000 (09:35 -0700)]
Change the Browser trace file from data dir to sdcard, increase the size
from 8M to 20M so that common sites like nytimes.com can fit.

14 years agoclose streams when done
Cary Clark [Tue, 11 Aug 2009 21:40:45 +0000 (17:40 -0400)]
close streams when done

found by findbugs
http://b/issue?id=1856630

14 years agomake private inner classes static
Cary Clark [Tue, 11 Aug 2009 20:42:26 +0000 (16:42 -0400)]
make private inner classes static

bug found by findbugs
http://b/issue?id=1856695

14 years agoremove unused locals
Cary Clark [Tue, 11 Aug 2009 18:49:51 +0000 (14:49 -0400)]
remove unused locals

found by findbugs
http://b/issue?id=1856758

14 years agoMerge change 20761
Android (Google) Code Review [Tue, 11 Aug 2009 18:41:58 +0000 (11:41 -0700)]
Merge change 20761

* changes:
  make finals static, remove unused local

14 years agomake finals static, remove unused local
Cary Clark [Tue, 11 Aug 2009 18:19:06 +0000 (14:19 -0400)]
make finals static, remove unused local

found by findbugs
http://b/issue?id=1856725
http://b/issue?id=1856786

14 years agoremove unused variable
Cary Clark [Tue, 11 Aug 2009 18:04:49 +0000 (14:04 -0400)]
remove unused variable

found by findbugs
http://b/issue?id=1856781

14 years agoNo load home page.
Leon Scroggins [Fri, 7 Aug 2009 16:03:34 +0000 (12:03 -0400)]
No load home page.

Rather than load a home page, bring up the browser/new tabs
displaying the bookmarks page, with a search bar that can be
clicked to open the omnibox.  Also rearrange the menu.  Fix for
http://b/issue?id=2018524

14 years agoAdd a setting to load a page in overview mode.
Grace Kloba [Thu, 6 Aug 2009 00:19:17 +0000 (17:19 -0700)]
Add a setting to load a page in overview mode.

14 years agoMake the "Most visited" page have a thumbnail viewing mode.
Leon Scroggins [Wed, 5 Aug 2009 18:07:58 +0000 (14:07 -0400)]
Make the "Most visited" page have a thumbnail viewing mode.

Start capturing screenshots for all visited pages, and show them
in a grid view on the most visited page.  Modify the BrowserBookmarks-
Page and Adapter so they can be used for the "Most visited" page.
Also change some of the ids for context menu items to be the same
in the browser and history context menus, for simplicity in
handling them in BrowserBookmarksPage.

14 years agoFix for bug 2024912. Sets title in browser Website Settings menu.
Steve Block [Fri, 31 Jul 2009 07:38:58 +0000 (08:38 +0100)]
Fix for bug 2024912. Sets title in browser Website Settings menu.

14 years agoAdds the browser Geolocation permissions prompt.
Steve Block [Thu, 30 Jul 2009 13:45:13 +0000 (14:45 +0100)]
Adds the browser Geolocation permissions prompt.

Note that the appearance of the prompt has not yet been finalized.

Also the interaction of the prompt with the animation used to move to and from
the tab picker is not fixed. This may become unecessary if the tab selection UI
is redisgned.

14 years agoImplement onReceivedTouchIconUrl.
Patrick Scott [Tue, 4 Aug 2009 17:22:29 +0000 (13:22 -0400)]
Implement onReceivedTouchIconUrl.

Add DownloadTouchIcon, an AsyncTask that downloads the apple-touch-icon for urls
that are marked as bookmarks. The touch icon is stored in the bookmark database
similar to favicons and thumbnails. If a shortcut is created for a bookmark
containing a touch icon, the touch icon is used (with rounded corners).

Refactor the bookmarks query to be a static function. The function uses the
original url and new url to look for matching bookmarks. This takes care of
redirects as well as bookmarks containing queries.

14 years agoMerge change 9700
Android (Google) Code Review [Wed, 5 Aug 2009 13:04:41 +0000 (06:04 -0700)]
Merge change 9700

* changes:
  Updates for the look of the bookmarks page.

14 years agoUpdates for the look of the bookmarks page.
Leon Scroggins [Tue, 4 Aug 2009 20:04:55 +0000 (16:04 -0400)]
Updates for the look of the bookmarks page.

Add new assets.

-tab_indicator.xml
State selector for the background of tabs in the CombinedHistoryActivity

-bookmark_thumnail.xml
Web page title is now above the thumb.  Removed the favicon.  Added a
shadow.

-tab_header.xml
Layout for the tabs in CombinedHistoryActivity

-tabs.xml
Change the height of the tabs.

-bookmarks.xml
Remove the title for the "switch" menu item, which gets set in Java,
depending on the current viewing mode.

-strings.xml
Remove the placeholder menu item text, add the actual text for
switching between modes.

-BrowserBookmarksAdapter
No longer set the favicon on top of the bookmark thumbs in grid mode.

-BrowserBookmarksPage
Implement onPrepareOptionsMenu, and set the title of a menu option,
depending on the current viewing state.

-CombinedHistoryActivity
Create a common function for setting up all the tabs.  Change the
look of the tabs to match the new design.

15 years agoMerge change 9477
Android (Google) Code Review [Tue, 4 Aug 2009 17:03:47 +0000 (10:03 -0700)]
Merge change 9477

* changes:
  Enable workers for V8. Also remove the quota parameters, unused after the storage UI refactoring.

15 years agomerge from open-source master
Jean-Baptiste Queru [Tue, 4 Aug 2009 16:00:28 +0000 (09:00 -0700)]
merge from open-source master

15 years agoam 9f53534e: (-s ours) Import revised translations. DO NOT MERGE
Eric Fischer [Mon, 3 Aug 2009 23:41:26 +0000 (16:41 -0700)]
am 9f53534e: (-s ours) Import revised translations.  DO NOT MERGE

Merge commit '9f53534e31a0407a07aa2753e116728a85dfd9ec'

* commit '9f53534e31a0407a07aa2753e116728a85dfd9ec':
  Import revised translations.  DO NOT MERGE

15 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 3 Aug 2009 23:07:35 +0000 (16:07 -0700)]
Import revised translations.  DO NOT MERGE

15 years agoWhen free the background tabs due to low memory, keep the parent tab of the
Grace Kloba [Sat, 1 Aug 2009 06:48:32 +0000 (23:48 -0700)]
When free the background tabs due to low memory, keep the parent tab of the
current tab around so that hit Back won't cause reload the page.

This should address the complain of reloading while using Google Reader.

Remove our own checkMemory() as the system now provides onLowMemory().

15 years agoresolved conflicts for merge of a34f6861 to master
Grace Kloba [Mon, 3 Aug 2009 17:22:44 +0000 (10:22 -0700)]
resolved conflicts for merge of a34f6861 to master

15 years agoEnable workers for V8. Also remove the quota parameters, unused after the storage...
Andrei Popescu [Mon, 3 Aug 2009 15:03:24 +0000 (16:03 +0100)]
Enable workers for V8. Also remove the quota parameters, unused after the storage UI refactoring.

15 years agomerge from donut
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:46 +0000 (07:45 -0700)]
merge from donut

15 years agoMove IntentFilter/BroadcastReceiver creation before the spot where we may
Grace Kloba [Fri, 31 Jul 2009 23:28:17 +0000 (16:28 -0700)]
Move IntentFilter/BroadcastReceiver creation before the spot where we may
early bail out in onCreate(). This should avoid the NPE we saw in onResume.

15 years agoFix a monkey crash.
Leon Scroggins [Fri, 31 Jul 2009 17:10:55 +0000 (13:10 -0400)]
Fix a monkey crash.

Since getTopWindow() can be null, check first before accessing it.
Fix for http://b/issue?id=2027301

15 years agoMerge change 9214
Android (Google) Code Review [Thu, 30 Jul 2009 20:56:57 +0000 (13:56 -0700)]
Merge change 9214

* changes:
  Remove the session cookies if Browser starts without any saved state.

15 years agoChange the hint for the omnibox.
Leon Scroggins [Thu, 30 Jul 2009 19:43:35 +0000 (15:43 -0400)]
Change the hint for the omnibox.

New hint tells the user that they can search in addition
to entering urls.

15 years agoRemove the session cookies if Browser starts without any saved state.
Grace Kloba [Thu, 30 Jul 2009 19:29:51 +0000 (12:29 -0700)]
Remove the session cookies if Browser starts without any saved state.

15 years agoMerge change 8873
Android (Google) Code Review [Thu, 30 Jul 2009 17:21:08 +0000 (10:21 -0700)]
Merge change 8873

* changes:
  More precise determination of when to back up the bookmarks

15 years agoImplement out of space notification
Andrei Popescu [Thu, 30 Jul 2009 13:48:55 +0000 (14:48 +0100)]
Implement out of space notification

15 years agoAdds browser settings menu entries for Geolocation permissions.
Steve Block [Thu, 30 Jul 2009 09:50:45 +0000 (10:50 +0100)]
Adds browser settings menu entries for Geolocation permissions.

15 years agoMerge change 8986
Android (Google) Code Review [Thu, 30 Jul 2009 09:14:03 +0000 (02:14 -0700)]
Merge change 8986

* changes:
  Generalizes WebsiteSettingsActivity to handle more than just database permissions.

15 years agoMore precise determination of when to back up the bookmarks
Christopher Tate [Tue, 28 Jul 2009 22:24:05 +0000 (15:24 -0700)]
More precise determination of when to back up the bookmarks

Instead of blindly assuming that any change to the bookmark table requires a
backup pass, we now attempt to discern whether the change is a user-visible
alteration of the bookmark set.  We do this in the provider's hooks for
insert/delete/update operations.

Insert is easy; we simply check for bookmarks=1 in the field values of the row
being added, and request backup if it's there.

Delete and update operations are more problematic; we need to check whether the
record being acted on is part of the bookmark set.  To do this unambiguously
requires querying the record's bookmark field, so we do that if it looks like
the operation might be one relevant to the bookmark backup [either deleting a
bookmark row, or changing the title/url of an existing bookmark, or changing
whether a given row represents a bookmark].

15 years agoresolved conflicts for merge of cc634036 to master
Android Git Automerger [Thu, 30 Jul 2009 00:03:43 +0000 (17:03 -0700)]
resolved conflicts for merge of cc634036 to master

15 years agomerge from donut
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:57:05 +0000 (14:57 -0700)]
merge from donut

15 years agoGeneralizes WebsiteSettingsActivity to handle more than just database permissions.
Steve Block [Wed, 29 Jul 2009 16:16:01 +0000 (17:16 +0100)]
Generalizes WebsiteSettingsActivity to handle more than just database permissions.

This is in preparation for the addition of Geolocation permissions.

15 years agoAdd unit tests for the WebStorageSizemanager. Also reduce the default quota and quota...
Andrei Popescu [Wed, 29 Jul 2009 13:44:24 +0000 (14:44 +0100)]
Add unit tests for the WebStorageSizemanager. Also reduce the default quota and quota increase step

15 years agoMerge change 8853
Android (Google) Code Review [Wed, 29 Jul 2009 14:59:12 +0000 (07:59 -0700)]
Merge change 8853

* changes:
  Make the favicons look better on the bookmark page.

15 years agoRefactor the WebStorage size management:
Andrei Popescu [Mon, 27 Jul 2009 11:01:59 +0000 (12:01 +0100)]
Refactor the WebStorage size management:
- Abandon the Quota UI: it does not make sense to ask the users to decide individual database quota increases. It is unlikely anyone will be able to make a meaningul decision.
- Introduce a global limit for all WebStorage content. This is shared between Database and AppCache.
- Make the quota increase decision automatic
- Treat out-of-space situations by creaying a system notification (TODO).

15 years agoFix #1964292. If the WEB_SEARCH starts from the Browser, load it in the
Grace Kloba [Tue, 28 Jul 2009 22:58:19 +0000 (15:58 -0700)]
Fix #1964292. If the WEB_SEARCH starts from the Browser, load it in the
current window instead of a new window.

15 years agoMake the favicons look better on the bookmark page.
Leon Scroggins [Tue, 28 Jul 2009 20:33:53 +0000 (16:33 -0400)]
Make the favicons look better on the bookmark page.

In the visual bookmarks, set the padding for the favicon, as well
as using the favicon background used in other places, and set
the scaletype to fitCenter.  This makes large favicons like
amazon.com's fit, without stretching others.

15 years agoIn History context menu, do not show "Add bookmark" for bookmarks.
Leon Scroggins [Tue, 28 Jul 2009 18:14:48 +0000 (14:14 -0400)]
In History context menu, do not show "Add bookmark" for bookmarks.

Fix for http://b/issue?id=1688867.  Instead of providing an option
to add a bookmark to bookmarks, provide an option to remove the
item from bookmarks.  Also display the item as the context menu
header.

15 years agoFixes bug 2018090 in browser Website Settings.
Steve Block [Tue, 28 Jul 2009 12:49:15 +0000 (13:49 +0100)]
Fixes bug 2018090 in browser Website Settings.

Browser Website settings menu now correctly distinguishes origins at the same host.

15 years agoImproves appearance of website URLs in browser 'Website settings' menu.
Steve Block [Tue, 28 Jul 2009 10:07:10 +0000 (11:07 +0100)]
Improves appearance of website URLs in browser 'Website settings' menu.

- If an explicit title is set, we show it and use the origin as a subtitle.
- If no explicit title is set, we show use the origin as a title.
- We hide the origin's scheme if it's 'http'.

15 years agoMerge change 8566
Android (Google) Code Review [Tue, 28 Jul 2009 02:50:51 +0000 (19:50 -0700)]
Merge change 8566

* changes:
  First real cut of bookmarks backup agent

15 years agoFirst real cut of bookmarks backup agent
Christopher Tate [Sat, 11 Jul 2009 00:51:48 +0000 (17:51 -0700)]
First real cut of bookmarks backup agent

The agent now does backup/restore of the bookmarks table.  Whether to back up is
determined by flattening the bookmark table, CRCing the flattened
representation, and comparing the CRC with the previous backup pass's version.
If they differ (or if the file size differs), the table is deemed to have
changed and we send the flattened file off to the server as a single key.

On restore, the bookmark records are read individually from the flattened
representation, the existing bookmarks table is queried for a matching URL, and
if none exists the bookmark is inserted into the table.

Bookmarks.addBookmark() now takes a boolean argument "retainIcon."  When false,
the implementation will not call into the web icon database.  This is necessary
during restore because the web icon database is only available from the Browser
app's main thread, but restore happens without the app proper being involved.
The other call points for addBookmark() have been updated to pass 'true,' i.e.
preserving the current behavior.

15 years agoam 04b2e8e1: Use the old string for bookmarks permissions.
Leon Scroggins [Mon, 27 Jul 2009 17:50:48 +0000 (10:50 -0700)]
am 04b2e8e1: Use the old string for bookmarks permissions.

Merge commit '04b2e8e1688a869904ecedafa58349b14a73ba48'

* commit '04b2e8e1688a869904ecedafa58349b14a73ba48':
  Use the old string for bookmarks permissions.

15 years agoUse the old string for bookmarks permissions.
Leon Scroggins [Mon, 27 Jul 2009 15:07:09 +0000 (11:07 -0400)]
Use the old string for bookmarks permissions.

When we made the bookmark permissions public, we also changed their
names, which might break existing apps.  Change them back.  Depends
on a change in frameworks/base.

15 years agoFixes the wording of some strings used for the settings menu entries for HTML5 database.
Steve Block [Wed, 22 Jul 2009 13:28:14 +0000 (14:28 +0100)]
Fixes the wording of some strings used for the settings menu entries for HTML5 database.

15 years agoreconcile korg/master into goog/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 18:43:55 +0000 (11:43 -0700)]
reconcile korg/master into goog/master

15 years agoMerge korg/donut into korg/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:03 +0000 (17:48 -0700)]
Merge korg/donut into korg/master

15 years agoupdate the permissions for the AccountManagerService
Fred Quintana [Thu, 23 Jul 2009 03:00:49 +0000 (20:00 -0700)]
update the permissions for the AccountManagerService

15 years agoMerge change 8188
Android (Google) Code Review [Thu, 23 Jul 2009 16:44:31 +0000 (09:44 -0700)]
Merge change 8188

* changes:
  Enforce app cache maximum size

15 years agoEnforce app cache maximum size
Andrei Popescu [Wed, 22 Jul 2009 15:46:55 +0000 (16:46 +0100)]
Enforce app cache maximum size

15 years agoam 57b461b6: Stop using old density APIs.
Dianne Hackborn [Wed, 22 Jul 2009 19:01:14 +0000 (12:01 -0700)]
am 57b461b6: Stop using old density APIs.

Merge commit '57b461b6f13bb4c90264e7ca08c130b41c74a1d3'

* commit '57b461b6f13bb4c90264e7ca08c130b41c74a1d3':
  Stop using old density APIs.

15 years agoMerge change 8027
Android (Google) Code Review [Wed, 22 Jul 2009 07:45:18 +0000 (00:45 -0700)]
Merge change 8027

* changes:
  wire appcache to HTML5 UI

15 years agoStop using old density APIs.
Dianne Hackborn [Wed, 22 Jul 2009 03:04:08 +0000 (20:04 -0700)]
Stop using old density APIs.

15 years agoam a0b0e2a2: (-s ours) Do not merge When opening a new tab from the context menu...
Patrick Scott [Tue, 21 Jul 2009 21:38:45 +0000 (14:38 -0700)]
am a0b0e2a2: (-s ours) Do not merge When opening a new tab from the context menu, treat the new tab as a child of the current tab. This change was cherry-picked from 

Merge commit 'a0b0e2a2cd78ae78ec50eab2e532d0102facc52d'

* commit 'a0b0e2a2cd78ae78ec50eab2e532d0102facc52d':
  Do not merge

15 years agoam 55581a65: (-s ours) DO NOT MERGE: Remove deprecated call: Cursor.commitUpdates().
Leon Scroggins [Tue, 21 Jul 2009 21:38:18 +0000 (14:38 -0700)]
am 55581a65: (-s ours) DO NOT MERGE: Remove deprecated call: Cursor.commitUpdates().

Merge commit '55581a656c7b198dbbac63184cd78c61f7535915'

* commit '55581a656c7b198dbbac63184cd78c61f7535915':
  DO NOT MERGE: Remove deprecated call: Cursor.commitUpdates().

15 years agoMerge change 8035
Android (Google) Code Review [Tue, 21 Jul 2009 19:46:39 +0000 (12:46 -0700)]
Merge change 8035

* changes:
  Prevent stale data exception.

15 years agoDo not merge
Patrick Scott [Tue, 21 Jul 2009 19:09:50 +0000 (15:09 -0400)]
Do not merge
When opening a new tab from the context menu, treat the new tab as a child of
the current tab. This change was cherry-picked from master.

15 years agoPrevent stale data exception.
Leon Scroggins [Tue, 21 Jul 2009 18:00:00 +0000 (14:00 -0400)]
Prevent stale data exception.

Before requerying, check mCursor to see if it has closed.  If it
has, do not requery.

15 years agoDO NOT MERGE: Remove deprecated call: Cursor.commitUpdates().
Leon Scroggins [Tue, 21 Jul 2009 15:15:28 +0000 (11:15 -0400)]
DO NOT MERGE: Remove deprecated call: Cursor.commitUpdates().

This change was previously made in master, but I believe it is
responsible for a crash.  We should not be using this deprecated
method, so I am now instead using ContentResolver.update().

15 years agowire appcache to HTML5 UI
Andrei Popescu [Tue, 21 Jul 2009 17:24:06 +0000 (18:24 +0100)]
wire appcache to HTML5 UI

15 years agoMerge change 7914
Android (Google) Code Review [Mon, 20 Jul 2009 19:09:05 +0000 (12:09 -0700)]
Merge change 7914

* changes:
  Fix 1990635. update() was accidentally removed. Bring it back so that the WebSettings will be applied to the current open windows.

15 years agoFix 1990635. update() was accidentally removed. Bring it back so that the WebSettings...
Grace Kloba [Mon, 20 Jul 2009 18:53:33 +0000 (11:53 -0700)]
Fix 1990635. update() was accidentally removed. Bring it back so that the WebSettings will be applied to the current open windows.

15 years agoam 83f47346: Fix 1984809. Select the url when SEARCH key is pressed in the Browser.
Grace Kloba [Mon, 20 Jul 2009 18:01:14 +0000 (11:01 -0700)]
am 83f47346: Fix 1984809. Select the url when SEARCH key is pressed in the Browser.

Merge commit '83f473462fcd7869031a423c02b957c6e938a2f6'

* commit '83f473462fcd7869031a423c02b957c6e938a2f6':
  Fix 1984809. Select the url when SEARCH key is pressed in the Browser.

15 years agoFix 1984809. Select the url when SEARCH key is pressed in the Browser.
Grace Kloba [Mon, 20 Jul 2009 17:44:31 +0000 (10:44 -0700)]
Fix 1984809. Select the url when SEARCH key is pressed in the Browser.

15 years agoSet a title for pages with no title.
Leon Scroggins [Mon, 20 Jul 2009 17:38:47 +0000 (13:38 -0400)]
Set a title for pages with no title.

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.

15 years agoImplement an error console. The console is displayed when the user has enabled debug...
Ben Murdoch [Wed, 1 Jul 2009 19:19:05 +0000 (20:19 +0100)]
Implement an error console. The console is displayed when the user has enabled debug in the browser (been to about:debug) and there are errors on the page. It can be toggled on/off in debug mode in the settings menu.

15 years agoTry to reuse tabs with matching urls to avoid loading a new page.
Patrick Scott [Thu, 16 Jul 2009 13:42:58 +0000 (09:42 -0400)]
Try to reuse tabs with matching urls to avoid loading a new page.

If there is no matching application tab, try to find a regular tab (created in
the browser) with a matching url. This avoids opening a new tab and loading a
new page for a page that has already been loaded.

TODO: There is a ton of duplicate code around animations to/from the tab
overview. It is a massive amount of cruft and I really want to rewrite it all in
a separate change.

15 years agoMerge change 7429
Android (Google) Code Review [Thu, 16 Jul 2009 16:38:19 +0000 (09:38 -0700)]
Merge change 7429

* changes:
  Work on the Bookmark Grid, including the favicon.

15 years agoWork on the Bookmark Grid, including the favicon.
Leon Scroggins [Wed, 15 Jul 2009 20:54:37 +0000 (16:54 -0400)]
Work on the Bookmark Grid, including the favicon.

Remove the file BookmarkGridPage, since a GridView will do just fine.
Now we specify a height and width for the bitmaps rather than adjusting
them for the screen size.  Also add the favicon and match the design
more closely for the Add option.  In BrowserActivity, match the size
of the saved screenshots to the desired size for the Bookmarks
Activity.  Also move the logic into its own method so it can be
called from multiple places (still called in only one at the moment).

15 years agoam e8dc977d: (-s ours) Do not merge.
Patrick Scott [Wed, 15 Jul 2009 20:41:45 +0000 (13:41 -0700)]
am e8dc977d: (-s ours) Do not merge.

Merge commit 'e8dc977d91b95b3b3f56ffdadebeba4a04001200'

* commit 'e8dc977d91b95b3b3f56ffdadebeba4a04001200':
  Do not merge.

15 years agoDo not merge.
Patrick Scott [Wed, 15 Jul 2009 12:04:48 +0000 (08:04 -0400)]
Do not merge.

Check for a null tab in onDestroy. This fix is in master but the crash appears
in donut as well.

15 years agoMerge commit 'goog/readonly-korg-master' into merge_korg_master
Jean-Baptiste Queru [Wed, 15 Jul 2009 00:12:53 +0000 (17:12 -0700)]
Merge commit 'goog/readonly-korg-master' into merge_korg_master

15 years agoIntegrate bookmark grid view mode with list view mode.
Leon Scroggins [Tue, 14 Jul 2009 18:48:02 +0000 (14:48 -0400)]
Integrate bookmark grid view mode with list view mode.

This way the two different modes can share code and have
all the same behaviors (i.e. context menu options).

AndroidManifest.xml
Remove BookmarkGridPage, which is no longer an Activity.

bookmarks.xml
Add a menu option to switch between the different viewing modes.

strings.xml
Name for that menu option.

AddNewBookmark.java
Remove copyTo, which is not necessary.

BookmarkGridPage.java
Change to just be a GridView, with our desired settings, and
overriding onSizeChanged to size the thumbs appropriately.  Now its
constructor takes a BrowserBookmarksAdapter, which it uses instead
of its old private Adapter.

BrowserBookmarksAdapter.java
Now has two modes, so it can be used for both the bookmarks grid
and the list view.  Removed a bunch of obsolete code, which was
used for searching/sorting the bookmarks.

BrowserBookmarksPage.java
Now switches back and forth between using a GridView and a ListView.

15 years agoShow the new tab when creating it from the bookmarks/history.
Patrick Scott [Tue, 14 Jul 2009 14:49:22 +0000 (10:49 -0400)]
Show the new tab when creating it from the bookmarks/history.

When we are in the tab picker and a new tab is created from bookmarks/history,
show the new tab in the picker and then animate to it. Only do this for the
"open tabs in background" setting since openTab() will show the tab if that
setting is false.

We animate to the new tab because we currently don't have a way to show the new
tab in the tab picker with updated picker data (title and url in particular).
So instead of showing a blank tab, animate to the tab. Once the animations have
been redesigned and the code refactored, this will hopefully get better.

15 years agoam 8e5d209b: Import new translations
Eric Fischer [Mon, 13 Jul 2009 23:33:37 +0000 (16:33 -0700)]
am 8e5d209b: Import new translations

Merge commit '8e5d209b650acccb72ff906d107726a35c7cf9f4'

* commit '8e5d209b650acccb72ff906d107726a35c7cf9f4':
  Import new translations

15 years agoImport new translations
Eric Fischer [Mon, 13 Jul 2009 22:43:49 +0000 (15:43 -0700)]
Import new translations

15 years agoam bae196df: Merge change 6811 into donut
Android (Google) Code Review [Mon, 13 Jul 2009 17:06:36 +0000 (10:06 -0700)]
am bae196df: Merge change 6811 into donut

Merge commit 'bae196df36929647356d03e35cbfbdb453e3833b'

* commit 'bae196df36929647356d03e35cbfbdb453e3833b':
  Fix #1953520. When MENU is down, consume the key in the BrowserActivity which are not shortcut keys. So it won't trigger the search panel. If a shortcut action is taken, reset the mMenuIsDown as it has been used once.

15 years agoMerge change 6811 into donut
Android (Google) Code Review [Mon, 13 Jul 2009 17:05:29 +0000 (10:05 -0700)]
Merge change 6811 into donut

* changes:
  Fix #1953520. When MENU is down, consume the key in the BrowserActivity which are not shortcut keys. So it won't trigger the search panel. If a shortcut action is taken, reset the mMenuIsDown as it has been used once.

15 years agoFix #1953520. When MENU is down, consume the key in the BrowserActivity which are...
Grace Kloba [Mon, 13 Jul 2009 17:04:34 +0000 (10:04 -0700)]
Fix #1953520. When MENU is down, consume the key in the BrowserActivity which are not shortcut keys. So it won't trigger the search panel. If a shortcut action is taken, reset the mMenuIsDown as it has been used once.

15 years agoam 1e8f0583: Move Browser search description to bookmarks search.
Bjorn Bringert [Mon, 13 Jul 2009 16:02:30 +0000 (09:02 -0700)]
am 1e8f0583: Move Browser search description to bookmarks search.

Merge commit '1e8f0583fb74658666dc4105bf15788f2585a6a2'

* commit '1e8f0583fb74658666dc4105bf15788f2585a6a2':
  Move Browser search description to bookmarks search.

15 years agoMove Browser search description to bookmarks search.
Bjorn Bringert [Mon, 13 Jul 2009 14:53:25 +0000 (15:53 +0100)]
Move Browser search description to bookmarks search.

Before, android:searchSettingsDescription was set in searchable.xml,
but not in bookmarks_searchable.xml, which is the one that
is used from global search.

Fixes http://b/issue?id=1971319
"Description string for Browser source not showing in settings"

15 years agoRemember to advance the cursor
Christopher Tate [Fri, 10 Jul 2009 20:36:58 +0000 (13:36 -0700)]
Remember to advance the cursor

15 years agoSkeleton backup agent for Browser
Christopher Tate [Tue, 7 Jul 2009 20:11:41 +0000 (13:11 -0700)]
Skeleton backup agent for Browser

This is a skeleton backup agent for the Android Browser, intended to back up and
restore the bookmarks table from browser.db by extracting the bookmarks table
into a flattened file representation on backup, then unflattening and rebuilding
the table during restore.

It compiles but is completely untested, since the db code to read/write the
bookmarks table is not finished.  The backup agent has been declared in the
Browser manifest, however.

15 years agoam 60d24e21: Make suggestion text color change based on the item state
Satish Sampath [Fri, 10 Jul 2009 16:58:58 +0000 (09:58 -0700)]
am 60d24e21: Make suggestion text color change based on the item state

Merge commit '60d24e219b1763bc294974e042c67a1a6cadd8d5'

* commit '60d24e219b1763bc294974e042c67a1a6cadd8d5':
  Make suggestion text color change based on the item state