summaryrefslogtreecommitdiffstats
path: root/WebKit
Commit message (Collapse)AuthorAgeFilesLines
* Merge changes I61cfea19,Ib2fe7793 into eclair-mr2Steve Block2010-01-204-2/+20
|\ | | | | | | | | | | * changes: Cherry-pick WebKit change 53449 to move JSC-specific implementation of JavaString to a private implementation class Cherry-pick WebKit change 53464 to rename WebCore/bridge/runtime to WebCore/bridge/Bridge
| * Cherry-pick WebKit change 53464 to rename WebCore/bridge/runtime to ↵Steve Block2010-01-194-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | WebCore/bridge/Bridge See http://trac.webkit.org/changeset/53464 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. Note that this change required an update to ScriptControllerAndroid.cpp and a manual fix in PluginView.cpp to add a temporary ANDROID guard. Change-Id: Ib2fe7793f7b3212e3b41324ff7dc5bb15c0e14b4
* | Exit the fullscreen mode when the PluginWidget isGrace Kloba2010-01-192-1/+9
|/ | | destroyed.
* Cherry-pick WebKit change 53436 to fix style in JavaInstanceJSCSteve Block2010-01-191-5/+5
| | | | | | | | | | | | See http://trac.webkit.org/changeset/53436 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. Note that changes to the following were required as a result of this cherry-pick. - WebCoreFrameBridge.cpp - updated to use JavaInstance::m_instance - V8Binding/jni/jni_instance - Updated to rename the V8 version of JavaInstance::_instance to JavaInstance::m_instance to allow the same code path to be used in WebCoreFrameBridge. Change-Id: I6884f7424c8a0917095f828bda4ca62452e527b5
* Merge "Cherry-pick WebKit change 53412 to move jni_instance to ↵Steve Block2010-01-191-1/+1
|\ | | | | | | JavaInstanceJSC" into eclair-mr2
| * Cherry-pick WebKit change 53412 to move jni_instance to JavaInstanceJSCSteve Block2010-01-191-1/+1
| | | | | | | | | | | | | | | | See http://trac.webkit.org/changeset/53412 Note that changes to WebCoreFrameBridge.cpp cpp were required as a result of this cherry-pick. Change-Id: I0a6f6fafc5b0d5d9337ef4e339c6a0c5dd188eb9
* | Should check the enable plugin settings before acceptingGrace Kloba2010-01-181-1/+4
| | | | | | the plugin mimetypes.
* | Don't use static jclass unless we hold a reference.Grace Kloba2010-01-141-14/+9
| | | | | | Fix the crash.
* | Add proper support for fixed position elementsNicolas Roard2010-01-141-3/+4
| | | | | | | | | | | | | | this is two-part change, see http://android-git.corp.google.com/g/#change,37092 for the java counterpart. This CL implements fixed position elements (css position: fixed) using layers, supporting pixels and percent lengths. It addresses http://b/1914365
* | Call into MimeTypeMap to get the mime type for an extension.Patrick Scott2010-01-133-29/+67
| | | | | | | | | | | | | | | | | | Use the default method to obtain the content type of a plugin. Implement extension to mime type by calling into the java map. Requires a small change to the webkit package. Bug: 2368893
* | Merge "Compare Node pointers rather than CachedNode pointers." into eclair-mr2Leon Scroggins2010-01-121-2/+2
|\ \
| * | Compare Node pointers rather than CachedNode pointers.Leon Scroggins2010-01-121-2/+2
| | | | | | | | | | | | Fixes http://b/issue?id=2369028
* | | Merge "adding event to notify the plugin when it is on/off screen." into ↵Derek Sollenberger2010-01-123-1/+23
|\ \ \ | | | | | | | | | | | | eclair-mr2
| * | | adding event to notify the plugin when it is on/off screen.Derek Sollenberger2010-01-123-1/+23
| |/ /
* | | Ensure that the current textfield is actually a textfield before treating it ↵Leon Scroggins2010-01-121-2/+2
|/ / | | | | | | | | | | like one. Fix for http://b/issue?id=2368868
* | consolidating to only use one surface per plugin. give plugin access to java ↵Derek Sollenberger2010-01-115-108/+102
| | | | | | | | | | | | context. There is a companion commit in frameworks/base.
* | Bring up the IME after receiving a response from webkit.Leon Scroggins2010-01-117-48/+13
|/ | | | | | Fix for http://b/issue?id=2361658 Requires a change to frameworks/base.
* Merge "Updates the use of weak references in the script-to-Java bridge for ↵Steve Block2010-01-081-11/+20
|\ | | | | | | V8." into eclair-mr2
| * Updates the use of weak references in the script-to-Java bridge for V8.Steve Block2010-01-081-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, V8 uses weak references to the Java object owned by JObjectWrapper. This is in contrast to JSC, which uses strong references in JObjectWrapper. However, for the special-case where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, JSC uses WeakJavaInstance to swap the strong references for weak references. This change updates the V8 version of JObjectWrapper to use strong references to match the JSC version. To maintain the weak reference behavior where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, V8 now make use of WeakJavaInstance too. This requires changes to jni_npobject to call the necessary methods on JavaInstance to swap the references when the object is accessed. Change-Id: I3724d7e6437588feb0268a2670b02a93b52e54f0
* | In motionUp, update the CachedHistory's mMouseBounds.Leon Scroggins2010-01-071-1/+3
| | | | | | | | | | | | mMouseBounds is later used to determine the point of clicking. Fixes http://b/issue?id=2313991
* | remove unused jni interfacesCary Clark2010-01-071-8/+0
| | | | | | | | companion change is in frameworks/base
* | Request <label> info only when accessing a textfield.Leon Scroggins2010-01-076-39/+28
| | | | | | | | | | | | | | Previously, we were storing the label info each time we build the navigation cache. Requires a change to frameworks/base.
* | In findBestHitAt, set x and y to the intersection of slop and cursor.Leon Scroggins2010-01-063-30/+24
| | | | | | | | Fixes http://b/issue?id=2201866
* | Store label information to be used for hint text.Leon Scroggins2010-01-064-6/+49
| | | | | | | | | | | | Fix for http://b/issue?id=2331526 Requires a change to frameworks/base.
* | webkit layers supportNicolas Roard2010-01-046-4/+252
| |
* | If the DOM changes textfield focus, make the IME work properly.Leon Scroggins2010-01-043-25/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for http://b/issue?id=2219166 Requires a change to frameworks/base 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. Also, allow "Next" to work on the currently focused textfield, even if it's not the cursor. Further, check for a new action if there is a focus but not a cursor.
* | Merge change Iab49f046 into eclair-mr2Android (Google) Code Review2009-12-181-8/+8
|\ \ | |/ |/| | | | | * changes: Fix to ensure plugin is notified even when the screen width does not change.
| * Fix to ensure plugin is notified even when the screen width does not change.Derek Sollenberger2009-12-181-8/+8
| |
* | Adds a 'using namespace JSC::Bindings;' declaration in WebCoreFrameBridge.Steve Block2009-12-181-40/+44
|/ | | | | | Also fixes some style issues. Change-Id: I21d39461b488a5f490ea3557b24fe1674903c286
* Merge webkit.org at r51976 : ScriptValue::getString now takes a ScriptState ↵Steve Block2009-12-171-1/+6
| | | | | | | | parameter. See http://trac.webkit.org/changeset/51801 Change-Id: I819c17c8609dd65799bd8a2245cc454e27271969
* Merge webkit.org at r51976 : externalRepresentation now takes a Frame argument.Steve Block2009-12-172-2/+2
| | | | | | See http://trac.webkit.org/changeset/50923 Change-Id: I8c7bb8af6e40fd449e27f28ff0d2e58fbb4d9eb3
* Merge webkit.org at r51976 : Implement new FrameLoaderClient page state methods.Steve Block2009-12-172-0/+18
| | | | | | See http://trac.webkit.org/changeset/51644 Change-Id: I539af311723c20648d4958c46ee3ebe502e680b8
* Merge webkit.org at r51976 : FrameLoaderClient::windowObjectCleared has been ↵Steve Block2009-12-172-2/+6
| | | | | | | | replaced with dispatchDidClearWindowObjectInWorld. See http://trac.webkit.org/changeset/50973 Change-Id: I54093cd917f15a51412b07b5495f32502cfd23b5
* Merge webkit.org at r51976 : Implement new ChromeClient::focusedNodeChanged ↵Steve Block2009-12-172-1/+5
| | | | | | | | method. See http://trac.webkit.org/changeset/50351 Change-Id: Ia3fa68ebb7f54b3a88635c9e8ebade0180a62e21
* Merge webkit.org at r51976 : Changes to InspectorController.Steve Block2009-12-171-5/+3
| | | | | | See http://trac.webkit.org/changeset/51631 Change-Id: Ic0973105e04df1023d4df6f6e1d20052e869ac4a
* Merge webkit.org at r51976 : Initial merge by git.Steve Block2009-12-17487-4653/+52369
| | | | Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43
* Merge change Ifcce71fa into eclair-mr2Android (Google) Code Review2009-12-165-5/+36
|\ | | | | | | | | * changes: Implement the full screen WebView plugin.
| * Implement the full screen WebView plugin.Grace Kloba2009-12-165-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 2 of 2-project check in.
* | Fix the benchmark app yet again to work in mr2 (and master).Patrick Scott2009-12-154-17/+25
|/ | | | | | The signature of startLoadingResource changed. The PageCache can change the FrameView so don't use the local one. Add a few more function intercepts in the fake vm.
* check to see if nav cache is up to date on tapCary Clark2009-12-156-5/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - WebKit/android/jni/WebViewCore.cpp - WebKit/android/jni/WebViewCore.h Add validNodeAndBounds() to determine if the clicked cached node is good. First check to see if the pointer to the frame and node still exist in the DOM. If they do, see if the hit test bounds they point to is the same as when the cache was recorded. - WebKit/android/nav/CacheBuilder.cpp - WebKit/android/nav/CachedNode.h Record the original absolute bounds for later comparison. - WebKit/android/nav/CacheBuilder.h Make getAreaRect() public so it can be called by validation. - WebKit/android/nav/WebView.cpp Enhance motionUp() with additional validation: use pointInNavCache() to see if there's a cached node; wait for message from webkit to see if bounds is unchanged; then use motionUp() to pass the original or altered click. This is a two-part change with frameworks/base. Fixes http://b/2249425
* Provide localized strings for <input> labels.Leon Scroggins2009-12-153-12/+55
| | | | | | | | | Fix for http://b/issue?id=2178786 Call up to Java to get strings for <input> labels, and use them on inputs. Requires a change in frameworks/base.
* Notify native plugin code when the browser discards the customView.Derek Sollenberger2009-12-145-20/+77
|
* Rollback to return density for scaleFactor.Grace Kloba2009-12-111-22/+2
| | | Move the comment to HTMLCanvasElement and always use 1.0 there.
* Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.Andrei Popescu2009-12-119-35/+102
|
* add event interface for plugins, so they can post an event to themselves ↵Mike Reed2009-12-105-0/+151
| | | | (from any thread)
* Merge change I85087ab0 into eclair-mr2Android (Google) Code Review2009-12-091-1/+13
|\ | | | | | | | | * changes: Enable orientation events.
| * Enable orientation events.Patrick Scott2009-12-091-1/+13
| | | | | | | | | | | | | | Remove our old orientation hacks as webkit now supports the orientation event. Call down into webkit when the orientation changes to send the js event. The change to Frame.cpp has been submited to bugs.webkit.org as issue 32321.
* | Enable longpress and doubletap to WebKit as touchGrace Kloba2009-12-093-9/+31
|/ | | | event if it is requested.
* Pass a message to move the focus when user hits "Next".Leon Scroggins2009-12-093-5/+51
| | | | | | | | Directly move the focus rather than passing a click. Fixes http://b/issue?id=2292683 Requires a change to frameworks/base
* Merge change I0b9d36d9 into eclair-mr2Android (Google) Code Review2009-12-082-5/+2
|\ | | | | | | | | * changes: Modify AndroidWebHistoryBridge to prepare uploading detachHistoryItem() to WebKit.