Commit Graph

568 Commits

Author SHA1 Message Date
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
Grace Kloba
4350e1451c Move the full screen's matching embedded view to be
fully visible so that the touch will always work.
2009-12-21 18:05:04 -08:00
Grace Kloba
9a67c82089 Address the multiple resizing during initializing
problem adobe run into.

When a child view is created, we first hide it if
the webview is not ready to draw yet. This will avoid
the multiple resizing notification.
2009-12-20 11:33:58 -08:00
Mike Reed
19f3f0e329 add DragTracker class 2009-12-18 12:25:30 -05:00
Grace Kloba
11438c371e Implement the full screen WebView plugin.
Use a NoTitleBar_Fullscreen dialog to implement the
full screen plugin. This runs in the same thread as
WebView (UI in the Browser case). One catch is that
the SurfaceView provided by the plugin needs to be
opaque if it doesn't want to see through the WebView.

The PluginFullScreenHolder translates the events to
the underline WebView. Special treatment in the touch
case as it needs to translate the coordinates.

WebView can't be panned, or double tap to zoom, or
long press to trigger the context menu while having
a full screen plugin.

Inside webkit, we also give the plugin element focus
when it goes to the full screen so that it takes key
events. While handling key events, we don't let it 
loose focus or scroll out.

Todo:
When a plugin goes to full screen, we should make
sure the embedded plugin is fully visible. Otherwise
when we translate the touch events back, they will be
outside of the visible rect and will be ignored.

This is part 1 of 2-project check in.
2009-12-16 11:39:12 -08:00
Cary Clark
1cb97eed56 check to see if nav cache is up to date on tap
Pass point to click in three steps.
1) See if point corresponds to cached node.
2) If so,send a message to webkit to see if the node is good.
3) Call webkit with point, and good/bad info.

This is a two-part change with external/webkit.

Fixes http://b/2249425
2009-12-15 13:40:43 -05:00
Leon Scroggins
aacced6bc5 Provide localized strings for <input> labels.
Fix for http://b/issue?id=2178786

Provide strings for input types file, submit, and reset, and allow
them to be passed down to native.

Requires a change in external/webkit.
2009-12-15 08:49:59 -05:00
Derek Sollenberger
b6ddc7ae35 Notify native plugin code when the browser discards the customView. 2009-12-14 08:48:42 -05:00
Grace Kloba
70b942d34d Post a Runnable to execute setNewZoomScale when
WebView's onSizeChanged is called. This will ensure
requestLayout of the Child View works.

Fix http://b/issue?id=2323445
2009-12-12 12:35:54 -08:00