| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index 9dea1cf20d90e39fef4c10dde07a10e3e14892b0..dd93d05e6e54dda51d2d5bb022e0252651ce1a15 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -1532,6 +1532,28 @@ public class ContentViewCore
|
| nativeOnHide(mNativeContentViewCore);
|
| }
|
|
|
| + public boolean canLockContent() {
|
| + if (mNativeContentViewCore != 0)
|
| + return nativeCanLockContent(mNativeContentViewCore);
|
| + return false;
|
| + }
|
| +
|
| + /**
|
| + * Lock the content so it cannot be destroyed while we have the lock.
|
| + */
|
| + public void lockContent() {
|
| + if (mNativeContentViewCore != 0)
|
| + nativeLockContent(mNativeContentViewCore);
|
| + }
|
| +
|
| + /**
|
| + * Lock the content so it cannot be destroyed while we have the lock.
|
| + */
|
| + public void unlockContent() {
|
| + if (mNativeContentViewCore != 0)
|
| + nativeUnlockContent(mNativeContentViewCore);
|
| + }
|
| +
|
| /**
|
| * Return the ContentSettings object used to retrieve the settings for this
|
| * ContentViewCore. For modifications, ChromeNativePreferences is to be used.
|
| @@ -3482,4 +3504,10 @@ public class ContentViewCore
|
|
|
| private native void nativeExtractSmartClipData(long nativeContentViewCoreImpl,
|
| int x, int y, int w, int h);
|
| +
|
| + private native boolean nativeCanLockContent(long nativeContentViewCoreImpl);
|
| +
|
| + private native void nativeLockContent(long nativeContentViewCoreImpl);
|
| +
|
| + private native void nativeUnlockContent(long nativeContentViewCoreImpl);
|
| }
|
|
|