Commit Graph

2321 Commits

Author SHA1 Message Date
George Mount
c4ffe77a71 Merge "Add back auto-completion and auto-fill." 2012-03-12 07:10:28 -07:00
John Reck
c419610477 Merge "Remove wrong nativeSubtractLayers" 2012-03-09 16:19:09 -08:00
Ken Wakasa
559c4841a6 Merge "Fix obvious typos under frameworks/base/core" 2012-03-09 15:52:06 -08:00
George Mount
bcd5dd7c9a Add back auto-completion and auto-fill.
Bug 5993316

 Webkit Change: I9d09a924a579d2d4551bff0489670de71d04757e

Change-Id: If00d42c0cb4f2c207f0d502e297741e1d6a68bf4
2012-03-09 15:45:32 -08:00
John Reck
d09666cbf0 Remove wrong nativeSubtractLayers
Bug: 5338388

Change-Id: I6b40d29d53df67bc04e8e52627b5d0c2769c28a5
2012-03-09 15:44:45 -08:00
Michael Kolb
d78ad29b09 fix callback NPEs when WebView is destroyed
Bug: 6141489

change destroy flow for WebViewCore and block callback
messages
Change-Id: Ib15a0e016508bc6df031996adde150dd37c195c4
2012-03-09 11:49:17 -08:00
Victoria Lease
c9a390811e Merge "finalise scrolling before checking scroll position" 2012-03-09 09:23:54 -08:00
Victoria Lease
9776ed7b94 Merge "scroll relative to visibleRect in spawnContentScrollTo()" 2012-03-09 09:23:40 -08:00
Victoria Lease
3beeb1c6da finalise scrolling before checking scroll position
Bug: 5470588

Change-Id: I09435875895452d0b015a641b471b113b84f9bf5
2012-03-09 09:03:40 -08:00
Ken Wakasa
f76a50ce8f Fix obvious typos under frameworks/base/core
Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
2012-03-09 22:48:43 +09:00
Victoria Lease
16e25e6ad8 scroll relative to visibleRect in spawnContentScrollTo()
WebKit calculates its scrolling destination coordinates relative to the
visibleRect that WebCoreViewBridge provides it. That visibleRect is stored
in WebViewClassic as mScrollOffset. When a titlebar is displaying, the
coordinate conversion from content to view fails. This conversion is used
in many other places and seems to function perfectly fine for them, so I've
concluded that while it may be the wrong tool for this particular job, it is
the correct tool for many others. As a result, I've left the conversion as it
is and simply fixed the function that WebKit calls to programatically scroll
the content. This fixes all of the programmatic scrolling issues I've been
seeing with find-on-page without breaking anything else.

  Bug: 5470588

Change-Id: I50d3af4dd8a7fbd2d04bbb41e38f3e6947fbb46a
2012-03-08 16:09:31 -08:00
Jonathan Dixon
ffb66ec254 Merge "Remove duplicated comments from WebViewClassic" 2012-03-08 04:23:34 -08:00
John Reck
39aae0cefb Merge "Don't draw the focus ring if we don't have focus" 2012-03-07 14:42:20 -08:00
Chris Craik
28ae199eee Merge "reenable webkit paint pausing" 2012-03-07 14:12:41 -08:00
Chris Craik
07b201194a reenable webkit paint pausing
bug:6016196

Change-Id: I4fcab8d84b39f033724c45845ef6c67b3071c509
2012-03-07 11:59:25 -08:00
John Reck
413fab3f44 Don't draw the focus ring if we don't have focus
Change-Id: Icb03060a03caf817ea39935bb56e14b5c86ed57b
2012-03-07 11:41:19 -08:00
John Reck
afeecb0740 Merge "Fix focus rings for buttons" 2012-03-06 18:22:14 -08:00
John Reck
ef109b0b70 Fix focus rings for buttons
Bug: 6124914

Change-Id: I8cb63de2636afc297756de7733de7bdda920b694
2012-03-06 18:02:11 -08:00
John Reck
e6725bcba5 Merge "Fix unhandled navigation path" 2012-03-06 17:05:48 -08:00
John Reck
4fa40371b3 Fix unhandled navigation path
Bug: 6109044
 Tab keys are handled via canTakeFocus & takeFocus (new path)
 Arrow keys are handled by seeing if the keyDown was unhandled (similar to old path)

Change-Id: I825de102de31443b1383a8126992c65a4957dcce
2012-03-06 15:38:09 -08:00
Nicolas Roard
18e9886342 Pass the version down to native
Change-Id: Ie240ea9875862288cf09fcfa1113b8e6cb3a7b1d
2012-03-06 11:53:56 -08:00
John Reck
b2676f76b6 Delete more navcache stuff
Change-Id: Ic32559948b90abb3e8e755c5eb533dd9e83b3190
2012-03-05 10:12:15 -08:00
Michael Kolb
02b693ecd4 Merge "fix race condition in WebViewClassic.destroy()" 2012-03-05 09:16:35 -08:00
Michael Kolb
6ddf44d815 fix race condition in WebViewClassic.destroy()
Bug: 6088940

Change-Id: If2cf26d4aab73d2d8689e4e3f9ec8e91193c966d
2012-03-02 15:54:52 -08:00
John Reck
f72a4464e6 Fix flash
Bug: 6110088

Change-Id: Ic7ecb9d773021a0cde803a3920ad716496ccc9ae
2012-03-02 14:21:18 -08:00
Jonathan Dixon
19b8011f8a Remove duplicated comments from WebViewClassic
Instead, just reference the authoritative docs in WebView
Also add @Override for all WebViewProvider overriden methods.

Change-Id: I02adf5dffed9dca3934c03c5cd93f005773e406e
2012-03-02 19:23:14 +00:00
George Mount
9a676bfb5f Quick fix for Monkey NPE.
Bug 6097462
 If paste window is shown before the insert thumb, an NPE
 would be thrown. This will be fixed fully later when the paste
 window is showing up only at the proper times rather than every
 time the insert thumb is shown.

Change-Id: I91eec7c28fc64a2274f5c3cd36784fedcae055ca
2012-03-02 07:40:38 -08:00
Jonathan Dixon
3c90952036 Refactor WebView to be a thin proxy class
Splits interface and implementation; all client calls are forwarded
to an abstract WebViewProvider interface, and the existing implementation
moved into the WebViewClassic implementor of this interface.

Originally taken from a snapshot from the development branch, by:
git diff HEAD 9a4c328a54cc05e5 | git apply
- but then rebased to keep up to date with master

Interdepends on webkit and Browser changes:
https://android-git.corp.google.com/g/158979
https://android-git.corp.google.com/g/167911

Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e
2012-03-02 11:17:47 +00:00
Jonathan Dixon
0dc0da67d9 change WebView to remove use of base class fields
This is done as its own step to make follow up patches easier on the eye.
(mostly implemented with eclipse refactor magic)

Change-Id: I23a9c1cbc5bba9a492e7e2ef1ddd275d84bec057
2012-03-02 11:15:24 +00:00
Jonathan Dixon
ded37ed9a5 Add new WebViewClassic files
Done as its own step, to make the subsequent diff easier on the eye

Change-Id: Ib81eba5c7c26f2e0c9a60792bb0f7cd10e4c78bc
2012-03-02 11:15:14 +00:00
Teng-Hui Zhu
148c5dadf4 Merge "Clean up Surface Texture on Java side" 2012-03-01 11:32:59 -08:00
Teng-Hui Zhu
fdd646b2b1 Clean up Surface Texture on Java side
bug:6079959

Change-Id: I5869d4fe4dc6eb12a117937b95a8277897d71ebb
2012-03-01 11:18:15 -08:00
George Mount
b290caafa7 Merge "Add support for maxlength text fields to WebViewInputConnection." 2012-02-29 07:17:12 -08:00
George Mount
6012edec28 Add support for maxlength text fields to WebViewInputConnection.
Bug 6083776
 While WebKit limits the length of a field with maxlength, the
 InputConnection can get out of sync with it when it doesn't
 recognize that the characters haven't been changed. Adds
 maximum field length to WebViewInputConnection to limit the
 characters typed.
 WebKit Change: Ie02f82a3f5b3527c378938d93bac2dece802af26

Change-Id: I135871db7809e8dc28a3ad8d3aa852976a274555
2012-02-28 15:27:26 -08:00
John Reck
42fb45588f Merge "Fix cursorRingBounds NPE" 2012-02-28 11:40:00 -08:00
John Reck
5528d7ccd1 Fix cursorRingBounds NPE
Bug: 6083657

Change-Id: I0aa30bc1df266b2f74b0fedfb635b71d63638fdb
2012-02-28 11:29:29 -08:00
John Reck
79d99bebc1 Fix NPE
Bug: 6083360

Change-Id: I8d4a4cfb4ca0bbefd848a6ed7a628bc3838e4f91
2012-02-28 11:21:17 -08:00
George Mount
e7b57be185 Merge "Perform action when action button pressed during text input." 2012-02-27 15:06:29 -08:00
George Mount
e12dd8fd96 Perform action when action button pressed during text input.
Bug 6059576

Change-Id: Ia87f323873b86b22930a2a39bf1c20756f06beec
2012-02-27 14:19:44 -08:00
George Mount
1023aa44ef Paste window instead of action bar when cursor shown.
Use the paste window shown with TextView when the
 cursor is shown rather than use the action bar.

Change-Id: I47d0bc2d5cba066399532a9e75171a75628ac7ed
2012-02-27 14:01:33 -08:00
Ben Murdoch
1d7b856a97 Merge "Fix looping HTML5 Audio." 2012-02-27 02:17:23 -08:00
Adam Powell
b98a81f86a Add support for optional titles in action modes
Optional titles will only be displayed in the CAB if they entirely fit
instead of ellipsizing.

Fixes bug 5821883

Change-Id: I0cfd6d4fd34a4fa9f520499d577706da30606811
2012-02-24 16:59:03 -08:00
John Reck
0d4134834e Merge "Fix HitTest type detection" 2012-02-24 10:22:56 -08:00
John Reck
59265e896a Fix HitTest type detection
Change-Id: Ide3d137de18302d2bb83437c3709a31afcdef9ff
2012-02-24 10:13:24 -08:00
George Mount
374d243a1a Merge "Disable selection when nothing selected." 2012-02-24 07:29:13 -08:00
Ben Murdoch
0168bef13f Fix looping HTML5 Audio.
When an <audio> tag has the loop=true attribute,
Webkit tells us to seek back to 0 before we are supposed
to have stopped the stream. But by the time that the message
gets back to the Android MediaPlayer java side, it's already
stopped. So after seeking, we play() again if the player is in
the COMPLETED state. Change the code to do this and handle
the case that we call play on a COMPLETED stream
(resetting internal state, etc).

Note that this has the side effect that we will start playing
the stream after any seek on a COMPLETED stream - e.g. dragging
the slider thumb on the progress track after the stream is
finished.

Bug: 5461143
Change-Id: I6cf4d46d9a1985caf9f9ab85dbcf65535c8dcd77
2012-02-24 11:15:11 +00:00
John Reck
5d5b378383 Merge "Support email and phone types" 2012-02-23 19:28:20 -08:00
John Reck
3a0e011fac Support email and phone types
Change-Id: I16571048954495aaaa11f25bf658dc128430460e
2012-02-23 17:42:05 -08:00
George Mount
9a6077e22e Disable selection when nothing selected.
Bug 6059606

Change-Id: I2c9acaa601e38a2cd0eec516709aa63f31ce0e29
2012-02-23 15:23:35 -08:00
George Mount
583e885bef Merge "Add javascript key events for special characters." 2012-02-23 14:43:02 -08:00