| 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 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 } | 3214 } |
| 3215 | 3215 |
| 3216 private native int nativeInit(boolean hardwareAccelerated, int webContentsPt
r, | 3216 private native int nativeInit(boolean hardwareAccelerated, int webContentsPt
r, |
| 3217 long viewAndroidPtr, long windowAndroidPtr); | 3217 long viewAndroidPtr, long windowAndroidPtr); |
| 3218 | 3218 |
| 3219 @CalledByNative | 3219 @CalledByNative |
| 3220 private ContentVideoViewClient getContentVideoViewClient() { | 3220 private ContentVideoViewClient getContentVideoViewClient() { |
| 3221 return mContentViewClient.getContentVideoViewClient(); | 3221 return mContentViewClient.getContentVideoViewClient(); |
| 3222 } | 3222 } |
| 3223 | 3223 |
| 3224 @CalledByNative |
| 3225 private boolean shouldBlockMediaRequest(String url) { |
| 3226 return mContentViewClient.shouldBlockMediaRequest(url); |
| 3227 } |
| 3228 |
| 3224 private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentVi
ewCoreImpl); | 3229 private native void nativeOnJavaContentViewCoreDestroyed(int nativeContentVi
ewCoreImpl); |
| 3225 | 3230 |
| 3226 private native void nativeLoadUrl( | 3231 private native void nativeLoadUrl( |
| 3227 int nativeContentViewCoreImpl, | 3232 int nativeContentViewCoreImpl, |
| 3228 String url, | 3233 String url, |
| 3229 int loadUrlType, | 3234 int loadUrlType, |
| 3230 int transitionType, | 3235 int transitionType, |
| 3231 int uaOverrideOption, | 3236 int uaOverrideOption, |
| 3232 String extraHeaders, | 3237 String extraHeaders, |
| 3233 byte[] postData, | 3238 byte[] postData, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3395 | 3400 |
| 3396 private native void nativeSetAccessibilityEnabled( | 3401 private native void nativeSetAccessibilityEnabled( |
| 3397 int nativeContentViewCoreImpl, boolean enabled); | 3402 int nativeContentViewCoreImpl, boolean enabled); |
| 3398 | 3403 |
| 3399 private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl, | 3404 private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl, |
| 3400 int type, int count); | 3405 int type, int count); |
| 3401 | 3406 |
| 3402 private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewC
oreImpl, | 3407 private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewC
oreImpl, |
| 3403 int type, boolean hasDelay, int count); | 3408 int type, boolean hasDelay, int count); |
| 3404 } | 3409 } |
| OLD | NEW |