OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.ComponentCallbacks2; | 8 import android.content.ComponentCallbacks2; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.content.res.Configuration; | 10 import android.content.res.Configuration; |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1167 ContentViewStatics.setWebKitSharedTimersSuspended(false); | 1167 ContentViewStatics.setWebKitSharedTimersSuspended(false); |
1168 } | 1168 } |
1169 | 1169 |
1170 /** | 1170 /** |
1171 * @see android.webkit.WebView#onPause() | 1171 * @see android.webkit.WebView#onPause() |
1172 */ | 1172 */ |
1173 public void onPause() { | 1173 public void onPause() { |
1174 if (mIsPaused || mNativeAwContents == 0) return; | 1174 if (mIsPaused || mNativeAwContents == 0) return; |
1175 mIsPaused = true; | 1175 mIsPaused = true; |
1176 nativeSetIsPaused(mNativeAwContents, mIsPaused); | 1176 nativeSetIsPaused(mNativeAwContents, mIsPaused); |
1177 mContentViewCore.onPause(); | |
kbalazs
2014/02/20 00:48:24
I'm not sure we need these. But if we do we will n
xwang
2014/02/25 10:26:58
I also questioned whether we need to reproduce onP
SaurabhK
2014/02/26 14:14:26
On 2014/02/25 10:26:58, xwang wrote:
I agree to r
| |
1177 } | 1178 } |
1178 | 1179 |
1179 /** | 1180 /** |
1180 * @see android.webkit.WebView#onResume() | 1181 * @see android.webkit.WebView#onResume() |
1181 */ | 1182 */ |
1182 public void onResume() { | 1183 public void onResume() { |
1183 if (!mIsPaused || mNativeAwContents == 0) return; | 1184 if (!mIsPaused || mNativeAwContents == 0) return; |
1184 mIsPaused = false; | 1185 mIsPaused = false; |
1185 nativeSetIsPaused(mNativeAwContents, mIsPaused); | 1186 nativeSetIsPaused(mNativeAwContents, mIsPaused); |
1187 mContentViewCore.onResume(); | |
1186 } | 1188 } |
1187 | 1189 |
1188 /** | 1190 /** |
1189 * @see android.webkit.WebView#isPaused() | 1191 * @see android.webkit.WebView#isPaused() |
1190 */ | 1192 */ |
1191 public boolean isPaused() { | 1193 public boolean isPaused() { |
1192 return mIsPaused; | 1194 return mIsPaused; |
1193 } | 1195 } |
1194 | 1196 |
1195 /** | 1197 /** |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2071 | 2073 |
2072 private native void nativeInvokeGeolocationCallback( | 2074 private native void nativeInvokeGeolocationCallback( |
2073 long nativeAwContents, boolean value, String requestingFrame); | 2075 long nativeAwContents, boolean value, String requestingFrame); |
2074 | 2076 |
2075 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); | 2077 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); |
2076 | 2078 |
2077 private native void nativeTrimMemory(long nativeAwContents, int level); | 2079 private native void nativeTrimMemory(long nativeAwContents, int level); |
2078 | 2080 |
2079 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); | 2081 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); |
2080 } | 2082 } |
OLD | NEW |