OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | |
scottmg
2014/01/13 19:42:43
I think copyright is supposed to be assigned to Ch
SaurabhK
2014/01/15 16:57:08
Will change it in new patch
| |
2 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
4 | 5 |
5 package org.chromium.android_webview; | 6 package org.chromium.android_webview; |
6 | 7 |
7 import android.app.Activity; | 8 import android.app.Activity; |
8 import android.content.ComponentCallbacks2; | 9 import android.content.ComponentCallbacks2; |
9 import android.content.Context; | 10 import android.content.Context; |
10 import android.content.res.Configuration; | 11 import android.content.res.Configuration; |
11 import android.graphics.Bitmap; | 12 import android.graphics.Bitmap; |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1170 ContentViewStatics.setWebKitSharedTimersSuspended(false); | 1171 ContentViewStatics.setWebKitSharedTimersSuspended(false); |
1171 } | 1172 } |
1172 | 1173 |
1173 /** | 1174 /** |
1174 * @see android.webkit.WebView#onPause() | 1175 * @see android.webkit.WebView#onPause() |
1175 */ | 1176 */ |
1176 public void onPause() { | 1177 public void onPause() { |
1177 if (mIsPaused || mNativeAwContents == 0) return; | 1178 if (mIsPaused || mNativeAwContents == 0) return; |
1178 mIsPaused = true; | 1179 mIsPaused = true; |
1179 nativeSetIsPaused(mNativeAwContents, mIsPaused); | 1180 nativeSetIsPaused(mNativeAwContents, mIsPaused); |
1181 mContentViewCore.onPause(); | |
1180 } | 1182 } |
1181 | 1183 |
1182 /** | 1184 /** |
1183 * @see android.webkit.WebView#onResume() | 1185 * @see android.webkit.WebView#onResume() |
1184 */ | 1186 */ |
1185 public void onResume() { | 1187 public void onResume() { |
1186 if (!mIsPaused || mNativeAwContents == 0) return; | 1188 if (!mIsPaused || mNativeAwContents == 0) return; |
1187 mIsPaused = false; | 1189 mIsPaused = false; |
1188 nativeSetIsPaused(mNativeAwContents, mIsPaused); | 1190 nativeSetIsPaused(mNativeAwContents, mIsPaused); |
1191 mContentViewCore.onResume(); | |
1189 } | 1192 } |
1190 | 1193 |
1191 /** | 1194 /** |
1192 * @see android.webkit.WebView#isPaused() | 1195 * @see android.webkit.WebView#isPaused() |
1193 */ | 1196 */ |
1194 public boolean isPaused() { | 1197 public boolean isPaused() { |
1195 return mIsPaused; | 1198 return mIsPaused; |
1196 } | 1199 } |
1197 | 1200 |
1198 /** | 1201 /** |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2070 | 2073 |
2071 private native void nativeInvokeGeolocationCallback( | 2074 private native void nativeInvokeGeolocationCallback( |
2072 long nativeAwContents, boolean value, String requestingFrame); | 2075 long nativeAwContents, boolean value, String requestingFrame); |
2073 | 2076 |
2074 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); | 2077 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); |
2075 | 2078 |
2076 private native void nativeTrimMemory(long nativeAwContents, int level); | 2079 private native void nativeTrimMemory(long nativeAwContents, int level); |
2077 | 2080 |
2078 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); | 2081 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); |
2079 } | 2082 } |
OLD | NEW |