Commit Graph

2436 Commits

Author SHA1 Message Date
John Reck
cada1ae717 Merge "Allow removing messages before EventHub created" 2012-04-19 11:09:44 -07:00
George Mount
e3e26c41c3 Allow long press to work on text.
Bug 6351196

Change-Id: I7604ebe70ab58d17b916f92e364343776b66aa3c
2012-04-19 09:57:23 -07:00
John Reck
fd6ad04441 Allow removing messages before EventHub created
Bug: 5421676

Change-Id: Id15b669947bd01d3cc3ba3e9b93175120fa518e8
2012-04-18 17:59:17 -07:00
Michael Kolb
23a2ce1fad Merge "Prevent dialog from invalid context" 2012-04-18 10:40:59 -07:00
Michael Kolb
dfceaf2cdb Prevent dialog from invalid context
Bug: 6346748

Change-Id: Ia65ecc1ecb882b480127aca0034db25a9e51ed3c
2012-04-18 08:37:41 -07:00
John Reck
6849e4dd45 Merge "Add destroyed check" 2012-04-17 13:54:54 -07:00
John Reck
8a7e177bb5 Add destroyed check
Bug: 6350066

Change-Id: Icf077bcf9678a036a669124c27e56e191a935960
2012-04-17 13:32:00 -07:00
John Reck
48ca060e65 Merge "Minor cleanup" 2012-04-17 10:37:41 -07:00
Steve Block
cf6960ed15 Merge "Clean up JavaDoc for WebView.getZoomControls()" 2012-04-17 05:08:04 -07:00
Steve Block
06d268e3ad Clean up JavaDoc for WebView.getZoomControls()
Bug: 5461416
Change-Id: I4f2b5c9e4b4c2b1a38d678cb6756f128670ee490
2012-04-17 12:19:10 +01:00
John Reck
533e69f0be Minor cleanup
Change-Id: Ide35e6cf2abe2b723e6d45e796a21ae135706bf5
2012-04-16 18:08:00 -07:00
George Mount
32f038deab Merge "Check for null mWebViewCore in selectText" 2012-04-16 07:39:01 -07:00
Steve Block
9c6b01a753 Merge "Clean up JavaDoc for WebStorage" 2012-04-16 06:42:36 -07:00
Mikhail Naganov
9f7296af04 Fix javadoc breakage by not linking to now hidden WebView.getZoomControls method.
Change-Id: I770a647b2e6068687530813133847a624ed5aa0d
2012-04-16 14:26:06 +01:00
Steve Block
d099935c52 Merge "Clarify WebSettings comments related to zooming." 2012-04-16 02:25:14 -07:00
Jonathan Dixon
caf97c7db9 Merge "Two WebView API cleanups" 2012-04-16 01:05:06 -07:00
John Reck
a12e1fe16f Merge "Set initial focus" 2012-04-13 13:25:41 -07:00
George Mount
07c9e296e6 Check for null mWebViewCore in selectText
Bug 6306770

Change-Id: I83e70aef45ff6519e4e9eb70edae44efcecf6de8
2012-04-13 13:16:15 -07:00
George Mount
8b0d90ee57 Wait for zoom manager to update before sending new picture event.
Bug 6315070

Change-Id: I80be7680499705f7865abc8ef753db1bb63ef44f
2012-04-13 13:16:15 -07:00
John Reck
a4eddb577c Set initial focus
Bug: 6108927

Change-Id: I8f9356c41700b05ca36d106b1db34e3a7630b125
2012-04-13 12:42:32 -07:00
John Reck
3f1679cba0 Remove an unnecessary sanity check
This is causing issues with MotionEvents built by various tools such
 as DRT. The check itself doesn't seem strictly necessary, and it is
 easier to remove the check than fix all the tools and tests

Change-Id: I74bf85307956b5858042fbe23f87ed2b87132f17
2012-04-13 10:21:16 -07:00
Jonathan Dixon
939e5040b5 Two WebView API cleanups
- remove final from classes which we will need to provide subclasses
  in future: CookieManager, GeolocationPermissions, WebIconDatabase
  and WebStorage. None of these have published constructors,
  so applications cannot subclass them anyway.

- Also convert some protected members of JsResult to private, as its of
  no use to legal subclasses, and applications cannot subclass it.

Change-Id: Iaca9d2db31e25853b6c55feae41d9e7774087479
2012-04-13 16:36:16 +01:00
Ben Murdoch
f804ba131b Merge "Add support for HTML Media Capture "capture" attribute." 2012-04-13 06:06:50 -07:00
Steve Block
285ddfc8ab Clean up JavaDoc for WebStorage
Bug: 5461416
Change-Id: Ice7a2ca1e346ae80f53b477d236ff8c20032cf2f
2012-04-13 12:58:55 +01:00
Mikhail Naganov
b533fb4eef Clarify WebSettings comments related to zooming.
1. It wasn't clear that SupportZoom doesn't affect WebView's
   zoomIn / zoomOut methods.

2. It was easy to misread that to enable "pinch to zoom" one
   needs to hide zoom controls.

Bug: 5461416

Change-Id: Ic8afd22ae0f36e53b9f4724e95ac55c766f58af5
2012-04-13 11:36:57 +01:00
Jonathan Dixon
c2401d094a Merge "Add deprecated tag and note StrictMode violation" 2012-04-13 02:35:06 -07:00
Jonathan Dixon
b36584042e Merge "Hide the public constructors for singleton classes" 2012-04-13 02:35:00 -07:00
Jonathan Dixon
f2e103623b Merge "Decouple JsResult from the WebViewClassic impl" 2012-04-13 02:33:04 -07:00
Ben Murdoch
be716920e7 Add support for HTML Media Capture "capture" attribute.
Plumb the value of the "capture" attribute through the framework
down to the embedder.

Requires a change in WebKit
(I0a921be31fda79a43c05da4fe22d9c808d92709c)

and Browser (I38dfe2df043fdba1388384dbd3b5370737eb38e5).

Bug: 5771207

Change-Id: I494adc1274ca21ce8fe52a6c7b6b758217927e66
2012-04-13 10:09:14 +01:00
George Mount
ff39407595 Merge "Use selection handle to scroll edit text" 2012-04-12 15:36:50 -07:00
George Mount
557748dfbd Use selection handle to scroll edit text
Bug 6293151

Change-Id: I4362717a101cc297e9e8734aa975091a814aab1c
2012-04-12 15:35:22 -07:00
John Reck
d855ffd514 Remove debug log
Change-Id: Ia76103b2a0225df2637af917c5ac352497ca0cf6
2012-04-12 14:45:49 -07:00
John Reck
2d8c13bd1c Improve when highlight rects are shown
Bug: 6319429

Change-Id: I8eb989d94433c01406cdb32e01034c644078a133
2012-04-12 14:19:05 -07:00
Jonathan Dixon
a3dc86e637 Hide the public constructors for singleton classes
WebStorage and GeolocationPermissions are not intended for direct use
by application code. Existing APKs using this will still work (as well
as they ever could have), but this change will cause a compile break if they
move to SDK >= 16, which should be fixed by using getInstance() instead.

Bug: 6238010
Change-Id: I75789cc260c8fe005c42942bc81483193cc54f17
2012-04-12 20:23:37 +01:00
Jonathan Dixon
2377b99f6c Decouple JsResult from the WebViewClassic impl
The majority  JsResult and JsPromptResult are simple data-carrying &
callback classes. Extract the WebViewClassic specific parts dealing
with WebCore thread and CallbackProxy and decouple via abstract interface.

Bug: 6238755
Change-Id: Ibafd18910725f0875e3b59c1b2078173c102cdec
2012-04-12 19:08:00 +01:00
Steve Block
b187d52f8a Merge "Minor clean-up in DeviceOrientation and DeviceMotion" 2012-04-12 11:02:29 -07:00
John Reck
a3fab1cbd2 Merge "Cleanup unused code" 2012-04-12 09:54:28 -07:00
Jonathan Dixon
9f21c1c73f Add deprecated tag and note StrictMode violation
This method is already @deprecated in docs anyway.
StrictMode.noteSlowCall can help apps discover the error.

Change-Id: Ie131d938b0dd32f85ec1886e2139ce3c3f511209
2012-04-12 11:14:20 +01:00
Steve Block
5ba2efeb9f Minor clean-up in DeviceOrientation and DeviceMotion
No functional change.

See corresponding external/webkit change
https://android-git.corp.google.com/g/#change,125700

Change-Id: I2693328cb058820587ac43dd3121818959efd2d0
2012-04-12 11:08:13 +01:00
Jonathan Dixon
39edeeefe7 Merge "Hide WebView.getZoomControls()" 2012-04-12 02:29:50 -07:00
John Reck
a511bbf872 Cleanup unused code
Bug: 6317798

Change-Id: Ibf38d680fabacb2987cd26fac464875dd8ebad2e
2012-04-11 17:51:41 -07:00
John Reck
c2676102d2 Merge "New WebView input dispatcher." 2012-04-11 16:03:46 -07:00
Jeff Brown
9d3bdbd6b8 New WebView input dispatcher.
Bug: 6317798

Stuff that's better:

1. We maintain two queues in a way that ensures that WebView and
WebKit both see consistent streams of events, even in cases
where WebKit times out.  We send ACTION_CANCEL if necessary, etc.

2. All pointer events go through the same channel, including
hover and click ("touch up") events, to ensure correct ordering.

3. Given that the input events are in a separate queue, we can
force execution of all of these events whenever we like, making new
latency optimizations possible.

4. The entire history of each touch event is sent to the web
application to enable smoother interaction.

5. The web application may choose to intercept a touch event stream
at any time by issuing "prevent default".  Previously, it could only
prevent default on the initial down event.  The new behavior is more
standards compliant.

Change-Id: I42d2d045e7d44af7c54b29570f188b7400d91d4e
2012-04-11 15:10:24 -07:00
Chris Craik
cae80b2563 Merge "Unify composited layer/base layer draw path" 2012-04-11 14:26:11 -07:00
Mangesh Ghiware
518e83b8c6 On double-tap, simply zoom in if content is too wide.
Bug: 6257654
Change-Id: I6963476300619d6f0d6af46630f9a86d95ad0dfc
2012-04-10 17:42:49 -07:00
Chris Craik
00ed0fd27f Unify composited layer/base layer draw path
Multiple paths were redundant, as they both synchronized the layers, and drew
the base if needed.

Depends on external/webkit change: https://android-git.corp.google.com/g/#/c/179965/

Change-Id: I1c355510f6edda4631190f2d26df8171e795a6ac
2012-04-10 17:29:35 -07:00
Dianne Hackborn
2a854c13f8 Merge "Some small tweaks to improve memory management." 2012-04-10 15:25:43 -07:00
Dianne Hackborn
162bc0ea0d Some small tweaks to improve memory management.
We now allow processes that currently have stopping activities to
be managed as if they were done stopping, so that memory trimming
can be done before the process goes to the background.  Hopefully
this will reduce cases where the processes goes to the background
and immediately gets killed, but wouldn't have had to be killed if
it had a chance to trim its memory.

Also change window memory trimming to always do the aggressive
trimming when memory is critical, even if not on a low-end device.

And tweak web view trimming to not trim for foreground UI events.

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
2012-04-10 14:43:58 -07:00
George Mount
1bee28f4c8 Merge "Revert "Revert "Keep selection handles in edit fields.""" 2012-04-10 14:23:07 -07:00
George Mount
7102eb2d30 Revert "Revert "Keep selection handles in edit fields.""
This reverts commit 90c08eafad
2012-04-10 13:41:51 -07:00