summaryrefslogtreecommitdiffstats
path: root/WebKit/android/plugins/PluginWidgetAndroid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge Webkit at r58956: Update plugin code to use C99 types. See ↵Ben Murdoch2010-05-141-2/+2
| | | | | | http://trac.webkit.org/changeset/58590 Change-Id: I73f3f008a88e69962de831a98d40e8d23c3cce30
* window may not be initialized when plugin is first calledCary Clark2010-03-181-1/+2
| | | | | Change-Id: I37ba49b9cbd5170613f0d8e694aa79b49585a8ee http://b/2524032
* 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-8/+29
| | | | | | html content. Change-Id: Iffcc30d47428708842ac5dddee41cc611d879c1c
* Clean up full-screen mode plugins now that they handle touchDerek Sollenberger2010-03-151-3/+1
| | | | | | | | in their java view. There is a matching commit in frameworks/base Change-Id: Ibe76eb22c2b5ccc7fb80e4807edcbbc4d25e4793
* Add requestCenterFitZoom to android_npapi so thatGrace Kloba2010-03-121-0/+6
| | | | | Flash can trigger the smart-zoom Fix http://b/issue?id=2510670
* fix to ensure plugins are not shown when they are marked hidden by the DOM.Derek Sollenberger2010-03-091-32/+62
| | | | Change-Id: Ic32359b699d71dcd1603ac9295c95100014fc484
* disable visiblerect debugging printfsMike Reed2010-03-041-1/+1
|
* am 5bce6668: am 15027de7: Added new logging messages and updated event logs ↵Derek Sollenberger2010-02-231-1/+13
|\ | | | | | | | | | | | | | | | | with plugin execution time Merge commit '5bce666850444bb87efe0be67046e7648ff15e67' * commit '5bce666850444bb87efe0be67046e7648ff15e67': Added new logging messages and updated event logs with plugin execution time
| * Added new logging messages and updated event logs with plugin execution timeDerek Sollenberger2010-02-231-1/+13
| |
* | Use common version of PluginView::parentFrameSteve Block2010-02-151-1/+1
| | | | | | | | | | | | This was added in http://trac.webkit.org/changeset/42748 Change-Id: Ifcb9308d817203b6e23945ceedd83b9f9eb2e80f
* | Stop forwarding touch events from Java when the top level document is ↵Ben Murdoch2010-01-271-8/+2
| | | | | | | | | | | | | | | | | | | | | | detached rather than when eventHandlers are cleared for a frame. Also no longer keep track of the number of touch event handlers that a page has registered. If a page requests touch events, always send them from Java until a new page is loaded. This simplifies the logic when dealing with the page cache as otherwise as well as restoring the forwarding of touch events when a page is restored from the page cache, we would need to restore the number of touch handlers that have been registered. Change-Id: I0269e1632a37ccbf105bac658c2cb7f1d5cd3052
* | am 562a8a46: am 53c84f3c: Do not allow the plugin to show or hide the ↵Derek Sollenberger2010-01-251-6/+14
|\ \ | |/ | | | | | | | | | | | | | | keyboard unless it has focus. Merge commit '562a8a469695e0a2dee4eb1946847553f04ca2a2' * commit '562a8a469695e0a2dee4eb1946847553f04ca2a2': Do not allow the plugin to show or hide the keyboard unless it has focus.
| * Do not allow the plugin to show or hide the keyboard unless it has focus.Derek Sollenberger2010-01-251-6/+14
| |
* | am 71ce050b: am c45f962c: Merge "Correcting how the plugin\'s bounding ↵Derek Sollenberger2010-01-251-46/+59
|\ \ | |/ | | | | | | | | | | | | | | coordinates are computed." into eclair-mr2 Merge commit '71ce050b9dbf42b1f1f33269021af49371c20a54' * commit '71ce050b9dbf42b1f1f33269021af49371c20a54': Correcting how the plugin's bounding coordinates are computed.
| * Correcting how the plugin's bounding coordinates are computed.Derek Sollenberger2010-01-251-46/+59
| |
* | am 53e1af87: am 2eb76d0b: Add logging for all plugin events and their return ↵Derek Sollenberger2010-01-251-13/+19
|\ \ | |/ | | | | | | | | | | | | | | 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-13/+19
| |
* | am de7e9124: am ec4b5ee4: As we are sharing the view between embedded and ↵Grace Kloba2010-01-211-11/+10
|\ \ | |/ | | | | | | | | | | | | | | full screen, we should make sure to call the correct update when bounds changed. Merge commit 'de7e9124bea659d873d5488809d92a334104cb53' * commit 'de7e9124bea659d873d5488809d92a334104cb53': As we are sharing the view between embedded and full
| * As we are sharing the view between embedded and fullGrace Kloba2010-01-211-11/+10
| | | | | | | | | | | | screen, we should make sure to call the correct update when bounds changed. This should fix the crash when changing orientation.
* | am 67c90537: am 72acb46d: Fix the crash of exiting full screen by checking null.Grace Kloba2010-01-201-1/+2
|\ \ | |/ | | | | | | | | | | Merge commit '67c90537fc70147ad8943f0a2cd02def405bcf8f' * commit '67c90537fc70147ad8943f0a2cd02def405bcf8f': Fix the crash of exiting full screen by checking null.
| * Fix the crash of exiting full screen by checking null.Grace Kloba2010-01-201-1/+2
| | | | | | | | | | When we exit full screen, we place the embedded view on the screen, so we need to destroy it again in the destructor
* | resolved conflicts for merge of 9dabd572 to masterGrace Kloba2010-01-201-61/+23
|\ \ | |/
| * Changing plugin setwindow() to use page coordinateGrace Kloba2010-01-201-61/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+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-4/+15
|/ | | | | | the Qt team. Change-Id: I2953472cee68aadf18f9dd740e9b3f69ad729cf0
* Exit the fullscreen mode when the PluginWidget isGrace Kloba2010-01-191-1/+8
| | | destroyed.
* adding event to notify the plugin when it is on/off screen.Derek Sollenberger2010-01-121-0/+13
|
* consolidating to only use one surface per plugin. give plugin access to java ↵Derek Sollenberger2010-01-111-23/+41
| | | | | | context. There is a companion commit in frameworks/base.
* Implement the full screen WebView plugin.Grace Kloba2009-12-161-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Notify native plugin code when the browser discards the customView.Derek Sollenberger2009-12-141-10/+28
|
* Cleanup how a plugin requests to go full-screen.Derek Sollenberger2009-12-011-10/+0
|
* Refactoring plugins to use new java interfaces.Derek Sollenberger2009-11-301-40/+32
| | | | | | | This change contains extensive cleanup as we now keep track of a pointer to the plugin's java entry point (WebkitPlugin.class). Also given that we track this object and changes to plugin packaging we nolonger need to pass additional parameters in quite a few methods.
* Fixes license headers for all files in WebKit/android, other than those in stl/.Steve Block2009-11-131-1/+1
| | | | | | | | | | | | | These files have not yet been upstreamed to webkit.org. WebKit requires either a BSD-style or LGPL 2.1 license for all code. We use a BSD-style 2-clause license for Android-specific files that will be upstreamed to webkit.org. This change adds licenses where absent or simply fixes the names of copyright holders in the license text to 'THE COPYRIGHT OWNER' and cleans up formatting. Files in stl/ currently use licenses other than BSD-style and will require more careful treatment. Change-Id: I67ad4b8932e432d3eaaeecdfeb0d09418496228d
* Enabling plugins to stay in sync with UI when the DOM changes.Derek Sollenberger2009-10-131-12/+27
|
* add debugging, tweak data for flash work in progressCary Clark2009-10-121-7/+49
| | | | | | | | | Attempts to get the plugin to scroll when the ime appears. Add debugging strings to help track events to show plugin object. Add focusCandidate interfaces. Tweak rectangles from plugin so they don't disappear. Prefer found matches in nav cache that are later in the document.
* adding API to enable plugins to request full screen modeDerek Sollenberger2009-09-221-33/+21
| | | | Change-Id: Ib3373af6ff127399d1d0846ba30a4275da5b3133
* renaming setJavaClass_ANPSetValue and ensuring memory is freed on subsequent ↵Derek Sollenberger2009-09-211-1/+13
| | | | | | calls Change-Id: I7881e711af7ec905e5c120e8e2fd4b0b7ba5e840
* First pass at replacing native plugin views with java.Derek Sollenberger2009-09-151-15/+56
| | | | Change-Id: I637275c9766202a4358ef25af01ee92c85c48e7f
* modifying the android_npapi.h to accomodate surfaces with different pixel ↵Derek Sollenberger2009-08-101-3/+4
| | | | formats.
* enabling plugin surfaces to manually scale based on the zoom level.Derek Sollenberger2009-08-071-13/+3
|
* fixing the surface size if the plugin elects to not handle zoomEvents.Derek Sollenberger2009-08-061-1/+1
|
* first cut at adding zoom support for plugins.Derek Sollenberger2009-08-061-1/+12
|
* enhancing visibleRect tracking and making it work within iframes.Derek Sollenberger2009-08-041-11/+32
|
* Fixing mouse and touch coordinates inside iframes.Derek Sollenberger2009-08-031-4/+22
|
* Fix a crash in plugins.Patrick Scott2009-07-211-1/+1
|
* removing visibleRect event and tracking rectangles instead.Derek Sollenberger2009-07-201-11/+118
|
* Add Plugin APIs for creating and manipulating a Surface.Patrick Scott2009-07-201-4/+24
| | | | | | | | | | | | SurfaceCallback: An interface used to receive the surface change events. The PluginSurface then sends those events to the actual plugin. PluginSurface: A wrapper around the native Surface object obtained from the Java SurfaceView. This object can lock and unlock the surface and takes care of creating, positioning and destroying the Java SurfaceView. Changed PluginWidgetAndroid to not use SkFlipPixelRef when the drawing model is Surface.
* Adding plugin support for an RGBA surface view.Derek Sollenberger2009-07-171-1/+2
|
* Adding touch events for plugins.Derek Sollenberger2009-06-181-0/+25
|