Commit Graph

576 Commits

Author SHA1 Message Date
Nicolas Roard
493bcdda3b Fix memory leak with layers.
This fix bug http://b/2394813
This is a two-parts CL (needs C++ modifs)
2010-01-26 18:36:51 +00:00
Grace Kloba
7168231a40 am c811cd91: am caf0ce3c: Delay resetting mPreventDrag flags so that the Plugin will have more time to respond whether it wants to handle the touch events. (not have to return the value from WebViewCore before the first tap is up)
Merge commit 'c811cd916f7264f11ba4c96fcd8b88e5d58e04db'

* commit 'c811cd916f7264f11ba4c96fcd8b88e5d58e04db':
  Delay resetting mPreventDrag flags so that the Plugin
2010-01-26 10:27:06 -08:00
Grace Kloba
79015fd263 am cf0957ce: am 77dc179b: As embedded and full screen shares the same view, we have to replace the AbsoluteLayout with ViewGroup.Layout before setting it to the dialog as dialog\'s FrameLayout doesn\'t accept AbsoluteLayout.
Merge commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542'

* commit 'cf0957ce4b0ba45b6c66c726710a5126c6a57542':
  As embedded and full screen shares the same view,
2010-01-26 10:26:57 -08:00
Patrick Scott
74f6c03bb2 Set a flag that indicates a response is pending.
This will keep track of multiple calls to proceed/cancel. If an error has
occurred and the client calls proceed or cancel more than once, the loader may
be null. Set the flag during the callback and reset after a response.

Bug: 2371305
2010-01-26 08:17:18 -05:00
Grace Kloba
caf0ce3ca2 Delay resetting mPreventDrag flags so that the Plugin
will have more time to respond whether it wants to
handle the touch events. (not have to return the
value from WebViewCore before the first tap is up)

Fix a potential null pointer exception.
2010-01-25 18:36:48 -08:00
Grace Kloba
96949efc54 We were blocking updating display tree during drag.
Now we only lower the WebViewCore thread priority.
So rename the functions to reflect the new meaning.
2010-01-25 09:53:01 -08:00
Grace Kloba
3a0def280f Manual merge pinch zoom from Eclair to Master.
Too many conflicts which prevent me to use git cherry-pick.
Merge based on the source diff.

WebSettings.java
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=commitdiff;h=5f01d7e268167c5cfb3366ce08e20a66d9b6fa6f

WebView.java (excl. drag tracker changes)
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=blobdiff;f=core/java/android/webkit/WebView.java;h=ab1841e140d72c22885512722cf1b75925bb8747;hp=ed1a98ae2d9321a483f6f8fa97b29b78121e94a7;hb=eclair;hpb=db08d5cd441424e4f9621aae7c2414934f781400

WebViewCore.java
https://android-git.corp.google.com/w/?p=platform/frameworks/base.git;a=blobdiff;f=core/java/android/webkit/WebViewCore.java;h=8ac915c556e3461f3c572c3a68d191ca1fecfee7;hp=a5a48527a389609e40da14ecad8c12dd8377cfaf;hb=eclair;hpb=dafc19a1406bdd554fb4629d79c8aa4d75aca363
2010-01-23 21:11:54 -08:00
Grace Kloba
77dc179baa As embedded and full screen shares the same view,
we have to replace the AbsoluteLayout with
ViewGroup.Layout before setting it to the dialog
as dialog's FrameLayout doesn't accept AbsoluteLayout.

This should fix the crash when changing orientation.
2010-01-21 19:13:34 -08:00
Derek Sollenberger
72666bac20 am 1f7747ad: am 7cabb03d: Resize the WebView when the soft-keyboard appears in landscape mode.
Merge commit '1f7747adb6a79317f4bd52fb78b3c567dd203883'

* commit '1f7747adb6a79317f4bd52fb78b3c567dd203883':
  Resize the WebView when the soft-keyboard appears in landscape mode.
2010-01-21 08:39:15 -08:00
Derek Sollenberger
7cabb03da7 Resize the WebView when the soft-keyboard appears in landscape mode.
The WebView notifies the IME that it wishes to be resized when the
soft-keyboard is displayed. This fixes http://b/2170192.
2010-01-21 10:37:38 -05:00
Andrei Popescu
f5dba888c6 Detect if the current network is wifi or not and update webkit.
This info is passed to youtube.com via navigator.networkType

Fixes Bug: 2368650
2010-01-15 20:04:08 +00:00
Nicolas Roard
1061a4dd73 am 0123101a: am af2af4e5: Add proper support for fixed position elements
Merge commit '0123101af0e15221026f97f19dad23488840700a'

* commit '0123101af0e15221026f97f19dad23488840700a':
  Add proper support for fixed position elements
2010-01-14 13:18:25 -08:00
Nicolas Roard
af2af4e53a Add proper support for fixed position elements
this is two-part change, see  http://android-git.corp.google.com/g/#change,37091 for the C++ counterpart.
This CL implements fixed position elements (css position: fixed) using layers, supporting pixels and percent lengths.

It addresses http://b/1914365
2010-01-14 14:46:07 +00:00
Patrick Scott
139f6f31d1 am 70c4f6cf: am 021b7b44: Add a static method to obtain the mime type from extension.
Merge commit '70c4f6cfb4fd48d5153080d038ac0f5b6dbd98ec'

* commit '70c4f6cfb4fd48d5153080d038ac0f5b6dbd98ec':
  Add a static method to obtain the mime type from extension.
2010-01-13 11:51:33 -08:00
Patrick Scott
021b7b443f Add a static method to obtain the mime type from extension.
This method is used by WebKit to obtain the mime type from an extension.

Bug: 2368893
2010-01-13 14:12:43 -05:00
Leon Scroggins
a77f93f76a am ace8addc: am 2edd6826: Create a new ImeOption that disables fullscreen in landscape, and use it.
Merge commit 'ace8addce47efc03be5038eef48d7fb066b14aae'

* commit 'ace8addce47efc03be5038eef48d7fb066b14aae':
  Create a new ImeOption that disables fullscreen in landscape, and use it.
2010-01-13 06:15:38 -08:00
Leon Scroggins
2edd68260f Create a new ImeOption that disables fullscreen in landscape, and use it.
EditorInfo:
Add a flag to tell the InputMethodService to never go into fullscreen
mode.

InputMethodService:
When the new flag is set, onEvaluateFullscreenMode always returns
false.

WebTextView:
Use the new flag, along with IME_FLAG_NO_EXTRACT_UI.  Fixes
http://b/issue?id=2358360
2010-01-12 17:29:25 -05:00
Andrei Popescu
93aea69649 Merge "Implement timeupdate events for video tag." 2010-01-12 08:17:27 -08:00
Andrei Popescu
048eb3bfa1 Implement timeupdate events for video tag.
Fix http://b/issue?id=2210105
2010-01-12 16:13:52 +00:00
Cary Clark
bad0c54de9 rebuild the nav cache if the clicked on node is invalid
Rebuild the nav cache in the webkit thread after determining
that the clicked on node isn't valid. Remove old code that
passed a flag to avoid using the invalid node, since it
should always be valid now.

requires a companion fix in external/webkit

fixes http://b/2362334
2010-01-12 09:18:08 -05:00
Grace Kloba
4c7ec8d6ab As setNewZoomScale is called asynchronously, the
WebView can be destroyed. If it is, skip scaling.

Fix http://b/issue?id=2366538
2010-01-11 15:36:37 -08:00
Derek Sollenberger
c408d5c278 am 1fed31aa: am fef4874a: fixing build break by removing unused imports.
Merge commit '1fed31aa81f769db308f6d92b0530ad52fa79ca8'

* commit '1fed31aa81f769db308f6d92b0530ad52fa79ca8':
  fixing build break by removing unused imports.
2010-01-11 14:14:28 -08:00
Derek Sollenberger
fef4874afd fixing build break by removing unused imports. 2010-01-11 16:26:07 -05:00
Derek Sollenberger
86cf1ad0e5 am d55aa751: am 7c5bf466: consolidating to only use one surface per plugin. give plugin access to java context.
Merge commit 'd55aa75138cb3305e1aeb6fb4873851435462f2f'

* commit 'd55aa75138cb3305e1aeb6fb4873851435462f2f':
  consolidating to only use one surface per plugin. give plugin access to java context.
2010-01-11 13:23:41 -08:00
Derek Sollenberger
7c5bf4666c consolidating to only use one surface per plugin. give plugin access to java context.
There is a companion commit in external webkit.
2010-01-11 13:47:54 -05:00
Andrei Popescu
10d268e315 Merge "Allow a video to be correctly resumed programatically after being paused." 2010-01-11 10:47:23 -08:00
Andrei Popescu
a41f97bd77 Allow a video to be correctly resumed programatically after being paused.
Fix for http://b/issue?id=2366241
2010-01-11 18:36:25 +00:00
Leon Scroggins
f6298db023 am ff7d33b5: am 04e0a101: Bring up IME after receiving a response from webkit.
Merge commit 'ff7d33b55b799b234f66fdcf65070ef590fee6d9'

* commit 'ff7d33b55b799b234f66fdcf65070ef590fee6d9':
  Bring up IME after receiving a response from webkit.
2010-01-11 06:58:51 -08:00
Leon Scroggins
04e0a1018f Bring up IME after receiving a response from webkit.
Fix for http://b/issue?id=2361658

Requires a change to external/webkit
2010-01-11 09:10:20 -05:00
Romain Guy
980a938c1c Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:38 -08:00
Mike Reed
b2924736d7 explicitly initialize static final boolean to fix build 2010-01-08 17:34:58 -05:00
Mike Reed
fdc5424b1c optional flag to enable tracker debugging 2010-01-08 16:13:28 -05:00
Evan Millar
431f5fd9e8 Unhide WebView#emulateShiftHeld() so that gmail can do select-to-copy 2010-01-08 10:17:02 -08:00
Andrei Popescu
b816377fed Merge "Fix a bug where the usage for an origin shows up as 0 in Website Settings when the origin uses app cache but not database." 2010-01-08 09:49:31 -08:00
Patrick Scott
29eadcf376 Merge "Deprecate onTooManyRedirects." 2010-01-08 09:23:44 -08:00
Andrei Popescu
9840970413 Fix a bug where the usage for an origin shows up as 0 in Website Settings when the origin
uses app cache but not database.
2010-01-08 16:41:23 +00:00
Patrick Scott
6a5b0ecae5 Deprecate onTooManyRedirects.
The method was added a long time ago but has never been called. Rather than
spend time implementing and testing this feature, deprecate the function.

Bug: 2257857
2010-01-08 10:16:33 -05:00
Leon Scroggins
0d05539533 am 4e9a9d8e: am c89b13b9: Use Calendar.add() instead of Calendar.roll()
Merge commit '4e9a9d8ea8a31578b936b17f66177f4c1b18cddb'

* commit '4e9a9d8ea8a31578b936b17f66177f4c1b18cddb':
  Use Calendar.add() instead of Calendar.roll()
2010-01-08 06:48:21 -08:00
Cary Clark
b0470f67a1 am 2110bb02: am affa5d2c: remove unused jni interfaces
Merge commit '2110bb024eafe4578bb9acace9f1ad4ae55ff9fd'

* commit '2110bb024eafe4578bb9acace9f1ad4ae55ff9fd':
  remove unused jni interfaces
2010-01-08 06:48:08 -08:00
Leon Scroggins
c89b13b962 Use Calendar.add() instead of Calendar.roll()
Calendar.roll() breaks the year at the beginning of the year, so
use add() instead, which changes larger fields.

Also, only use 4 bins, since the last bin's boundary is not relevant.

Lastly, no need to return Calendar in beginningOfDay.

Fixes http://b/issue?id=2361382
2010-01-08 09:18:37 -05:00
Cary Clark
affa5d2c0f remove unused jni interfaces
Also make package interfaces unused outside of WebView.java
private.

companion change in external/webkit
2010-01-07 13:02:42 -05:00
Leon Scroggins
283ae234a7 am bd6029fc: am 3a503399: Request <label> info only when accessing a textfield.
Merge commit 'bd6029fc5171e1094a00cdecb3f33aae6fe69c9f'

* commit 'bd6029fc5171e1094a00cdecb3f33aae6fe69c9f':
  Request <label> info only when accessing a textfield.
2010-01-07 06:00:17 -08:00
Leon Scroggins
3a5033996e Request <label> info only when accessing a textfield.
Previously, we were storing the label info each time we build the
navigation cache.

Requires a change to external/webkit.
2010-01-07 08:33:34 -05:00
Leon Scroggins
f291b9fecb am fbd3afb1: am e38fc189: Show label information as hint text
Merge commit 'fbd3afb1801ed69a5c948241e68b997be3d84f4e'

* commit 'fbd3afb1801ed69a5c948241e68b997be3d84f4e':
  Show label information as hint text
2010-01-06 14:05:46 -08:00
Leon Scroggins
e38fc18981 Show label information as hint text
Fix for http://b/issue?id=2331526

Requires a change to external/webkit.
2010-01-06 10:15:00 -05:00
Cary Clark
57d2c3ad19 extract selected text from the picture
This deletes the messages between WebView and WebViewCore
that pass a region and extracts the rendered text
and returns the selected text from WebView directly.

This requires companion changes in external/webkit,
which in turn is dependent on changes to external/skia.

Fixes http://b/2166748
2010-01-05 10:31:04 -05:00
Nicolas Roard
3886333644 layers support 2010-01-04 19:30:55 +00:00
Grace Kloba
67166b6eae Merge "Cleanup the cache file when we decide not saving it. This logic was lost when we switched back using FLASH instead of RAM for the cache." into eclair-mr2 2010-01-04 09:55:54 -08:00
Leon Scroggins
e26efa321c If the DOM changes textfield focus, make the IME work properly.
Fix for http://b/issue?id=2219166

Requires a change to external/webkit

Remove the old change to update the WebTextView when a key is pressed,
since the IME does not generate key events.  Instead, when the focus
changes, and the IME is serving the WebTextView, immediately clear
the cursor and update the WebTextView, so the user can continue
typing.
2010-01-04 09:43:57 -05:00
Grace Kloba
998c05b3b5 Cleanup the cache file when we decide not saving it.
This logic was lost when we switched back using FLASH
instead of RAM for the cache.

Add back the CACHE_MAX_SIZE to limit the maximum
cacheable file.

Fix http://b/issue?id=2346132
2009-12-27 18:25:21 -08:00