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

Side by Side 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: Add new test case, fix a bug :) Created 7 years 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 unified diff | Download patch
OLDNEW
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.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.SearchManager; 8 import android.app.SearchManager;
9 import android.content.ContentResolver; 9 import android.content.ContentResolver;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 3128 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 return ""; 3139 return "";
3140 } 3140 }
3141 3141
3142 /** 3142 /**
3143 * @return The cached copy of render positions and scales. 3143 * @return The cached copy of render positions and scales.
3144 */ 3144 */
3145 public RenderCoordinates getRenderCoordinates() { 3145 public RenderCoordinates getRenderCoordinates() {
3146 return mRenderCoordinates; 3146 return mRenderCoordinates;
3147 } 3147 }
3148 3148
3149 @VisibleForTesting
3150 public boolean isGeolocationActiveForTesting() {
3151 if (mNativeContentViewCore != 0) {
3152 return nativeIsGeolocationActiveForTesting(mNativeContentViewCore);
3153 }
3154 return false;
3155 }
3156
3149 @CalledByNative 3157 @CalledByNative
3150 private int getLocationInWindowX() { 3158 private int getLocationInWindowX() {
3151 return mLocationInWindowX; 3159 return mLocationInWindowX;
3152 } 3160 }
3153 3161
3154 @CalledByNative 3162 @CalledByNative
3155 private int getLocationInWindowY() { 3163 private int getLocationInWindowY() {
3156 return mLocationInWindowY; 3164 return mLocationInWindowY;
3157 } 3165 }
3158 3166
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
3394 long nativeContentViewCoreImpl, int playerId); 3402 long nativeContentViewCoreImpl, int playerId);
3395 3403
3396 private native void nativeSetAccessibilityEnabled( 3404 private native void nativeSetAccessibilityEnabled(
3397 long nativeContentViewCoreImpl, boolean enabled); 3405 long nativeContentViewCoreImpl, boolean enabled);
3398 3406
3399 private native void nativeSendSingleTapUma(long nativeContentViewCoreImpl, 3407 private native void nativeSendSingleTapUma(long nativeContentViewCoreImpl,
3400 int type, int count); 3408 int type, int count);
3401 3409
3402 private native void nativeSendActionAfterDoubleTapUma(long nativeContentView CoreImpl, 3410 private native void nativeSendActionAfterDoubleTapUma(long nativeContentView CoreImpl,
3403 int type, boolean hasDelay, int count); 3411 int type, boolean hasDelay, int count);
3412
3413 private native boolean nativeIsGeolocationActiveForTesting(long nativeConten tViewCoreImpl);
3404 } 3414 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698