summaryrefslogtreecommitdiffstats
path: root/WebCore/plugins/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge WebKit at r75315: Move Android-specific WebCore files to SourceSteve Block2011-05-124-1266/+0
| | | | | | | | | | | | | This moves files in the following WebCore subdirectories ... - bindings/js - bindings/v8/custom - plugins/android - platform/android - platform/graphics/android - page/ - css/ - dom/ - loader/archive/android
* Add support for plugins to use incognito mode.Derek Sollenberger2011-02-251-0/+2
| | | | | | bug: 2968415 Change-Id: Ie67c9f6b28a81d4a65f39bde2896078d7b49b8ee
* Add Plugin API for controling the device power statesDerek Sollenberger2011-01-271-0/+2
| | | | | | | | | | This is an initial API that will allow the plugin to request to keep the screen on. companion change is in frameworks/base bug: 3331493 Change-Id: Id807dc3a3e5aaf12fc63558edeceee0d35561768
* Merge "Initial pass at a video API for plugins." into honeycombDerek Sollenberger2011-01-261-0/+3
|\
| * Initial pass at a video API for plugins.Derek Sollenberger2011-01-261-0/+3
| | | | | | | | | | bug: 3072603 Change-Id: Ie22d289a93682dfd68cf81f5220d658d45a69d81
* | Fix hit testing inside layers.Patrick Scott2011-01-261-15/+15
|/ | | | | | | | | | | | | | | | | | | | | | | | | | A new webkit merge added a couple methods to ClipRects that were not copying the hit test rect. This make the clip rect empty during hit testing which was clipping out all nodes in scrollable layers. When tracking a layer, use the foreground layer if present as it will contain the right nodes. When looking for a scrollable layer, traverse the children in reverse drawing order to find the top-most visible layer. This allows orkut.com to scroll. Remove a couple of casts and headers. Use relaxAdoptionRequirement() to avoid a RefCounted assert. Swap the texture owner hash set during deletion as release can modify the iterator concurrently. Update the scrollbars (even though we don't have any) when scrolling a layer to keep the scroll position of the scrollbar in sync with the layer. Rewrite a little bit of PluginPackageAndroid. m_module may be non-null during load. If it is null, load the library and store it in m_module. Follow the regular path assuming m_module is not null. Bug: 3373179 Change-Id: If07ec9735b30c1e98e363667378a8d253a841a45
* Second try to send multi-touch events to FlashHuahui Wu2011-01-131-15/+31
| | | | | | | | | This reverts commit 64e8dc02c3e8eb820e872e78c350a39293586877. Most are from Derek's CL https://android-git.corp.google.com/g/#change,88039 But with an essential bug fix which change "evt.data.touch.action" to "eve.data.multiTouch.action" in line 234. Change-Id: I1dd81d69c51afbfb0066149bfb7a2bfcefb43a87
* Revert "Cherrypick of https://android-git.corp.google.com/g/#change,88039"Huahui Wu2011-01-131-29/+13
| | | | This reverts commit 1b864edc9b9c6c024b308046085cdb26ba98e3fe.
* Cherrypick of https://android-git.corp.google.com/g/#change,88039Derek Sollenberger2011-01-101-13/+29
| | | | | | Pass multiTouch events to plugins so Adobe could try it. Change-Id: I2c1120a85ef15db0ce45161403d56843c0037abf
* Plugin API to report the onscreen visibility of the plugin.Derek Sollenberger2011-01-051-0/+2
| | | | | bug: 3324143 Change-Id: I4ad5837b4d79ee63bf53ce974a634d357130930e
* Add initial support for OpenGL plugins.Derek Sollenberger2010-12-201-0/+8
| | | | | bug: 2907737 Change-Id: I6f4f21146c834554db5ecb67fed8994f1cdc2cfe
* Add new API for plugin audio track latency.Derek Sollenberger2010-10-121-0/+2
| | | | | | | | | | This CL extends the existing udio API with a new function to measure the latency of a audio track. To preserve binary compatibility with the already released v0 API we have created a v1 extension. Change-Id: I656ac10470f2262bac7039aa45458d2100a37612 http://b/3088633
* Merge WebKit at r61871: Refactoring of MimeClassInfo class.Kristian Monsen2010-07-021-10/+1
| | | | | | | http://trac.webkit.org/changeset/61168 String suffixes changed to Vector<String> extensions http://trac.webkit.org/changeset/61150 pluginIndex removed Change-Id: I8e81d95da1a6795beb94247102317cf9b449979f
* Merge webkit.org at r60469 : Update our plugin code following refactor @60258Leon Clarke2010-06-081-13/+12
| | | | | | http://trac.webkit.org/changeset/60258 Change-Id: I7b1540d54286d6201f643eb729dbb5d66ff3226f
* Adds missing ENABLE(TOUCH_EVENTS) guards to Android-specific codeSteve Block2010-05-181-0/+2
| | | | | | | This will allow us to build with touch events disabled once we've merged https://bugs.webkit.org/show_bug.cgi?id=39222 Change-Id: Ia665e5e6c3b4169b6c5576aa26721d95e72934e9
* Merge Webkit at r58956: Update plugin code to use C99 types. See ↵Ben Murdoch2010-05-142-2/+2
| | | | | | http://trac.webkit.org/changeset/58590 Change-Id: I73f3f008a88e69962de831a98d40e8d23c3cce30
* Merge Webkit at r58956: Add bool parameter to Widget::setFocus. See ↵Ben Murdoch2010-05-141-2/+2
| | | | | | http://trac.webkit.org/changeset/58821 Change-Id: I3ab2eb4fdb14e32106c4b2ef51b889f2ffcd3661
* Merge webkit.org at r58033 : Use new PluginView::platformGetValue() and ↵Steve Block2010-05-111-15/+25
| | | | | | | | platformStaticGetValue() See http://trac.webkit.org/changeset/55432 Change-Id: I21b1185ce5a86d902c7a5de3f7866e82c6fe3ee8
* Merge webkit.org at r58033 : Update location of CString.hSteve Block2010-05-111-1/+1
| | | | | | See http://trac.webkit.org/changeset/56825 Change-Id: I8ba6a9685dcd1d8c4dec3400fba81e19fcbfe74d
* Merge webkit.org at r55033 : Implement PluginPackage::NPVersion for AndroidSteve Block2010-04-271-0/+5
| | | | | | See http://trac.webkit.org/changeset/54940 Change-Id: I2c3153606ab0eb9a4598e211def2f07f60eab3da
* suppress compiler warnings in plugin codeCary Clark2010-04-061-0/+3
| | | | Change-Id: I0cadbf8946193ed7a4a7fe0cdeff82a2495d9ef9
* Make sure html plugin element supports focus so thatGrace Kloba2010-03-311-5/+3
| | | | | | | | | | plugin can call focus() on it. By default, only nodes can be tabbed through supports focus. We make plugin element like frame element where it always supports focus. In Android, plugin has a focused mode, so it requires this change. Fix http://b/issue?id=2539608
* cherry-pick 74f79778892548221468d075f949acb3d4064368 to froyoGrace Kloba2010-03-301-17/+18
| | | | | | | | | | In Android, as we always remap the plugin from page space to view space, we do want to update when the rect in the page space changed. This should fix the bug where the plugin is inside a fixed position. So even its page coordinate changed when scrolling, its window coordinate didn't change. We missed the update. Fix http://b/issue?id=2542934
* Allowing native code access to the application context as long asDerek Sollenberger2010-03-231-4/+15
| | | | | | | | | | 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
* To enable per file log, only need to define PLUGIN_DEBUG_LOCALGrace Kloba2010-03-161-1/+1
|
* Ensure a plugin is not shown if it is completely obscured by otherDerek Sollenberger2010-03-161-3/+4
| | | | | | html content. Change-Id: Iffcc30d47428708842ac5dddee41cc611d879c1c
* If the plugin is in an IFrame we need to reposition the plugins surfaceDerek Sollenberger2010-03-151-5/+18
| | | | | | every time the IFrame changes position within the document. Change-Id: I03090bda439c3a3cac95dce42b3ea37901dc42f8
* If we do change to document focus in mouse down,Grace Kloba2010-03-091-3/+4
| | | | | | | | set default handled so that EventHandler won't try to change the document focus. This should address the problem Adobe saw when tapping on a object may cause both GainFocus and LostFocus life cycle events.
* Only call plugin touch code if it is in full screenLeon Scroggins2010-03-091-25/+10
| | | | | | | | | | | | | 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.
* fix to ensure plugins are not shown when they are marked hidden by the DOM.Derek Sollenberger2010-03-091-5/+19
| | | | Change-Id: Ic32359b699d71dcd1603ac9295c95100014fc484
* fixing problem were plugin surfaces are not created.Derek Sollenberger2010-03-021-0/+8
| | | | | | | | | | The problem occurs when a page containing a plugin is refreshed or the plugin is loaded using javascript. If the window size is set before the plugin view has its parent sent then the plugin surfaces were not being initialized. This change ensures that if that happens the surfaces will still be created. see bug #2476059.
* am 4e409302: am a506357e: Adding logging to android\'s plugin view.Derek Sollenberger2010-03-021-6/+17
|\ | | | | | | | | | | | | Merge commit '4e409302db5afdfb18231bd3e1a86f85302a2599' * commit '4e409302db5afdfb18231bd3e1a86f85302a2599': Adding logging to android's plugin view.
| * Adding logging to android's plugin view.Derek Sollenberger2010-03-021-6/+17
| |
| * Pass touch event time from Java to WebKitGrace Kloba2010-02-021-1/+1
| |
* | Pass touch event time from Java to WebKitGrace Kloba2010-02-031-3/+3
| | | | | | merge from https://android-git.corp.google.com/g/#change,39356
* | absoluteToLocal works with a page co-ordinate that is relative to the top ↵Ben Murdoch2010-01-261-3/+3
| | | | | | | | | | | | | | | | left of the containing frame's document, so fix a bug in the WebCore touch event handler where the wrong page co-ordinates were being passed to the Touch construtor. This part of the change should be upstreamed to webkit. Also fix a crash when a touchCancel event is sent to a plugin because touchCancel, like touchend is not guaranteed to have data in touches, but will have data in changedTouches. Change-Id: I5345d7baf4e4325b24fbc5fbe60132dafb80e006
* | resolved conflicts for merge of 98c97471 to masterGrace Kloba2010-01-251-2/+5
|\ \ | |/
| * Merge "Rearrange the include headers to enable logging." into eclair-mr2Grace Kloba2010-01-251-2/+4
| |\
| | * Rearrange the include headers to enable logging.Grace Kloba2010-01-251-2/+4
| | |
* | | am 53e1af87: am 2eb76d0b: Add logging for all plugin events and their return ↵Derek Sollenberger2010-01-251-3/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | values. Merge commit '53e1af87fa4f19eac50b3d6fb45a3a386d156cd0' * commit '53e1af87fa4f19eac50b3d6fb45a3a386d156cd0': Add logging for all plugin events and their return values.
| * | Add logging for all plugin events and their return values.Derek Sollenberger2010-01-251-3/+3
| |/
* | Removing reference to a java object that is no longer used.Derek Sollenberger2010-01-211-57/+1
| | | | | | | | | | | | | | The native plugin code was creating a java object that was intended to by used by the old Gears code. The java object has been deprecated and is not being used within the native code.
* | resolved conflicts for merge of 9dabd572 to masterGrace Kloba2010-01-201-15/+34
|\ \ | |/
| * Changing plugin setwindow() to use page coordinateGrace Kloba2010-01-201-25/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of frame as it is what Flash expects. For other port like Mac, it passes the window coordinate to the plugin. In Android, plugin always sees the full page and we use the visible screen rect to indicate whether it is visible. Change to use page coordinate across PluginView and PluginWidget for consistency. This should fix the problem Ben saw with plugin inside iframe (which is caused by a race condition) and the cnnn ad problem Adobe has.
* | Cherry-pick WebKit change 53497 to rename jni_utility and ↵Steve Block2010-01-201-8/+7
| | | | | | | | | | | | | | | | | | | | | | jni_utility_private to JNIUtility and JNIUtilityPrivate See http://trac.webkit.org/changeset/53497 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. This change required updating headers in Android-specific files in WebCore and WebKit. Change-Id: I4b80eb3eadcff66cbd261aa6ccef0f37927250b1
* | Refactor our touch event code to use the version submitted to webkit.org by ↵Ben Murdoch2010-01-201-10/+17
|/ | | | | | the Qt team. Change-Id: I2953472cee68aadf18f9dd740e9b3f69ad729cf0
* consolidating to only use one surface per plugin. give plugin access to java ↵Derek Sollenberger2010-01-111-1/+7
| | | | | | context. There is a companion commit in frameworks/base.
* register the eventinterface with our dispatcher listMike Reed2009-12-171-0/+2
|
* Implement the full screen WebView plugin.Grace Kloba2009-12-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Enable longpress and doubletap to WebKit as touchGrace Kloba2009-12-091-3/+18
| | | | event if it is requested.