Commit Graph

1059 Commits

Author SHA1 Message Date
Ben Murdoch
f39b2cfadb Make autofill a webview preference
Change-Id: I2bed0612ad6381dd4c6aedf4af8740fac33748c7
2010-09-23 18:02:15 +01:00
Kristian Monsen
27a835f8d8 Merge "Fix deadlock in HTTP authentication within synchronous request." 2010-09-23 09:08:32 -07:00
Ben Murdoch
62275a461e Make WebTextView display an "AutoFill this form" option
When the user clicks to AutoFill the form, we propogate a message
to WebCore through WebViewCore to actually perform the action.

Corresponding change in external/webkit needed to implement the
native method that gets called to execute

Change-Id: I6c75ab9b2c5404580de549b69102ab9374493c34
2010-09-23 17:03:51 +01:00
Iain Merrick
4f0e56b7af Fix deadlock in HTTP authentication within synchronous request.
When HTTP authentication results in the user being prompted for a username
and password, this is handled asynchronously in the UI thread. However, we
can't post the result back to the WebKit thread in the normal way because
WebKit does not pump its message queue during synchronous requests.

Instead, we call WebKit directly from the UI thread and let it handle the
threading. This is safe to do because we're using thread-safe STL and
Chrome objects, not WebCore objects.

Change-Id: I79c21510186c2352f842c4ff4311687ec40ba45f
2010-09-23 16:59:18 +01:00
Shimeng (Simon) Wang
64336a4051 Add a fixed viewport margin since website content width changes.
For example, nytimes.com will chang from 980 to 986.

issue: 3003933
Change-Id: I80c41430e3b7e89c5a3875232622c50031eaf5ef
2010-09-22 10:57:34 -07:00
Shimeng (Simon) Wang
938a1142d6 Make the reading level scale at least 0.5f apart from overview level.
This is related to the zoom behavior when user double taps.

Change-Id: Ie36519114ad30aaa9fb32c7164f0d3e841f7d721
2010-09-21 14:33:31 -07:00
Cary Clark
e37a365bef Merge "In clearView(), see if native exists before calling it." 2010-09-21 09:36:50 -07:00
Shimeng (Simon) Wang
01ef9eab3b Merge "Use dimension value instead of fixed constant in code." 2010-09-21 09:36:35 -07:00
Cary Clark
a3bec150bf In clearView(), see if native exists before calling it.
Change-Id: I069678ef8f4dbdb6b62109c53b352127f5eec7cf
http://b/2999966
2010-09-21 10:10:29 -04:00
Shimeng (Simon) Wang
77fdaaa3af Use max of content width and initial preferred width as the viewport.
issue: 3003933
Change-Id: I4a901219674b575e8228d44381efbaa159912465
2010-09-20 18:12:30 -07:00
Shimeng (Simon) Wang
a2ded6ca77 Use dimension value instead of fixed constant in code.
issue: 3003933
Change-Id: Iab802ccfb9a3d8c16f8884c433987c4a730f713c
2010-09-20 11:12:03 -07:00
Kristian Monsen
4200dcaa7b Merge "HTTP auth for Chromium HTTP stack (Java side)" 2010-09-20 05:52:53 -07:00
Shimeng (Simon) Wang
14bcc0e7fe Use website preferred width as the fixed viewport.
This preferred width will be set between the default viewport width and
the max fixed viewport width.  The default viewport width serves as the
minimum fixed viewport width, so it's lowered to 980.

This change will make the shirt.woot.com/blog site works better, since it's using
1080 as the preferred width, so user needs not to scroll in overview mode.

issue: 3003933
Change-Id: Ie3eed44a54d277f5bc5f63cd394d463012a80d80
2010-09-17 10:54:48 -07:00
Shimeng (Simon) Wang
a8f99bbbbc Use website specified viewport.
In fixed viewport mode, use website specified viewport to override
the default fixed viewport.

issue: 3007588
Change-Id: I0ed86a2f829d18bf35dba47f766b23be1ace8ff5
2010-09-16 15:37:03 -07:00
Iain Merrick
10229b24d0 HTTP auth for Chromium HTTP stack (Java side)
The existing Java callbacks become JNI callbacks. We splice this
functionality into HttpAuthHandler, splitting the existing callbacks
off into a new package-private class HttpAuthHandlerImpl. The public
API is unchanged.

Corresponding C++ change: https://android-git.corp.google.com/g/63763

Change-Id: Ia9717b86cbd2c32f17a2f8fad0cec34419c1376b
2010-09-16 12:51:39 +01:00
Leon Scroggins
05919f2133 Exit action mode when destroying the WebView or loading.
Bug: 3000317

Change-Id: I7f131d5c159058c33c3249ee4e0fee3a667ec6d8
2010-09-15 11:43:49 -04:00
Shimeng (Simon) Wang
7924a4a3a0 Fix comment.
Change-Id: I927565aadc7f4a5aac6c0a11c28210440600e8a4
2010-09-14 13:20:46 -07:00
Svetoslav Ganov
585f13f8de Accessibility support for WebViews
Change-Id: Ibb139192bae4d60fd53a7872b19c06312bb41558
2010-09-13 10:21:34 -07:00
Adam Powell
0a8bf86413 Fix a bug that could cause improper detection of long press selection mode in WebView after a scale gesture
Change-Id: I171ccad91ddc7e7983664dbf52d3104508493538
2010-09-12 14:17:46 -07:00
Adam Powell
be36668499 resolved conflicts for merge of 12e08f3a to master
Change-Id: Ic691ec7716d5c450406717d3748847cb9c6b7e82
2010-09-12 12:47:04 -07:00
Adam Powell
12e08f3a88 am 26cab064: Merge "Allow two finger pan and scale on touchscreens with FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT." into gingerbread
Merge commit '26cab06472badee374ac854f5a210991c37c4493' into gingerbread-plus-aosp

* commit '26cab06472badee374ac854f5a210991c37c4493':
  Allow two finger pan and scale on touchscreens with
2010-09-12 10:28:50 -07:00
Adam Powell
26cab06472 Merge "Allow two finger pan and scale on touchscreens with FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT." into gingerbread 2010-09-12 10:25:55 -07:00
Joe Onorato
201480c50e Fix the last remaining @deprecated tag without comment warning.
Change-Id: I526707233652e8092b33357d08f8ed81cd3a9e14
2010-09-10 15:55:43 -04:00
Joe Onorato
fb71733b35 am 7c8258d0: Merge "Fix the last remaining @deprecated tag without comment warning." into gingerbread
Merge commit '7c8258d064efe70e8551480eaafd7296f659acd5' into gingerbread-plus-aosp

* commit '7c8258d064efe70e8551480eaafd7296f659acd5':
  Fix the last remaining @deprecated tag without comment warning.
2010-09-10 12:46:52 -07:00
Joe Onorato
4d8cc7bdf4 Fix the last remaining @deprecated tag without comment warning.
Change-Id: Id4c50dee743fa781ca3f470f97ed76d1501f7222
2010-09-10 15:01:35 -04:00
Leon Scroggins
200c13d37f Do not put the selection on screen for non password fields.
Instead, allow webkit to do it.

Requires a change to external/webkit.

Bug 2679411
Bug 2659028

Change-Id: Ibe5dfc90b13d13f7575649e4c90d5166de10dbb2
2010-09-10 13:09:01 -04:00
Shimeng (Simon) Wang
6c09ef01da Use the default scale for text input.
The default scale is 1.0 for tablet, instead of the 1.5 reading scale.

For small screen device, the default scale will be 1.5, so the new
code is backward compatible.

issue: 2988531
Change-Id: I8f00b0e9180402b2135573c019bea7d217119dad
2010-09-09 13:56:34 -07:00
Adam Powell
048a3a5b18 Allow two finger pan and scale on touchscreens with
FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT.

Change-Id: Ia5a1655d3bd9bf13cc8d84a1f7ee2bc9dca8ac49
2010-09-09 00:21:05 -07:00
Michael Kolb
6fe3b421fd Add setting for on screen zoom buttons
enables to use pinch to zoom without
  showing the on screen buttons

Change-Id: Ifd08d11232e2a32178a89e559b6f1f645bf627b9
2010-09-07 11:46:57 -07:00
Jeff Hamilton
2c2d72a7fd Hide this log behind the debug flag.
Change-Id: I83eb8558c8037f3b703dcf46c2d3aa0fa3d18a43
2010-09-03 15:10:28 -05:00
Leon Scroggins III
e742c08ce0 Use the proper selection when performing a delete.
Bug: 2956964

Change-Id: I488c291b2fb3cfa5c5d510bd4a03afbc8949d8d8
2010-09-03 11:45:28 -04:00
Leon Scroggins III
71d17e4071 Only close the IME if it is Active on the WebView.
Bug: 2955391

Some applications want to leave the IME open even though
the WebView is loading a page.  Only hide the IME if it
is Active on the WebView or the WebTextView.

Change-Id: I1e7f973f649d78561bd8585c628a83c9b18a66ad
2010-09-02 12:53:08 -04:00
Adam Powell
0358def776 am 79492a0d: Merge "DO NOT MERGE Overscroll continues; asset and behavior tweaks." into gingerbread
Merge commit '79492a0d75b0b02f11f35500f79dd3fcbc6e2211' into gingerbread-plus-aosp

* commit '79492a0d75b0b02f11f35500f79dd3fcbc6e2211':
  DO NOT MERGE Overscroll continues; asset and behavior tweaks.
2010-09-02 00:31:03 -07:00
Adam Powell
79492a0d75 Merge "DO NOT MERGE Overscroll continues; asset and behavior tweaks." into gingerbread 2010-09-02 00:28:14 -07:00
Adam Powell
5916882c3f DO NOT MERGE Overscroll continues; asset and behavior tweaks.
Change-Id: I367643877a397e7b4fa9bd8c40639ff69436e7f0
2010-09-02 00:14:53 -07:00
Jason Chen
9dc2e75e27 Add Deprecated annotation to getPluginsPath/setPluginsPath
Javadoc annotations aren't enough to properly mark an API
as deprecated. This change adds the @Deprecated annotation
to the source and updates current.xml.

Change-Id: I04a398fc04ad99979c674789af5af994fbd25be0
2010-09-01 19:17:22 -07:00
Jason Chen
9fadca71e4 am b766ab83: DO NOT MERGE Add deprecated annotation to get/set PluginsPath and update current.xml
Merge commit 'b766ab830a714c0b79f64265e681f454865ffe65' into gingerbread-plus-aosp

* commit 'b766ab830a714c0b79f64265e681f454865ffe65':
  DO NOT MERGE Add deprecated annotation to get/set PluginsPath and update current.xml
2010-09-01 19:16:41 -07:00
Jason Chen
b766ab830a DO NOT MERGE Add deprecated annotation to get/set PluginsPath and update current.xml
Previous changes only added javadoc annotation, but didn't apply
annotation to the source. Fixing this and updating current.xml.

Change-Id: I52aabd6485a3972fc360f24c2e86cc342a5101ab
2010-09-01 19:04:18 -07:00
Adam Powell
6fb81376b6 am e34fe69e: Merge "DO NOT MERGE Integrate edge effects into WebView." into gingerbread
Merge commit 'e34fe69e66d8c9bc76453347ba84261b060300f3' into gingerbread-plus-aosp

* commit 'e34fe69e66d8c9bc76453347ba84261b060300f3':
  DO NOT MERGE Integrate edge effects into WebView.
2010-09-01 14:01:44 -07:00
Adam Powell
e34fe69e66 Merge "DO NOT MERGE Integrate edge effects into WebView." into gingerbread 2010-09-01 13:57:05 -07:00
Derek Sollenberger
edb3211c85 am 27c6f7d4: am 1614843e: Merge "Fix invalid comment in WebSettings." into gingerbread
Merge commit '27c6f7d44c592ab8685b93a2ec30a74d594c822d'

* commit '27c6f7d44c592ab8685b93a2ec30a74d594c822d':
  Fix invalid comment in WebSettings.
2010-09-01 13:18:40 -07:00
Elliott Slaughter
7c2d1353f5 Cleanup temporary incognito mode files after last tab closes.
Change-Id: Iae5df353fdfd36c8eefa273a8812e80309e42841
2010-09-01 12:55:52 -07:00
Adam Powell
230269d43b DO NOT MERGE Integrate edge effects into WebView.
TODO Effect for scaling gestures; asset/polish tweaks.

Change-Id: Ifbc201cb64e0610dbc92a7c57ba0d3a4ee686c43
2010-09-01 11:56:56 -07:00
Derek Sollenberger
27c6f7d44c am 1614843e: Merge "Fix invalid comment in WebSettings." into gingerbread
Merge commit '1614843e93d98910147380969d034009ecb23aa2' into gingerbread-plus-aosp

* commit '1614843e93d98910147380969d034009ecb23aa2':
  Fix invalid comment in WebSettings.
2010-09-01 11:32:16 -07:00
Derek Sollenberger
fdbdeb3137 Fix invalid comment in WebSettings.
The get/set for the pluginPath is leftover from the Gear's plugin
and is no longer useful now that plugins are loaded from their
own APK using the package manager. These methods were modified to
be no-ops in froyo, but the documentation was never completed.

Change-Id: I20f6593445d877a3dae9b9f51d5198a3509255d6
http://b/2811032
2010-09-01 14:15:50 -04:00
Cary Clark
173a86b6d7 Merge "add web setting for enabling/disabling synthetic links" 2010-09-01 10:13:24 -07:00
Cary Clark
6c43d5231d add web setting for enabling/disabling synthetic links
According to this feature request

http://b/1865484

Some webviews wish to load pages and ignore the
email, phone, and postal addresses. Add a way
to specify that preference to the WebView class.

Change-Id: I6c077c6704e821206a8d653cce4036cecfba2e54
2010-09-01 12:52:13 -04:00
Leon Scroggins
fe026bdd3c Move Find on page and Select ActionModes to framework.
Bug: 2938052

Requires a change to packages/apps/Browser

Change-Id: I1bb1a47610b06c4bb02ef08647c02cc1dcaddb15
2010-09-01 11:48:05 -04:00
Leon Scroggins III
e1ab2228e2 Merge "Send delete key events when pressed at beginning of field." 2010-09-01 08:43:47 -07:00
Derek Sollenberger
c92de67da3 Fix NPE when WebView is being destroyed prior to callback completion.
Change-Id: I964c8b7846e37b554b9bda8cda4f62f3e3851691
http://b/2947192
2010-09-01 09:23:30 -04:00