diff options
Diffstat (limited to 'WebKit')
-rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 6 | ||||
-rw-r--r-- | WebKit/android/plugins/android_npapi.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index 43a077f..35aeedb 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -885,6 +885,12 @@ void WebViewCore::notifyProgressFinished() m_check_domtree_version = true; updateFrameCache(); sendNotifyProgressFinished(); + + // trigger an event notifying the plugins that the page has loaded + ANPEvent event; + SkANP::InitEvent(&event, kLifecycle_ANPEventType); + event.data.lifecycle.action = kOnLoad_ANPLifecycleAction; + sendPluginEvent(event); } void WebViewCore::doMaxScroll(CacheBuilder::Direction dir) diff --git a/WebKit/android/plugins/android_npapi.h b/WebKit/android/plugins/android_npapi.h index 80fd2c4..0425e8e 100644 --- a/WebKit/android/plugins/android_npapi.h +++ b/WebKit/android/plugins/android_npapi.h @@ -793,6 +793,7 @@ enum ANPLifecycleActions { kGainFocus_ANPLifecycleAction = 2, kLoseFocus_ANPLifecycleAction = 3, kFreeMemory_ANPLifecycleAction = 4, + kOnLoad_ANPLifecycleAction = 5, }; typedef uint32_t ANPLifecycleAction; |