Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 05e5d0b580ae9d264e6786b3974287f7f74effb8..35ee057d59e8517504abd1a119a00ba154e74350 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
@@ -3143,6 +3143,14 @@ public class ContentViewCore
return mRenderCoordinates;
}
+ @VisibleForTesting
+ public boolean isGeolocationActiveForTesting() {
+ if (mNativeContentViewCore != 0) {
+ return nativeIsGeolocationActiveForTesting(mNativeContentViewCore);
+ }
+ return false;
+ }
+
@CalledByNative
private int getLocationInWindowX() {
return mLocationInWindowX;
@@ -3398,4 +3406,6 @@ public class ContentViewCore
private native void nativeSendActionAfterDoubleTapUma(long nativeContentViewCoreImpl,
int type, boolean hasDelay, int count);
+
+ private native boolean nativeIsGeolocationActiveForTesting(long nativeContentViewCoreImpl);
}

Powered by Google App Engine
This is Rietveld 408576698