Commit Graph

1075 Commits

Author SHA1 Message Date
Andy Stadler
8aeeda9123 am cb6f29eb: am a16682b5: Merge "Allow touch events when clickable *or* longClickable" into gingerbread
Merge commit 'cb6f29ebc6a8cde6ed600d233e23b962d06ea43f'

* commit 'cb6f29ebc6a8cde6ed600d233e23b962d06ea43f':
  Allow touch events when clickable *or* longClickable
2010-09-28 13:20:05 -07:00
Andy Stadler
cb6f29ebc6 am a16682b5: Merge "Allow touch events when clickable *or* longClickable" into gingerbread
Merge commit 'a16682b5e8ed635910eada23272ba6548922c02e' into gingerbread-plus-aosp

* commit 'a16682b5e8ed635910eada23272ba6548922c02e':
  Allow touch events when clickable *or* longClickable
2010-09-28 10:06:27 -07:00
Leon Scroggins
f2e17a8683 Hide the soft keyboard when a textfield is blurred.
Bug: 2953257

Requires a change to external/webkit

Change-Id: I8ca82dc7cb6bc1494400f5e5c38050023c94a513
2010-09-28 10:04:50 -04:00
Steve Block
5c23ebadd4 Update the storage locations used by the Chromium HTTP stack
This updates the strorage locations to better match those used by the
Android HTTP stack.

The corresponding external/webkit change is
https://android-git.corp.google.com/g/70643

Bug: 3039536
Change-Id: Ia7ea68d1472e96788a7fbaa6e8f7aa1ee51b3fb0
2010-09-28 12:32:05 +01:00
Andy Stadler
b34fd1ff5c Allow touch events when clickable *or* longClickable
This matches more closely the behavior or View.onTouchEvent()

Bug: 3036477
Change-Id: I8a9135da7f9aeeb1e0537dce15295049013a0243
2010-09-27 15:51:09 -07:00
Mindy Pereira
560ba6e1a9 am 08c09b0f: Merge "DO NOT MERGE. Only 1 edge glow should be growing at a time." into gingerbread
Merge commit '08c09b0f84b23627b4cd02e1b9a642952fbd2e7f' into gingerbread-plus-aosp

* commit '08c09b0f84b23627b4cd02e1b9a642952fbd2e7f':
  DO NOT MERGE. Only 1 edge glow should be growing at a time.
2010-09-26 18:37:04 -07:00
Mindy Pereira
7d4995d250 DO NOT MERGE. Only 1 edge glow should be growing at a time.
When a user action starts a new edge glow (on pull or absorb), cause
the edge glow on the opposite side to decay.
Fixes b/ star  3028395  Yellow color bar is displayed when user reaches the end of the message and keeps scrolling in Gmail.

Change-Id: Id06e00d1843b0467f6f9149c22b233e639fc55ac
2010-09-26 18:13:56 -07:00
Huahui Wu
41865f4b0c Bug 2372180: pass multi-touch events from browser to webkit.
Since the UI uses multi-touch for zooming, the event is passed to webkit
only when the webpage doesn't allow zooming.
1. Updated the data structure TouchEventData in WebViewCore.java
   to take multiple points and used it everywhere.
2. Added a passMultiTouchToWebkit() function to do what its name means.
3. Added the multi-point touch support to dumprendertree.

Change-Id: Iafc1aa7b21a587ad26efd2f124b9a66316297ab8
2010-09-26 16:26:38 -07:00
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
Cary Clark
27c65e26c9 am dd8f13fa: Merge "Do not merge: clear text selection on rotate" into gingerbread
Merge commit 'dd8f13faf1cb8ad7a5f2573f09fe8436ec8a4ac2' into gingerbread-plus-aosp

* commit 'dd8f13faf1cb8ad7a5f2573f09fe8436ec8a4ac2':
  Do not merge: clear text selection on rotate
2010-09-22 08:35:58 -07:00
Cary Clark
dd8f13faf1 Merge "Do not merge: clear text selection on rotate" into gingerbread 2010-09-22 08:29:12 -07:00
Cary Clark
ef60890ee2 Do not merge: clear text selection on rotate
Change-Id: Ic7cb33d830779a75dc6e71db064ceac3c1f90298
http://b/3025142
2010-09-22 10:49:33 -04:00
Patrick Scott
b2044da3f9 Do not merge: cherry-pick a fix for a npe.
Fix a monkey crash when the new WebView is destroyed.

Grab the WebViewCore immediately so that if the Tab is destroyed, we have the
old WebViewCore object and can return the BrowserFrame.

Bug: 2733004
Change-Id: I8cddf9c9d635fc8b50983e4813eadda26cf23348
2010-09-22 09:46:33 -04: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
100cc263b4 am b5631f59: Merge "Do not merge : cancel text select mode when pressing back, etc." into gingerbread
Merge commit 'b5631f59d3b0411ed493dc382bb96ab15ca3304d' into gingerbread-plus-aosp

* commit 'b5631f59d3b0411ed493dc382bb96ab15ca3304d':
  Do not merge : cancel text select mode when pressing back, etc.
2010-09-21 11:51:23 -07:00
Cary Clark
2fddc21a46 Do not merge : cancel text select mode when pressing back, etc.
This was taken from scroggo's excellent change
https://android-git.corp.google.com/g/#change,68114

Change-Id: Idd18e08f1aaeb2fee47bfeed9e7d57e38cb1c62f
http://b/3000317
2010-09-21 14:33:11 -04: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
Shimeng (Simon) Wang
4de4f09e8e am fbd26467: Merge "DO NOT MERGE" into gingerbread
Merge commit 'fbd2646705c52c111f041b16d7cb34cb922a2a64' into gingerbread-plus-aosp

* commit 'fbd2646705c52c111f041b16d7cb34cb922a2a64':
  DO NOT MERGE
2010-09-13 11:51:55 -07:00
Shimeng (Simon) Wang
dc9f2b6668 DO NOT MERGE
Use a static variable and methods for the current WebView.

sJavaBridge may not exist by the time onWindowFocusChanged is called.
To avoid an NPE, just static methods that modify a global field.
JWebCoreJavaBridge is a global object anyway so using a static field
will be fine.  To avoid any garbage collection issues, store the
WebView in a WeakReference.

Bug: 2908023
Change-Id: I05e9261f2c3d13c10c73c9b34f3aeea1d12a08a6
2010-09-13 10:47:58 -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