summaryrefslogtreecommitdiffstats
path: root/WebKit/android/plugins/PluginWidgetAndroid.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge WebKit at r75993: Move WebKit/android files to SourceBen Murdoch2011-05-161-690/+0
| | | | Change-Id: Ifa871f8320bdb3a09fe189fffecc23f702c394b9
* Add support for plugins to use incognito mode.Derek Sollenberger2011-02-251-1/+1
| | | | | | bug: 2968415 Change-Id: Ie67c9f6b28a81d4a65f39bde2896078d7b49b8ee
* Skia Merge (revision 808)Derek Sollenberger2011-02-221-2/+2
| | | | | | This is a companion CL to the one found in /external/skia Change-Id: I469b8845a88f24d972fd57ee5c9cab505a5b83aa
* Selectively enable and disable GL_BLEND for better performance.Derek Sollenberger2011-02-161-1/+3
| | | | Change-Id: I473e2bff91c2e0b1ec2436f0666506023a7c0945
* Consolidate scrolling methods.Patrick Scott2011-02-091-1/+1
| | | | | | | | | Call through to a single java function to scroll the page. Always use scrollTo so that there isn't a problem with using scrollBy on an old or out-of-sync scroll position. Bug: 3187015 Change-Id: I4a75256687e53ed18c1f73970e9032f476b81859
* Only invalidate the webview when the plugin has new content.Derek Sollenberger2011-02-041-2/+14
| | | | | bug: 3424551 Change-Id: I07beef845bb41980144222c3c5d076db8120037c
* Ensure plugins receive an onScreen event even when the page reloadsDerek Sollenberger2011-02-011-1/+13
| | | | | bug: 3411351 Change-Id: I9127ec949ceb7c4e91e1e48daede8e9411208fa7
* Add Plugin API for controling the device power statesDerek Sollenberger2011-01-271-0/+27
| | | | | | | | | | 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
* Fix invalid draw events when the plugin is injected into a loaded pageDerek Sollenberger2011-01-251-6/+8
| | | | | | | | Use WebViewCore's scale value instead of maintaining our own to prevent getting out of sync and reporting the wrong zoom to the plugin. bug: 3388258 Change-Id: I45f2b14c48442ab0211a9bafeb42b2216b706346
* Send appropriate events when plugin is dynamically resized.Derek Sollenberger2011-01-201-31/+38
| | | | | bug: 3372374 Change-Id: I51bb9fedaf4c941f45c068ad3e044cd771444392
* Trigger OnScreen events when the page loads.Derek Sollenberger2011-01-191-1/+1
| | | | | bug: 3368632 Change-Id: I13dbf1c809f32887f5d659e6fead60a61110eddd
* Add additional debugging for plugins.Derek Sollenberger2011-01-071-0/+2
| | | | Change-Id: Ie4437e0b62a16ee7e9d1b6fc605554ecc161cc6c
* Plugin API to report the onscreen visibility of the plugin.Derek Sollenberger2011-01-051-0/+18
| | | | | bug: 3324143 Change-Id: I4ad5837b4d79ee63bf53ce974a634d357130930e
* Add full-screen support for OpenGL based plugins.Derek Sollenberger2011-01-041-4/+28
| | | | | bug: 3321891 Change-Id: Ife1bbeed91b3285277bfe47c71f523d477891b98
* Add initial support for OpenGL plugins.Derek Sollenberger2010-12-201-0/+26
| | | | | bug: 2907737 Change-Id: I6f4f21146c834554db5ecb67fed8994f1cdc2cfe
* 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
|