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.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 Loading... |
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 Loading... |
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 } |
OLD | NEW |