Commit Graph

216 Commits

Author SHA1 Message Date
Android Git Automerger
ce41050023 resolved conflicts for merge of 4d4229e4 to master 2009-07-29 16:42:09 -07:00
Steve Block
4faee09c42 Adds the Java side of the system to show the Geolocation permissions prompt. 2009-07-29 17:02:37 +01:00
Steve Block
0ac031b3d2 Adds the Java GeolocationPermissions class.
This is used by the Browser 'Website Settings' menu to get information about Geolocation permissions.
2009-07-29 16:03:53 +01:00
Andrei Popescu
59e2ad93bf Wire in the AppCache out-of-space callback 2009-07-29 11:07:44 +01:00
Grace Kloba
8b97e4b0fe Re-add double tap to the Browser. It only works if WebView uses wide viewport.
It is also controlled by ENABLE_DOUBLETAP_ZOOM flag. Currently the default
is on.

Double tap will toggle between current zoom level and all the way zoom out,
in another word, zoom overview mode.

While in zoom overview mode, don't display zoom control while panning. You
can click to follow the link. If clicking on a text input box, it should
bring it back to the normal mode so that it will be easy to edit text.

While in zoom overview mode, the page is zoomed to fit the width in the
view. While the text paragraph are wrapped to the matching normal mode scale.
So there is no reflow when we switching between two modes.
2009-07-28 13:17:12 -07:00
Chung-yih Wang
fd3db87e28 Support x509-user-cert mime type in browser.
+ Fix the public key matching and intent parameter mismatch.
2009-07-28 18:37:13 +08:00
Grace Kloba
8268170d3f DO NOT MERGE.
Per product team request, remove 1x zoom button. Move the zoom overview to
the bottom left and zoom control to the bottom right.
2009-07-27 13:44:47 -07:00
Android (Google) Code Review
2470a7b4a8 am 3b99e64e: Merge change 8475 into donut
Merge commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d'

* commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d':
  Per conversation, remove the toast while saving the Certificates to CertTools.
2009-07-24 16:08:50 -07:00
Grace Kloba
c9d4c8790a Per conversation, remove the toast while saving the Certificates to CertTools.
Remove the unused strings.
2009-07-23 21:22:51 -07:00
Dan Egnor
ee756b3d02 Make HttpDateTime public (but hidden), so the rest of us can use it
instead of SimpleDateTime (which is super slow).
2009-07-23 16:38:50 -07:00
Leon Scroggins
72543e1bc3 Improvements to dragging on the WebTextView.
When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea.  Also do not hide the cursor
while scrolling within a text input.  Requires a change to
external/webkit.
2009-07-23 16:32:38 -04:00
Android (Google) Code Review
f88c0a0625 Merge change 8199
* changes:
  Prevent a drag from both scrolling the page and changing the selection.
2009-07-23 10:19:27 -07:00
Android (Google) Code Review
8dc0c9b4ad Merge change 8189
* changes:
  Enforce app cache maximum size
2009-07-23 09:44:23 -07:00
Grace Kloba
675c7d2eb8 Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
2009-07-23 09:21:21 -07:00
Android (Google) Code Review
eda7572365 Merge change 8211
* changes:
  cleanup the WebStorage Java class. There were too many calls to syncValues().
2009-07-22 11:26:16 -07:00
Andrei Popescu
9a56bb838c cleanup the WebStorage Java class. There were too many calls to syncValues(). 2009-07-22 19:21:48 +01:00
Leon Scroggins
416a3c7cdd Prevent a drag from both scrolling the page and changing the selection.
Fix for http://issue?id=1995835.  If the user uses touch to drag a
web page by the WebTextView, do not change the selection as well.
2009-07-22 13:05:43 -04:00
Andrei Popescu
1c829208ea Enforce app cache maximum size 2009-07-22 16:54:16 +01:00
Leon Scroggins
0f5ad842fb Allow the user to scroll a webpage by touching a textfield.
Fix for http://b/issue?id=1703971.  Because the browser overlays
the WebTextView over textfields, it intercepts all the touch
events, which was preventing the page from scrolling.  This
change passes the move events back to the WebView to make
the page scroll.
2009-07-22 11:21:18 -04:00
Android (Google) Code Review
c309e1509e Merge change 8025
* changes:
  wire appcache to the HTML5 UI
2009-07-22 00:45:05 -07:00
Patrick Scott
9f61732e9b Add text extensions to the extension mime type map.
The Browser used to have a concern around mapping text extensions to various
text/* mime types. If a text extension mapped to an unknown text/* mime type,
the Browser would attempt to download a url instead of just displaying the
content.

There is another change in external/webkit that uses 2 static functions in
DOMImplementation that determine if a mime type is text or xml. The text
function in particular checks for a leading "text/" string in the mime type.
With that change, pruning text mime types is no longer needed.

Bug: 1988375
2009-07-21 15:28:12 -04:00
Andrei Popescu
af9c77edbd wire appcache to the HTML5 UI 2009-07-21 18:24:38 +01:00
Patrick Scott
c319c69b12 Allow 205 and 305 to have content.
205 is interpreted by Safari to be like 200 and show the given content. Change
canHaveResponseBody to allow 205 to have a body.

305 is a very rare server response indicating to the client to use the given
Location header as a proxy and reissue the original request. Curl doesn't do
anything with this header and neither does internal networking code. For now,
we will just allow the response body to propagate to webcore.
2009-07-21 07:55:50 -04:00
Android (Google) Code Review
3f52359485 Merge change 7910
* changes:
  Do not hide the soft keyboard when the DOM has moved focus.
2009-07-20 13:37:05 -07:00
Leon Scroggins
10be4fc63a Do not hide the soft keyboard when the DOM has moved focus.
Instead of calling remove(), which would hide the soft
keyboard, remove the WebTextView manually, so the soft
keyboard remains up (if it was up to begin with).  WebView
will properly handle the keys now that the focus has
changed.
2009-07-20 14:26:37 -04:00
Android (Google) Code Review
0e9dd3b008 Merge change 7827
* changes:
  Fix 1986313. WebKit assumes things happened in a certain order. In this case, we can't call LoadListener's nativeError until BrowserFrame's startLoadingResource returns. Otherwise, the failed request will not be removed from the DocLoader's request list. So the page will never finish loading.
2009-07-20 11:22:01 -07:00
Android (Google) Code Review
cd54538fa6 Merge change 7884
* changes:
  Clear the WebTextView in didFirstLayout.
2009-07-20 10:10:33 -07:00
Leon Scroggins
10c7a4da56 Clear the WebTextView in didFirstLayout.
When reaching a new page, remove the WebTextView. This
fixes a bug where the user logs into a site, and the
WebTextView remains on screen.
2009-07-20 11:54:05 -04:00
Patrick Scott
fb6aecb703 Added hooks from jni to create and manage SurfaceViews for plugins.
A subclass of SurfaceView is created in order to appear like a normal
SurfaceView to jni but can be managed in Java easily. This class implements the
SurfaceHolder.Callback interface in order to notify the native PluginSurface
when the surface changes.
2009-07-20 09:31:56 -04:00
Grace Kloba
fadbbd2a0c Fix 1986313. WebKit assumes things happened in a certain order. In this case, we can't call LoadListener's nativeError until BrowserFrame's startLoadingResource returns. Otherwise, the failed request will not be removed from the DocLoader's request list. So the page will never finish loading. 2009-07-17 20:39:25 -07:00
Leon Scroggins
0857767516 Show the password in browser password fields.
Fix for http://b/issue?id=1979719 : cannot see password in browser
textfield.  Show the system's password transformation in a password
field, which can be set to show the text partially or completely,
rather than webkit's version, which never shows the text.
2009-07-16 15:03:27 -04:00
Patrick Scott
4c3ca701fe Check for a null url before trying to load it.
There are some bad things that happen if WebCore gets a blank url.
2009-07-16 08:37:27 -04:00
Grace Kloba
d7f2036aaa resolved conflicts for merge of 21d769da to master 2009-07-15 14:38:20 -07:00
Patrick Scott
fe4fec7c66 Remove all our old high priority knowledge since WebCore will manage it.
Also removed an unused variable in RequestQueue.java.
2009-07-15 15:48:02 -04:00
Android (Google) Code Review
21d769da89 Merge change 6926 into donut
* changes:
  Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool.
2009-07-15 09:47:05 -07:00
Grace Kloba
f8ddc988dc Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool. 2009-07-14 15:44:58 -07:00
Andrei Popescu
190adf7fb2 Remove the Google domains from the Gears permission table when the global location setting is set to false 2009-07-14 14:24:04 -07:00
Andrei Popescu
15d21453b0 Do not merge
Install an observer for the Location system setting and
move the Gears permission check to a slightly earlier time.
Move the logic into a separate manager class.

Also delete some whitespace and fix some style issues.
2009-07-10 17:54:32 +01:00
Andrei Popescu
972acd0c33 Undo the changes accidentally merged from Donut 2009-07-10 16:58:13 +01:00
Grace Kloba
ec696c0115 Fix the build. Remove mPluginsPath as it is not used in the master any more. 2009-07-09 14:07:55 -07:00
Android (Google) Code Review
a5f451f3ae am 3bb69233: Merge change 6620 into donut
Merge commit '3bb692338fed7f34f010398fe8b831d0de22c6e8'

* commit '3bb692338fed7f34f010398fe8b831d0de22c6e8':
  Keep Gears permissions in sync with system location settings.
2009-07-09 12:50:26 -07:00
Andrei Popescu
215a23654a Keep Gears permissions in sync with system location settings. 2009-07-09 17:33:26 +01:00
Android (Google) Code Review
e541ba9e8d Merge change 6356
* changes:
  Add fullscreen support back in.
2009-07-09 06:39:47 -07:00
Andrei Popescu
3c946a1a96 Add fullscreen support back in. 2009-07-08 17:01:59 +01:00
Leon Scroggins
43488fc78c Update text webcore thread's text generation number.
When the user edits text in a textfield, we increase a generation
number so we can mark changes from webkit to be out of date.  With
this change, update webcore's notion of the text generation number
in deleteSelection and replaceTextfieldText, in addition to
passToJs.  Requires a change in external/webkit.
2009-07-07 10:07:17 -04:00
Android (Google) Code Review
005ae544f9 am 79ec07b3: Merge change 6241 into donut
Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:12:36 -07:00
Romain Guy
4296fc4d32 Fixes #1444844. Set a maximum fling velocity in scrollable views. 2009-07-06 11:48:52 -07:00
Android (Google) Code Review
f6a6cff234 am 4492bcb8: Merge change 6081 into donut
Merge commit '4492bcb851f4ee862a446664eb9045045ebb7b5e'

* commit '4492bcb851f4ee862a446664eb9045045ebb7b5e':
  Migrate to the CertTool library.
2009-07-06 11:22:11 -07:00
Patrick Scott
0a5ce01eda Basic changes to get embedded video working.
Add the ViewManager class to handle child views within a WebView. This class
attaches and removes the views in the UI thread. It also scales the layout
params based on the scale of the WebView.
2009-07-06 14:08:45 -04:00
Android (Google) Code Review
ae596082b5 Merge change 6159
* changes:
  Add the code to detect how long the WebViewCore thread is idle in the real time.
2009-07-06 10:29:41 -07:00