summaryrefslogtreecommitdiffstats
path: root/WebKit/android
Commit message (Collapse)AuthorAgeFilesLines
* 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-118-35/+101
|
* add event interface for plugins, so they can post an event to themselves ↵Mike Reed2009-12-104-0/+150
| | | | (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.
| * Modify AndroidWebHistoryBridge to prepare uploadingGrace Kloba2009-12-072-5/+2
| | | | | | | | | | | | detachHistoryItem() to WebKit. I think it is easy to read this way that the constructor sets the m_historyItem and the new method will detach it.
* | Show "Go" for the last textfield in a form.Leon Scroggins2009-12-084-3/+13
| | | | | | | | Fixes http://b/issue?id=2210152
* | exclude from cache nodes that are entirely clipped outCary Clark2009-12-081-6/+3
| | | | | | | | | | | | | | Google's real time search has many results outside of an overflow div that should be ignored by the nav cache. Make it so. fixes http://b/2298478
* | Merge change Ia8a49e0d into eclair-mr2Android (Google) Code Review2009-12-081-1/+2
|\ \ | | | | | | | | | | | | * changes: fix debugging output
| * | fix debugging outputCary Clark2009-12-071-1/+2
| | |
* | | Switching from activity based full screen plugins to a view system overlay.Derek Sollenberger2009-12-086-86/+37
| | |
* | | Merge change I747854ee into eclair-mr2Android (Google) Code Review2009-12-081-1/+0
|\ \ \ | | | | | | | | | | | | | | | | * changes: Remove an accidentally added include.
| * | | Remove an accidentally added include.Ben Murdoch2009-12-071-1/+0
| | | | | | | | | | | | | | | | Change-Id: I747854ee918df97d12d7d0ed1a5fecfb10d8d805
* | | | Provide <input> type information to Java side.Leon Scroggins2009-12-074-15/+39
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Help to fix http://b/issue?id=1890360 and http://b/issue?id=2150538 CacheBuilder.cpp: Explicitly set isTextField to false for textareas. CachedRoot: Remove the code which checks to see if the textfield is a search, since if it is, we can avoid this path altogether. WebView: Return a single integer which tells what type the current text input field is. Requires a change to frameworks/base.
* | | Merge change I38601c0e into eclair-mr2Android (Google) Code Review2009-12-071-2/+8
|\ \ \ | |_|/ |/| | | | | | | | * changes: Fix the wrong layout in the layout test.
| * | Fix the wrong layout in the layout test.Grace Kloba2009-12-061-2/+8
| |/ | | | | | | | | | | | | When we create a new WebFrameView, the bounds needs to be transferred from the old WebFrameView. Otherwise the new View will have (0,0) as bounds. Add transitionToCommitted() for transitionToCommittedFromCachedFrame().
* | fix crash reading readonly node stateCary Clark2009-12-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Something about rebuildTextView() invalidates the current cached frame -- reading the last obtained frame after calling it may crash. Why, I don't know. Until I figure that out, read the cached state first. Also remove some tests for null frame and node since the null case has already been handled earlierin motionUp(). fixes http://b/2307964
* | Store InputType information for <input> fields, return SEARCH action for ↵Leon Scroggins2009-12-075-8/+21
|/ | | | | | | SEARCH <input> Fixes http://b/issue?id=2299660 and http://b/issue?id=2299650 Also remove isPassword, which is redundant.
* Merge change If686b999 into eclair-mr2Android (Google) Code Review2009-12-042-3/+5
|\ | | | | | | | | * changes: Pass up flags for the main resource and user gesture.
| * Pass up flags for the main resource and user gesture.Patrick Scott2009-12-042-3/+5
| | | | | | | | This requires a change to the framework.
* | Merge change I49b2fbe0 into eclair-mr2Android (Google) Code Review2009-12-041-3/+10
|\ \ | | | | | | | | | | | | * changes: Only re-center the page if it is zoom change or orientation change. Do not re-center the page if it is caused by show/hide soft keyboard.
| * | Only re-center the page if it is zoom change orGrace Kloba2009-12-041-3/+10
| |/ | | | | | | | | | | orientation change. Do not re-center the page if it is caused by show/hide soft keyboard. Fix http://b/issue?id=2303918
* | fix nav cache debuggingCary Clark2009-12-041-4/+3
| | | | | | | | last change broke debugging code outside of the build
* | move input-related fields out of CachedNode to expandCary Clark2009-12-0411-174/+318
|/ | | | | | | | | | | | | Some of the fields in CachedNode are relevant only to input fields and text areas. Move these into their own vector so that we can add more data without making all CacheNodes bigger. Remove CacheNode entries that are no longer used, or can be consolidated into the node type. Alphabetize some interfaces and implementations. Update the debugging output. part of http://b/2299660
* Rework CL, https://android-git.corp.google.com/g/#change,34511Grace Kloba2009-12-032-10/+0
| | | due to the history unfork change.
* Fix the build due to auto mergeGrace Kloba2009-12-031-1/+2
|
* After turning on page cache, the parent HistoryItemGrace Kloba2009-12-032-0/+16
| | | | | can be destroyed before the child HistoryItem, add an extra checking to avoid crash.
* Android History unforking pt4: Android specific changes to makefiles and ↵Ben Murdoch2009-12-035-107/+50
| | | | | | | | other code that has not been upstreamed yet (i.e. WebKit/android). This does NOT need to be upstreamed to WebKit (yet). Change-Id: I821fb90c3e463ef5fc4fa001ee5b8d967f9f7e48
* Save form data for elements other than type "text".Leon Scroggins2009-12-021-20/+15
| | | | | | | Partial fix for http://b/issue?id=2232001 When returning the form data for a page, check other types of textfields besides "text" input elements. Also consider "email", "number", etc.
* Enable WebKit page cache through WebSettings.Grace Kloba2009-12-025-36/+175
| | | | | | | | Add setXX() for the meta data in Settings. Add CachedFramePlatformDataAndroid to preserve the state for the cachedFrame. http://b/issue?id=2284168
* Merge change Ie0a2c0d4 into eclair-mr2Android (Google) Code Review2009-12-022-17/+15
|\ | | | | | | | | * changes: Move dump display tree to sdcard as dom and render tree.
| * Move dump display tree to sdcard as dom and render tree.Grace Kloba2009-12-012-17/+15
| | | | | | Fix dump render tree code.
* | Merge change I3aa3fc5b into eclair-mr2Android (Google) Code Review2009-12-021-4/+8
|\ \ | | | | | | | | | | | | * changes: skip nodes when building nav cache if parents are clipped out
| * | skip nodes when building nav cache if parents are clipped outCary Clark2009-12-021-4/+8
| |/ | | | | | | | | | | | | | | This is a fairly conservative fix, since it actually checks to see if a parent element is clipped out, rather than the bounds of the element itself. fixes http://b/2291936
* | nav to container if it wants key eventsCary Clark2009-12-022-6/+6
|/ | | | | | | | | | | | When a text field or text area (or plugin) has another navable element completely overlaying it, allow the trackball to move from that inner element to the outer one. Also, allow this to get a 'second chance' -- treat the case when one element overlays another as a spacial nav and allow it to retry in nav find algorithms. fixes http://b/2266756
* cleaning up local JNI references for plugins and caching appropriate JNI ids.Derek Sollenberger2009-12-012-9/+45
|
* Adding native portion of the PluginActivity class.Derek Sollenberger2009-12-011-0/+77
|
* Cleanup how a plugin requests to go full-screen.Derek Sollenberger2009-12-016-22/+13
|
* Merge change I24ba66f9 into eclair-mr2Android (Google) Code Review2009-12-013-44/+3
|\ | | | | | | | | * changes: Cleaning up android_npapi by removing implemented functions and unused parameters.
| * Cleaning up android_npapi by removing implemented functions and unused ↵Derek Sollenberger2009-11-303-44/+3
| | | | | | | | parameters.
* | navigate preferably between children of the same parentCary Clark2009-11-303-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | The nav cache attempts to take advantage of the order that the dom is walked to know when multiple nodes have the same parent. The old implementation doesn't always work, and a simpler non-cached version makes more sense. The algorithm now walks nodes until the parent has more than one child, and assigns that parent as the 'parent group'. On the other end, nodes with no parent group are never allowed to get preferential matching treatment.