summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "Mark positioned elements as needing a relayout when checking for hit ↵Nicolas Roard2010-04-062-35/+1
| | | | | | | | | | | test." Not needed anymore. This reverts commit 84b2cee4185865d37e64bb3cc7a9e1bd6051eb7c. Bug:2457215 Change-Id: I945e6ebe520b1490f4bf62809b4f375750f5c597
* Make sure the protocol is lower case in the redirect.Patrick Scott2010-03-311-6/+10
| | | | | Bug: 2560217 Change-Id: I22a7c854a4e043682eac8b92ca2dece256af76b8
* Remove a warning.Leon Scroggins III2010-03-251-1/+1
| | | | Change-Id: Iffd11a306df9a5140b3406e825185713d17d273e
* Merge "Mark positioned elements as needing a relayout when checking for hit ↵Nicolas Roard2010-03-242-1/+35
|\ | | | | | | test. This is necessary when using composited fixed layers, as the layers position may have moved UI-side, while the webkit's related position of those layers may not have been updated yet."
| * Mark positioned elements as needing a relayout when checking for hit test.Nicolas Roard2010-03-242-1/+35
| | | | | | | | | | | | | | | | | | | | This is necessary when using composited fixed layers, as the layers position may have moved UI-side, while the webkit's related position of those layers may not have been updated yet. Fix Bug:2457215 Change-Id: If4f0e9c3d1a4786b29dcc7c2dc3510ba090b6a36
* | Fixes XHR requests to use the username and password supplied from JavaScriptSteve Block2010-03-241-2/+10
|/ | | | | | | | | Currently, the browser does not use the credentials supplied from JavaScript. If a request returns a 401 Unauthorized, the browser always prompts the user. This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method Bug: 2533522 Change-Id: Ic232003a3f321167810fc7263d6ecb654eeeb5eb
* Merge "Add on-demand plugin support."Patrick Scott2010-03-231-5/+13
|\
| * Add on-demand plugin support.Patrick Scott2010-03-231-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Settings object now has an on-demand flag for plugins (this was to avoid more edits to webkit code). If plugins are on-demand and a plugin is installed that can handle the content, insert a placeholder widget. If the user clicks on the placeholder, the plugin will be enabled. The widget currently does not clip the context correctly. It only clips based on the widget frame. This is due to a bug (already filed) where the scroll offset is producing bad clip rectangles. Requires a framework change. Bug: 2411524 Change-Id: If3931da8da2339a2385ae78b609c49fa069892ab
* | Allowing native code access to the application context as long asDerek Sollenberger2010-03-232-0/+25
|/ | | | | | | | | | there is at least one valid instance of the webviewcore class. This change allows plugins access to the application context when the plugin package is loaded, prior to any instances of the plugin being created. Change-Id: I74a58cf76cc3c2d0ef7bca19346f13f58f616830
* Add a new API on the resource loader to pause the current load. We use this ↵Ben Murdoch2010-03-222-0/+21
| | | | | | | | | | | when the plugin cannot accept any more data to prevent WebKit buffering the data that the plugin can't take. This can result in a crash if the buffer gets too big (when watching an HD movie clip in flash, for example). Requires a frameworks/base change. Change-Id: Ibb63d38df1014ff70fa4d65275613cbf3a217c1a
* Merge "Implements layoutTestController.setAppCacheMaximumSize"Steve Block2010-03-221-1/+8
|\
| * Implements layoutTestController.setAppCacheMaximumSizeSteve Block2010-03-191-1/+8
| | | | | | | | Change-Id: I2cf3d3135fbd21158525866af458eb89f902fb66
* | use picture recording flag to speed up clipPath (and avoid asserts in very ↵Mike Reed2010-03-192-2/+8
|/ | | | | | | | large edgelists) override (and no-op) clipPath() in IsEmptyCanvas, same reasons as above. Change-Id: I70b1565a11c1e314fdde507c1b2118b9aba651e6
* Merge "Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*""Brian Carlstrom2010-03-181-4/+4
|\
| * Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*"Brian Carlstrom2010-03-181-4/+4
| | | | | | | | | | | | | | | | While improving the javadoc for android.webkit.BrowserFrame.startLoadingResource, I noticed that the Java class metioned in the C++ comments was wrong. Change-Id: Ibf6234735fc6b92b444f6cf3b4c6bb5c33675525
* | Pass selection data along with message to open the keyboard.Leon Scroggins2010-03-182-7/+30
|/ | | | | | | | Fixes http://b/issue?id=2431351 Requires a change to frameworks/base Change-Id: I7f703746bdd00aaae2607a6a41ac4916f43d37b1
* Fix for Bug 2486292, transparent backgrounds not transparent in Froyo.Kristian Monsen2010-03-172-0/+8
| | | | | | | Recreating the transparent and color of old window when creating a new one, and setting transparent if all the colors are 0. Updated patch to fix comments from Grace. Change-Id: I934401630fd7041e7e4ae1cbeeaa198271025c87
* Compute the position of the fixed elements to be relative to theNicolas Roard2010-03-171-0/+1
| | | | | | | | screen and not the virtual viewport. This fixes Bug:2515587 and Bug:2457215 Change-Id: Ib987787cf9bf74b760b857dbbb397f85af334dce
* Clean up full-screen mode plugins now that they handle touchDerek Sollenberger2010-03-152-20/+4
| | | | | | | | in their java view. There is a matching commit in frameworks/base Change-Id: Ibe76eb22c2b5ccc7fb80e4807edcbbc4d25e4793
* Add requestCenterFitZoom to android_npapi so thatGrace Kloba2010-03-122-0/+14
| | | | | Flash can trigger the smart-zoom Fix http://b/issue?id=2510670
* iterate through the children of the label to find its textCary Clark2010-03-121-2/+11
| | | | | Change-Id: Ib4d713fd5797d9ee5c0a3080085a2db438c2bee0 http://b/2502091
* set the cached focus state when a node is in a fixed layerCary Clark2010-03-112-6/+19
| | | | | | | | | The newly built nav cache needs the layer information set before it attempts to set the focus so the nodes' bounds are set correctly. Change-Id: I72ff03988c267388da5921ac85b0ac0f6fb2374a http://2503096
* Only call plugin touch code if it is in full screenLeon Scroggins2010-03-092-7/+7
| | | | | | | | | | | | | mode or it is the document focused node. Remove Android special code added to support prevent default for double tap and long press. Long press and double tap needs to call preventDefault if it is needed. Remove Android special code added to pass event time. Need a separate CL for android_npapi.
* Merge "Serialize/unserialize screen width scale, which is used when ↵Shimeng (Simon) Wang2010-03-081-4/+12
|\ | | | | | | restoring sites."
| * Serialize/unserialize screen width scale, which is used when restoring sites.Shimeng (Simon) Wang2010-03-051-4/+12
| | | | | | | | | | | | | | | | Also change the scales' default value to 0, so in WebViewCore.java, in case the scales are not set inside webkit, the default logic can be used. This helps in case a mobile site is loaded but no scales is saved, and when restored, the mobile site will have wrong restored scales because default values are not 0.
* | check for null node to prevent monkey crashCary Clark2010-03-081-1/+1
| | | | | | | | | | Change-Id: I11625535de5e18f94d293081416eaa9bfa0a8c3c http://b/2492244
* | Set the proper frame's focus controller to active and focused.Leon Scroggins2010-03-052-8/+22
| | | | | | | | | | | | | | When editing text, set the FocusController to both active and focused, and use the FocusController associated with the focus. Fixes http://b/issue?id=2251399
* | Merge "Fixes a leaked JNI local reference in ↵Steve Block2010-03-051-0/+1
|\ \ | | | | | | | | | MIMETypeRegistry::getMIMETypeForExtension"
| * | Fixes a leaked JNI local reference in MIMETypeRegistry::getMIMETypeForExtensionSteve Block2010-03-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This method was leaking a Java class object. This caused layout test fast/dom/prototype-inheritance-2.html to crash because the VM ran out of local references. Bug: 2218794 Change-Id: I15d6bb8bf16ec58ecd6470ef63e6cd3635d766ef
* | | Merge "Remove unnecessary call to ↵Andrei Popescu2010-03-051-6/+0
|\ \ \ | |_|/ |/| | | | | ChromeClientAndroid::scheduleCompositingLayerSync()."
| * | Remove unnecessary call to ChromeClientAndroid::scheduleCompositingLayerSync().Andrei Popescu2010-03-051-6/+0
| | | | | | | | | | | | Fix b: 2471383
* | | Fix history restore.Patrick Scott2010-03-051-9/+2
|/ / | | | | | | | | goToItem now does a lot of what we were doing and was causing the page to not load because the current item matched where we were trying to move.
* | Don't leak global weak references when running layout testsLeon Clarke2010-03-041-1/+1
|/
* Call setCurrentIndex to trigger the client callback.Patrick Scott2010-03-031-6/+5
|
* Fixes a crash in WeakJavaInstanceSteve Block2010-03-031-8/+16
| | | | | | | | | | | | | | | | | | | | | | | WeakJavaInstance is a wrapper around JavaInstance. Outside of calls to virtualBegin/virtualEnd, it replaces the strong reference to the Java instance held by JavaInstance with a weak reference. This is to break circular references and allow the Java instance to be garbage collected. The code does not handle correctly the case where multiple calls are made to virtualBegin before corresponding calls to virtualEnd. virtualBegin caches the current instance as _weakRef. However, if virtualBegin has already been called, the current instance is now a strong reference, and this overwrites _weakRef. When virtualEnd is called, the instance is not restored to the weak reference. In the WeakJavaInstance destructor, we try to restore the strong reference from the weak reference, but this has already been deleted, causing the VM to abort. This patch fixes the problem by returning early from virtualBegin and virtualEnd when unmatched calls to virtualBegin have already been made. Also fixes some style issues. Bug: 2485164 Change-Id: I2b22a849af10e377525a3da215ca91e611d892d0
* Merge "Only set the DatabaseTracker path if it has been successfully set to ↵Ben Murdoch2010-02-261-3/+10
|\ | | | | | | something on the Java side as the DatabaseTracker only allows us to set it once."
| * Only set the DatabaseTracker path if it has been successfully set to ↵Ben Murdoch2010-02-251-3/+10
| | | | | | | | | | | | | | | | something on the Java side as the DatabaseTracker only allows us to set it once. Change-Id: I5d0121dac9a2b276a483992784822c1f52c04853
* | Merge "Prevent unsafe upper casting by checking Element's namespaceURI."Shimeng (Simon) Wang2010-02-251-4/+11
|\ \
| * | Prevent unsafe upper casting by checking Element's namespaceURI.Shimeng (Simon) Wang2010-02-251-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | For some website, when elements are created, somehow the tagName's namespaceURI is empty, so for "form" element, Element node is created instead of expected HTMLFormElement. Bug: 2461358 modified: WebKit/android/jni/WebCoreFrameBridge.cpp
* | | Merge "refactor drawing to support layers"Cary Clark2010-02-252-0/+33
|\ \ \ | |_|/ |/| |
| * | refactor drawing to support layersCary Clark2010-02-242-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drawing elements that appear atop or below layers need to be drawn both in the proper order and with the correct canvas to respect clipping and the matrix. Drawing the find results, text selection, or the cursor ring, interleaves with any layers that may be drawn. The main picture is treated as owned by a LayerAndroid so each component can decide when to draw. This change leave the main picture in WebViewCore.cpp, and draws everything else in WebView.cpp -- in the future, additional refactoring can put all drawing in one place. The logic of what to draw is still in WebView.java, but the actual drawing calls are now triggered inside the layer code. Android.mk - Add rule to trigger building without layers from buildspec.mk. LayerAndroid.* - Replace FindOnPage reference with abstract DrawExtra class to draw adornments in the layers' canvas context. - Add a LayerAndroid constructor to create a dummy layer with a SkPicture* and a uniqueId==-1 so that extras can detect when they are drawn by the main picture. android_graphics.* - Move cursor ring drawing out of WebView.cpp to here. - Separate cursor ring setup from actual drawing. - Get the cursor ring metrics in local coordinates. ChromeClientAndroid.cpp - Fix compiler warnings. WebViewCore.* - Move updateCursorBounds from WebView.cpp. This permits it to be called from CursorRing::setup. CachedFrame.* CachedNode.* CachedLayer.* - Add local bounds getters. CachedRoot.h - Move class FindCanvas to the android namespace. DrawExtra.h - Add an abstract class called by LayerAndroid to optionally draw extra elements in its canvas context. FindCanvas.* SelectText.* - Refactor drawing to draw in layers context. WebView.cpp - Move drawing from WebView.java. - Remove selection code to SelectText.cpp. - Use inverseScale to simplify viewPort metrics. - Simplify layer root so java doesn't need to know about it. Requires companion change in frameworks/base http://b/2457316 http://b/2454127 http://b/2454149
* | | Merge "Use reference instead of vector copying when dealing formElements."Shimeng (Simon) Wang2010-02-241-3/+3
|\ \ \ | |/ / |/| / | |/
| * Use reference instead of vector copying when dealing formElements.Shimeng (Simon) Wang2010-02-241-3/+3
| |
* | Simplify the layer code:Nicolas Roard2010-02-242-3/+10
| | | | | | | | | | | | | | * Rename setRootLayer to setUIRootLayer * Fixed some logs in GraphicsLayerAndroid * Added back the diagonal drawing debug code in LayerAndroid * Simplified ChromeClientAndroid, removed compositingLayerSync()
* | Do not forward touch event types we do not support into WebCore as ↵Ben Murdoch2010-02-241-3/+4
|/ | | | | | TouchCancel events. The old behavior creates an issue now we support pinch to zoom where releasing the pinch will always send a touch cancel to WebCore as the Java land touch event type is ACTION_POINTER_UP. Change-Id: Ie691f4a3c5ba6a09c3838deb37d8b9e0671c835b
* am 4c76da0e: am 1044e7fd: Fixes error where plugin is created while ↵Derek Sollenberger2010-02-222-17/+13
|\ | | | | | | | | | | | | | | | | iterating through the list of plugins. Merge commit '4c76da0e5177ea82be36bb81e67b52d51a5a72bb' * commit '4c76da0e5177ea82be36bb81e67b52d51a5a72bb': Fixes error where plugin is created while iterating through the list of plugins.
| * Fixes error where plugin is created while iterating through the list of plugins.Derek Sollenberger2010-02-222-17/+13
| | | | | | | | bug #2438492
| * Pass touch event time from Java to WebKitGrace Kloba2010-02-022-6/+6
| |
* | Add support for setting key states with touch events on Android.Ben Murdoch2010-02-192-6/+6
| | | | | | | | | | | | Properly guard non-upstreamed common code. Change-Id: I109dbe97d8c96efe3660ce3893a4e730927e90ef
* | Fixes a bug with the Geolocation suspend/resume behaviourSteve Block2010-02-182-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | PlatformBridge::isWebViewPaused needs to be an instance method, rather than a static. This fixes a bug where if the user switches browser windows while a page that uses Geolocation is still loading, the Geolocation service won't be started in the suspended state. Note that this is a temporary fix, as the upstreaming of the existing suspend/resume code will introduce a new approach, which will avoid this problem altogether. See https://android-git.corp.google.com/g/#change,38942 Change-Id: I3f07f8837b8a8c1c5e7e4f5112ab487188670c3a