diff options
| author | Steve Block <steveblock@google.com> | 2010-01-12 13:10:51 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-01-12 13:10:51 -0800 |
| commit | b12e415358bcbd05620d883de6476579b46b1203 (patch) | |
| tree | 46babd497b78e8f216afe9b2f6df74de98254b73 /WebKit/android | |
| parent | fc243b5053a64b21692cdb7380abe24095434f85 (diff) | |
| parent | fb651c68fc3c15b61a70f200fd98cf32b01c174d (diff) | |
| download | external_webkit-b12e415358bcbd05620d883de6476579b46b1203.zip external_webkit-b12e415358bcbd05620d883de6476579b46b1203.tar.gz external_webkit-b12e415358bcbd05620d883de6476579b46b1203.tar.bz2 | |
Merge "resolved conflicts for merge of e0286f66 to master"
Diffstat (limited to 'WebKit/android')
| -rw-r--r-- | WebKit/android/WebCoreSupport/PlatformBridge.cpp | 5 | ||||
| -rw-r--r-- | WebKit/android/jni/WebViewCore.cpp | 6 | ||||
| -rw-r--r-- | WebKit/android/jni/WebViewCore.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/PlatformBridge.cpp b/WebKit/android/WebCoreSupport/PlatformBridge.cpp index cd5e2e6..f36ecf7 100644 --- a/WebKit/android/WebCoreSupport/PlatformBridge.cpp +++ b/WebKit/android/WebCoreSupport/PlatformBridge.cpp @@ -98,6 +98,11 @@ bool PlatformBridge::cookiesEnabled() return client->cookiesEnabled(); } +bool PlatformBridge::isWebViewPaused() +{ + return WebViewCore::isPaused(); +} + } // namespace WebCore diff --git a/WebKit/android/jni/WebViewCore.cpp b/WebKit/android/jni/WebViewCore.cpp index fdd9e05..8414068 100644 --- a/WebKit/android/jni/WebViewCore.cpp +++ b/WebKit/android/jni/WebViewCore.cpp @@ -147,6 +147,8 @@ FILE* gRenderTreeFile = 0; namespace android { +bool WebViewCore::s_isPaused = false; + static SkTDArray<WebViewCore*> gInstanceList; void WebViewCore::addInstance(WebViewCore* inst) { @@ -2889,6 +2891,8 @@ static void Pause(JNIEnv* env, jobject obj) SkANP::InitEvent(&event, kLifecycle_ANPEventType); event.data.lifecycle.action = kPause_ANPLifecycleAction; GET_NATIVE_VIEW(env, obj)->sendPluginEvent(event); + + WebViewCore::setIsPaused(true); } static void Resume(JNIEnv* env, jobject obj) @@ -2904,6 +2908,8 @@ static void Resume(JNIEnv* env, jobject obj) SkANP::InitEvent(&event, kLifecycle_ANPEventType); event.data.lifecycle.action = kResume_ANPLifecycleAction; GET_NATIVE_VIEW(env, obj)->sendPluginEvent(event); + + WebViewCore::setIsPaused(false); } static void FreeMemory(JNIEnv* env, jobject obj) diff --git a/WebKit/android/jni/WebViewCore.h b/WebKit/android/jni/WebViewCore.h index c4d1cae..0569b4d 100644 --- a/WebKit/android/jni/WebViewCore.h +++ b/WebKit/android/jni/WebViewCore.h @@ -453,6 +453,8 @@ namespace android { // field safely from our respective threads static Mutex gButtonMutex; WTF::Vector<Container> m_buttons; + static bool isPaused() { return s_isPaused; } + static void setIsPaused(bool isPaused) { s_isPaused = isPaused; } // end of shared members // internal functions @@ -509,6 +511,7 @@ namespace android { unsigned m_domtree_version; bool m_check_domtree_version; PageGroup* m_groupForVisitedLinks; + static bool s_isPaused; SkTDArray<PluginWidgetAndroid*> m_plugins; WebCore::Timer<WebViewCore> m_pluginInvalTimer; |
