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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.app.Activity; | 8 import android.app.Activity; |
9 import android.app.SearchManager; | 9 import android.app.SearchManager; |
10 import android.content.ContentResolver; | 10 import android.content.ContentResolver; |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 params.mUrl, | 819 params.mUrl, |
820 params.mLoadUrlType, | 820 params.mLoadUrlType, |
821 params.mTransitionType, | 821 params.mTransitionType, |
822 params.getReferrer() != null ? params.getReferrer().getUrl() : n
ull, | 822 params.getReferrer() != null ? params.getReferrer().getUrl() : n
ull, |
823 params.getReferrer() != null ? params.getReferrer().getPolicy()
: 0, | 823 params.getReferrer() != null ? params.getReferrer().getPolicy()
: 0, |
824 params.mUaOverrideOption, | 824 params.mUaOverrideOption, |
825 params.getExtraHeadersString(), | 825 params.getExtraHeadersString(), |
826 params.mPostData, | 826 params.mPostData, |
827 params.mBaseUrlForDataUrl, | 827 params.mBaseUrlForDataUrl, |
828 params.mVirtualUrlForDataUrl, | 828 params.mVirtualUrlForDataUrl, |
829 params.mCanLoadLocalResources); | 829 params.mCanLoadLocalResources, |
| 830 params.mIsRendererInitiated); |
830 } | 831 } |
831 | 832 |
832 /** | 833 /** |
833 * Stops loading the current web contents. | 834 * Stops loading the current web contents. |
834 */ | 835 */ |
835 public void stopLoading() { | 836 public void stopLoading() { |
836 if (mWebContents != null) mWebContents.stop(); | 837 if (mWebContents != null) mWebContents.stop(); |
837 } | 838 } |
838 | 839 |
839 /** | 840 /** |
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3067 String url, | 3068 String url, |
3068 int loadUrlType, | 3069 int loadUrlType, |
3069 int transitionType, | 3070 int transitionType, |
3070 String referrerUrl, | 3071 String referrerUrl, |
3071 int referrerPolicy, | 3072 int referrerPolicy, |
3072 int uaOverrideOption, | 3073 int uaOverrideOption, |
3073 String extraHeaders, | 3074 String extraHeaders, |
3074 byte[] postData, | 3075 byte[] postData, |
3075 String baseUrlForDataUrl, | 3076 String baseUrlForDataUrl, |
3076 String virtualUrlForDataUrl, | 3077 String virtualUrlForDataUrl, |
3077 boolean canLoadLocalResources); | 3078 boolean canLoadLocalResources, |
| 3079 boolean isRendererInitiated); |
3078 | 3080 |
3079 private native String nativeGetURL(long nativeContentViewCoreImpl); | 3081 private native String nativeGetURL(long nativeContentViewCoreImpl); |
3080 | 3082 |
3081 private native void nativeShowInterstitialPage( | 3083 private native void nativeShowInterstitialPage( |
3082 long nativeContentViewCoreImpl, String url, long nativeInterstitialP
ageDelegateAndroid); | 3084 long nativeContentViewCoreImpl, String url, long nativeInterstitialP
ageDelegateAndroid); |
3083 private native boolean nativeIsShowingInterstitialPage(long nativeContentVie
wCoreImpl); | 3085 private native boolean nativeIsShowingInterstitialPage(long nativeContentVie
wCoreImpl); |
3084 | 3086 |
3085 private native boolean nativeIsIncognito(long nativeContentViewCoreImpl); | 3087 private native boolean nativeIsIncognito(long nativeContentViewCoreImpl); |
3086 | 3088 |
3087 private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean f
ocused); | 3089 private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean f
ocused); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 boolean enableHiding, boolean enableShowing, boolean animate); | 3207 boolean enableHiding, boolean enableShowing, boolean animate); |
3206 | 3208 |
3207 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); | 3209 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); |
3208 | 3210 |
3209 private native void nativeSetAccessibilityEnabled( | 3211 private native void nativeSetAccessibilityEnabled( |
3210 long nativeContentViewCoreImpl, boolean enabled); | 3212 long nativeContentViewCoreImpl, boolean enabled); |
3211 | 3213 |
3212 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3214 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3213 int x, int y, int w, int h); | 3215 int x, int y, int w, int h); |
3214 } | 3216 } |
OLD | NEW |