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

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

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch with findbugs_known_bugs.txt changes. Created 6 years, 3 months 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.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.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 import org.chromium.content.browser.input.PopupTouchHandleDrawable; 69 import org.chromium.content.browser.input.PopupTouchHandleDrawable;
70 import org.chromium.content.browser.input.PopupTouchHandleDrawable.PopupTouchHan dleDrawableDelegate; 70 import org.chromium.content.browser.input.PopupTouchHandleDrawable.PopupTouchHan dleDrawableDelegate;
71 import org.chromium.content.browser.input.SelectPopup; 71 import org.chromium.content.browser.input.SelectPopup;
72 import org.chromium.content.browser.input.SelectPopupDialog; 72 import org.chromium.content.browser.input.SelectPopupDialog;
73 import org.chromium.content.browser.input.SelectPopupDropdown; 73 import org.chromium.content.browser.input.SelectPopupDropdown;
74 import org.chromium.content.browser.input.SelectPopupItem; 74 import org.chromium.content.browser.input.SelectPopupItem;
75 import org.chromium.content.browser.input.SelectionEventType; 75 import org.chromium.content.browser.input.SelectionEventType;
76 import org.chromium.content.common.ContentSwitches; 76 import org.chromium.content.common.ContentSwitches;
77 import org.chromium.content_public.browser.GestureStateListener; 77 import org.chromium.content_public.browser.GestureStateListener;
78 import org.chromium.content_public.browser.JavaScriptCallback; 78 import org.chromium.content_public.browser.JavaScriptCallback;
79 import org.chromium.content_public.browser.LoadUrlParams;
80 import org.chromium.content_public.browser.NavigationHistory;
79 import org.chromium.content_public.browser.WebContents; 81 import org.chromium.content_public.browser.WebContents;
80 import org.chromium.ui.base.DeviceFormFactor; 82 import org.chromium.ui.base.DeviceFormFactor;
81 import org.chromium.ui.base.ViewAndroid; 83 import org.chromium.ui.base.ViewAndroid;
82 import org.chromium.ui.base.ViewAndroidDelegate; 84 import org.chromium.ui.base.ViewAndroidDelegate;
83 import org.chromium.ui.base.WindowAndroid; 85 import org.chromium.ui.base.WindowAndroid;
84 import org.chromium.ui.gfx.DeviceDisplayInfo; 86 import org.chromium.ui.gfx.DeviceDisplayInfo;
85 87
86 import java.lang.annotation.Annotation; 88 import java.lang.annotation.Annotation;
87 import java.lang.reflect.Field; 89 import java.lang.reflect.Field;
88 import java.util.ArrayList; 90 import java.util.ArrayList;
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 } 850 }
849 851
850 /** 852 /**
851 * Load url without fixing up the url string. Consumers of ContentView are r esponsible for 853 * Load url without fixing up the url string. Consumers of ContentView are r esponsible for
852 * ensuring the URL passed in is properly formatted (i.e. the scheme has bee n added if left 854 * ensuring the URL passed in is properly formatted (i.e. the scheme has bee n added if left
853 * off during user input). 855 * off during user input).
854 * 856 *
855 * @param params Parameters for this load. 857 * @param params Parameters for this load.
856 */ 858 */
857 public void loadUrl(LoadUrlParams params) { 859 public void loadUrl(LoadUrlParams params) {
858 if (mNativeContentViewCore == 0) return; 860 assert mWebContents != null;
859 861 mWebContents.getNavigationController().loadUrl(params);
860 nativeLoadUrl(mNativeContentViewCore,
861 params.mUrl,
862 params.mLoadUrlType,
863 params.mTransitionType,
864 params.getReferrer() != null ? params.getReferrer().getUrl() : n ull,
865 params.getReferrer() != null ? params.getReferrer().getPolicy() : 0,
866 params.mUaOverrideOption,
867 params.getExtraHeadersString(),
868 params.mPostData,
869 params.mBaseUrlForDataUrl,
870 params.mVirtualUrlForDataUrl,
871 params.mCanLoadLocalResources,
872 params.mIsRendererInitiated);
873 } 862 }
874 863
875 /** 864 /**
876 * Stops loading the current web contents. 865 * Stops loading the current web contents.
877 */ 866 */
878 public void stopLoading() { 867 public void stopLoading() {
879 assert mWebContents != null; 868 assert mWebContents != null;
880 mWebContents.stop(); 869 mWebContents.stop();
881 } 870 }
882 871
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 public float getContentWidthCss() { 959 public float getContentWidthCss() {
971 return mRenderCoordinates.getContentWidthCss(); 960 return mRenderCoordinates.getContentWidthCss();
972 } 961 }
973 962
974 // TODO(teddchoc): Remove all these navigation controller methods from here and have the 963 // TODO(teddchoc): Remove all these navigation controller methods from here and have the
975 // embedders manage it. 964 // embedders manage it.
976 /** 965 /**
977 * @return Whether the current WebContents has a previous navigation entry. 966 * @return Whether the current WebContents has a previous navigation entry.
978 */ 967 */
979 public boolean canGoBack() { 968 public boolean canGoBack() {
980 return mWebContents != null && mWebContents.getNavigationController().ca nGoBack(); 969 assert mWebContents != null;
970 return mWebContents.getNavigationController().canGoBack();
981 } 971 }
982 972
983 /** 973 /**
984 * @return Whether the current WebContents has a navigation entry after the current one. 974 * @return Whether the current WebContents has a navigation entry after the current one.
985 */ 975 */
986 public boolean canGoForward() { 976 public boolean canGoForward() {
987 return mWebContents != null && mWebContents.getNavigationController().ca nGoForward(); 977 assert mWebContents != null;
978 return mWebContents.getNavigationController().canGoForward();
988 } 979 }
989 980
990 /** 981 /**
991 * @param offset The offset into the navigation history. 982 * @param offset The offset into the navigation history.
992 * @return Whether we can move in history by given offset 983 * @return Whether we can move in history by given offset
993 */ 984 */
994 public boolean canGoToOffset(int offset) { 985 public boolean canGoToOffset(int offset) {
995 return mWebContents != null && 986 assert mWebContents != null;
996 mWebContents.getNavigationController().canGoToOffset(offset); 987 return mWebContents.getNavigationController().canGoToOffset(offset);
997 } 988 }
998 989
999 /** 990 /**
1000 * Navigates to the specified offset from the "current entry". Does nothing if the offset is out 991 * Navigates to the specified offset from the "current entry". Does nothing if the offset is out
1001 * of bounds. 992 * of bounds.
1002 * @param offset The offset into the navigation history. 993 * @param offset The offset into the navigation history.
1003 */ 994 */
1004 @VisibleForTesting 995 @VisibleForTesting
1005 public void goToOffset(int offset) { 996 public void goToOffset(int offset) {
1006 if (mWebContents != null) mWebContents.getNavigationController().goToOff set(offset); 997 assert mWebContents != null;
998 mWebContents.getNavigationController().goToOffset(offset);
1007 } 999 }
1008 1000
1009 @Override 1001 @Override
1010 public void goToNavigationIndex(int index) { 1002 public void goToNavigationIndex(int index) {
1011 if (mWebContents != null) { 1003 assert mWebContents != null;
1012 mWebContents.getNavigationController().goToNavigationIndex(index); 1004 mWebContents.getNavigationController().goToNavigationIndex(index);
1013 }
1014 } 1005 }
1015 1006
1016 /** 1007 /**
1017 * Goes to the navigation entry before the current one. 1008 * Goes to the navigation entry before the current one.
1018 */ 1009 */
1019 public void goBack() { 1010 public void goBack() {
1020 if (mWebContents != null) mWebContents.getNavigationController().goBack( ); 1011 assert mWebContents != null;
1012 mWebContents.getNavigationController().goBack();
1021 } 1013 }
1022 1014
1023 /** 1015 /**
1024 * Goes to the navigation entry following the current one. 1016 * Goes to the navigation entry following the current one.
1025 */ 1017 */
1026 public void goForward() { 1018 public void goForward() {
1027 if (mWebContents != null) mWebContents.getNavigationController().goForwa rd(); 1019 assert mWebContents != null;
1020 mWebContents.getNavigationController().goForward();
1028 } 1021 }
1029 1022
1030 /** 1023 /**
1031 * Loads the current navigation if there is a pending lazy load (after tab r estore). 1024 * Loads the current navigation if there is a pending lazy load (after tab r estore).
1032 */ 1025 */
1033 public void loadIfNecessary() { 1026 public void loadIfNecessary() {
1034 if (mWebContents != null) mWebContents.getNavigationController().loadIfN ecessary(); 1027 assert mWebContents != null;
1028 mWebContents.getNavigationController().loadIfNecessary();
1035 } 1029 }
1036 1030
1037 /** 1031 /**
1038 * Requests the current navigation to be loaded upon the next call to loadIf Necessary(). 1032 * Requests the current navigation to be loaded upon the next call to loadIf Necessary().
1039 */ 1033 */
1040 public void requestRestoreLoad() { 1034 public void requestRestoreLoad() {
1041 if (mWebContents != null) mWebContents.getNavigationController().request RestoreLoad(); 1035 assert mWebContents != null;
1036 mWebContents.getNavigationController().requestRestoreLoad();
1042 } 1037 }
1043 1038
1044 /** 1039 /**
1045 * Reload the current page. 1040 * Reload the current page.
1046 */ 1041 */
1047 public void reload(boolean checkForRepost) { 1042 public void reload(boolean checkForRepost) {
1043 assert mWebContents != null;
1048 mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary(); 1044 mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
1049 if (mWebContents != null) mWebContents.getNavigationController().reload( checkForRepost); 1045 mWebContents.getNavigationController().reload(checkForRepost);
1050 } 1046 }
1051 1047
1052 /** 1048 /**
1053 * Reload the current page, ignoring the contents of the cache. 1049 * Reload the current page, ignoring the contents of the cache.
1054 */ 1050 */
1055 public void reloadIgnoringCache(boolean checkForRepost) { 1051 public void reloadIgnoringCache(boolean checkForRepost) {
1052 assert mWebContents != null;
1056 mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary(); 1053 mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
1057 if (mWebContents != null) mWebContents.getNavigationController().reloadI gnoringCache( 1054 mWebContents.getNavigationController().reloadIgnoringCache(
1058 checkForRepost); 1055 checkForRepost);
1059 } 1056 }
1060 1057
1061 /** 1058 /**
1062 * Cancel the pending reload. 1059 * Cancel the pending reload.
1063 */ 1060 */
1064 public void cancelPendingReload() { 1061 public void cancelPendingReload() {
1065 if (mWebContents != null) mWebContents.getNavigationController().cancelP endingReload(); 1062 assert mWebContents != null;
1063 mWebContents.getNavigationController().cancelPendingReload();
1066 } 1064 }
1067 1065
1068 /** 1066 /**
1069 * Continue the pending reload. 1067 * Continue the pending reload.
1070 */ 1068 */
1071 public void continuePendingReload() { 1069 public void continuePendingReload() {
1072 if (mWebContents != null) mWebContents.getNavigationController().continu ePendingReload(); 1070 assert mWebContents != null;
1071 mWebContents.getNavigationController().continuePendingReload();
1073 } 1072 }
1074 1073
1075 /** 1074 /**
1076 * Clears the ContentViewCore's page history in both the backwards and 1075 * Clears the ContentViewCore's page history in both the backwards and
1077 * forwards directions. 1076 * forwards directions.
1078 */ 1077 */
1079 public void clearHistory() { 1078 public void clearHistory() {
1080 if (mNativeContentViewCore != 0) nativeClearHistory(mNativeContentViewCo re); 1079 assert mWebContents != null;
1080 mWebContents.getNavigationController().clearHistory();
1081 } 1081 }
1082 1082
1083 /** 1083 /**
1084 * @return The selected text (empty if no text selected). 1084 * @return The selected text (empty if no text selected).
1085 */ 1085 */
1086 public String getSelectedText() { 1086 public String getSelectedText() {
1087 return mHasSelection ? mLastSelectedText : ""; 1087 return mHasSelection ? mLastSelectedText : "";
1088 } 1088 }
1089 1089
1090 /** 1090 /**
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 hidePastePopup(); 2159 hidePastePopup();
2160 break; 2160 break;
2161 2161
2162 default: 2162 default:
2163 assert false : "Invalid selection event type."; 2163 assert false : "Invalid selection event type.";
2164 } 2164 }
2165 getContentViewClient().onSelectionEvent(eventType); 2165 getContentViewClient().onSelectionEvent(eventType);
2166 } 2166 }
2167 2167
2168 public boolean getUseDesktopUserAgent() { 2168 public boolean getUseDesktopUserAgent() {
2169 if (mNativeContentViewCore != 0) { 2169 assert mWebContents != null;
2170 return nativeGetUseDesktopUserAgent(mNativeContentViewCore); 2170 return mWebContents.getNavigationController().getUseDesktopUserAgent();
2171 }
2172 return false;
2173 } 2171 }
2174 2172
2175 /** 2173 /**
2176 * Set whether or not we're using a desktop user agent for the currently loa ded page. 2174 * Set whether or not we're using a desktop user agent for the currently loa ded page.
2177 * @param override If true, use a desktop user agent. Use a mobile one othe rwise. 2175 * @param override If true, use a desktop user agent. Use a mobile one othe rwise.
2178 * @param reloadOnChange Reload the page if the UA has changed. 2176 * @param reloadOnChange Reload the page if the UA has changed.
2179 */ 2177 */
2180 public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange) { 2178 public void setUseDesktopUserAgent(boolean override, boolean reloadOnChange) {
2181 if (mNativeContentViewCore != 0) { 2179 assert mWebContents != null;
2182 nativeSetUseDesktopUserAgent(mNativeContentViewCore, override, reloa dOnChange); 2180 mWebContents.getNavigationController().setUseDesktopUserAgent(override,
2183 } 2181 reloadOnChange);
2184 } 2182 }
2185 2183
2186 public void clearSslPreferences() { 2184 public void clearSslPreferences() {
2187 if (mNativeContentViewCore != 0) nativeClearSslPreferences(mNativeConten tViewCore); 2185 assert mWebContents != null;
2186 mWebContents.getNavigationController().clearSslPreferences();
2188 } 2187 }
2189 2188
2190 private void hideTextHandles() { 2189 private void hideTextHandles() {
2191 mHasSelection = false; 2190 mHasSelection = false;
2192 mHasInsertion = false; 2191 mHasInsertion = false;
2193 if (mNativeContentViewCore != 0) nativeHideTextHandles(mNativeContentVie wCore); 2192 if (mNativeContentViewCore != 0) nativeHideTextHandles(mNativeContentVie wCore);
2194 } 2193 }
2195 2194
2196 /** 2195 /**
2197 * Shows the IME if the focused widget could accept text input. 2196 * Shows the IME if the focused widget could accept text input.
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
2943 * @param animate Whether the transition should be animated or not. 2942 * @param animate Whether the transition should be animated or not.
2944 */ 2943 */
2945 public void updateTopControlsState(boolean enableHiding, boolean enableShowi ng, 2944 public void updateTopControlsState(boolean enableHiding, boolean enableShowi ng,
2946 boolean animate) { 2945 boolean animate) {
2947 assert mWebContents != null; 2946 assert mWebContents != null;
2948 mWebContents.updateTopControlsState( 2947 mWebContents.updateTopControlsState(
2949 enableHiding, enableShowing, animate); 2948 enableHiding, enableShowing, animate);
2950 } 2949 }
2951 2950
2952 /** 2951 /**
2953 * Callback factory method for nativeGetNavigationHistory().
2954 */
2955 @CalledByNative
2956 private void addToNavigationHistory(Object history, int index, String url, S tring virtualUrl,
2957 String originalUrl, String title, Bitmap favicon) {
2958 NavigationEntry entry = new NavigationEntry(
2959 index, url, virtualUrl, originalUrl, title, favicon);
2960 ((NavigationHistory) history).addEntry(entry);
2961 }
2962
2963 /**
2964 * Get a copy of the navigation history of the view. 2952 * Get a copy of the navigation history of the view.
2965 */ 2953 */
2966 public NavigationHistory getNavigationHistory() { 2954 public NavigationHistory getNavigationHistory() {
2967 NavigationHistory history = new NavigationHistory(); 2955 assert mWebContents != null;
2968 if (mNativeContentViewCore != 0) { 2956 return mWebContents.getNavigationController().getNavigationHistory();
2969 int currentIndex = nativeGetNavigationHistory(mNativeContentViewCore , history);
2970 history.setCurrentEntryIndex(currentIndex);
2971 }
2972 return history;
2973 } 2957 }
2974 2958
2975 @Override 2959 @Override
2976 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit) { 2960 public NavigationHistory getDirectedNavigationHistory(boolean isForward, int itemLimit) {
2977 NavigationHistory history = new NavigationHistory(); 2961 assert mWebContents != null;
2978 if (mNativeContentViewCore != 0) { 2962 return mWebContents.getNavigationController().getDirectedNavigationHisto ry(
2979 nativeGetDirectedNavigationHistory( 2963 isForward, itemLimit);
2980 mNativeContentViewCore, history, isForward, itemLimit);
2981 }
2982 return history;
2983 } 2964 }
2984 2965
2985 /** 2966 /**
2986 * @return The original request URL for the current navigation entry, or nul l if there is no 2967 * @return The original request URL for the current navigation entry, or nul l if there is no
2987 * current entry. 2968 * current entry.
2988 */ 2969 */
2989 public String getOriginalUrlForActiveNavigationEntry() { 2970 public String getOriginalUrlForActiveNavigationEntry() {
2990 if (mNativeContentViewCore != 0) { 2971 assert mWebContents != null;
2991 return nativeGetOriginalUrlForActiveNavigationEntry(mNativeContentVi ewCore); 2972 return mWebContents.getNavigationController().
2992 } 2973 getOriginalUrlForVisibleNavigationEntry();
2993 return "";
2994 } 2974 }
2995 2975
2996 /** 2976 /**
2997 * @return The cached copy of render positions and scales. 2977 * @return The cached copy of render positions and scales.
2998 */ 2978 */
2999 public RenderCoordinates getRenderCoordinates() { 2979 public RenderCoordinates getRenderCoordinates() {
3000 return mRenderCoordinates; 2980 return mRenderCoordinates;
3001 } 2981 }
3002 2982
3003 @CalledByNative 2983 @CalledByNative
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 3093
3114 @CalledByNative 3094 @CalledByNative
3115 private boolean isFullscreenRequiredForOrientationLock() { 3095 private boolean isFullscreenRequiredForOrientationLock() {
3116 return mFullscreenRequiredForOrientationLock; 3096 return mFullscreenRequiredForOrientationLock;
3117 } 3097 }
3118 3098
3119 private native WebContents nativeGetWebContentsAndroid(long nativeContentVie wCoreImpl); 3099 private native WebContents nativeGetWebContentsAndroid(long nativeContentVie wCoreImpl);
3120 3100
3121 private native void nativeOnJavaContentViewCoreDestroyed(long nativeContentV iewCoreImpl); 3101 private native void nativeOnJavaContentViewCoreDestroyed(long nativeContentV iewCoreImpl);
3122 3102
3123 private native void nativeLoadUrl(
3124 long nativeContentViewCoreImpl,
3125 String url,
3126 int loadUrlType,
3127 int transitionType,
3128 String referrerUrl,
3129 int referrerPolicy,
3130 int uaOverrideOption,
3131 String extraHeaders,
3132 byte[] postData,
3133 String baseUrlForDataUrl,
3134 String virtualUrlForDataUrl,
3135 boolean canLoadLocalResources,
3136 boolean isRendererInitiated);
3137
3138 private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean f ocused); 3103 private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean f ocused);
3139 3104
3140 private native void nativeSendOrientationChangeEvent( 3105 private native void nativeSendOrientationChangeEvent(
3141 long nativeContentViewCoreImpl, int orientation); 3106 long nativeContentViewCoreImpl, int orientation);
3142 3107
3143 // All touch events (including flings, scrolls etc) accept coordinates in ph ysical pixels. 3108 // All touch events (including flings, scrolls etc) accept coordinates in ph ysical pixels.
3144 private native boolean nativeOnTouchEvent( 3109 private native boolean nativeOnTouchEvent(
3145 long nativeContentViewCoreImpl, MotionEvent event, 3110 long nativeContentViewCoreImpl, MotionEvent event,
3146 long timeMs, int action, int pointerCount, int historySize, int acti onIndex, 3111 long timeMs, int action, int pointerCount, int historySize, int acti onIndex,
3147 float x0, float y0, float x1, float y1, 3112 float x0, float y0, float x1, float y1,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
3202 3167
3203 private native void nativeSetDoubleTapSupportEnabled( 3168 private native void nativeSetDoubleTapSupportEnabled(
3204 long nativeContentViewCoreImpl, boolean enabled); 3169 long nativeContentViewCoreImpl, boolean enabled);
3205 3170
3206 private native void nativeSetMultiTouchZoomSupportEnabled( 3171 private native void nativeSetMultiTouchZoomSupportEnabled(
3207 long nativeContentViewCoreImpl, boolean enabled); 3172 long nativeContentViewCoreImpl, boolean enabled);
3208 3173
3209 private native void nativeSelectPopupMenuItems(long nativeContentViewCoreImp l, 3174 private native void nativeSelectPopupMenuItems(long nativeContentViewCoreImp l,
3210 long nativeSelectPopupSourceFrame, int[] indices); 3175 long nativeSelectPopupSourceFrame, int[] indices);
3211 3176
3212 private native void nativeClearHistory(long nativeContentViewCoreImpl);
3213 3177
3214 private native void nativePostMessageToFrame(long nativeContentViewCoreImpl, String frameId, 3178 private native void nativePostMessageToFrame(long nativeContentViewCoreImpl, String frameId,
3215 String message, String sourceOrigin, String targetOrigin); 3179 String message, String sourceOrigin, String targetOrigin);
3216 3180
3217 private native long nativeGetNativeImeAdapter(long nativeContentViewCoreImpl ); 3181 private native long nativeGetNativeImeAdapter(long nativeContentViewCoreImpl );
3218 3182
3219 private native int nativeGetCurrentRenderProcessId(long nativeContentViewCor eImpl); 3183 private native int nativeGetCurrentRenderProcessId(long nativeContentViewCor eImpl);
3220 3184
3221 private native void nativeSetUseDesktopUserAgent(long nativeContentViewCoreI mpl,
3222 boolean enabled, boolean reloadOnChange);
3223
3224 private native boolean nativeGetUseDesktopUserAgent(long nativeContentViewCo reImpl);
3225
3226 private native void nativeClearSslPreferences(long nativeContentViewCoreImpl );
3227
3228 private native void nativeSetAllowJavascriptInterfacesInspection( 3185 private native void nativeSetAllowJavascriptInterfacesInspection(
3229 long nativeContentViewCoreImpl, boolean allow); 3186 long nativeContentViewCoreImpl, boolean allow);
3230 3187
3231 private native void nativeAddJavascriptInterface(long nativeContentViewCoreI mpl, Object object, 3188 private native void nativeAddJavascriptInterface(long nativeContentViewCoreI mpl, Object object,
3232 String name, Class requiredAnnotation); 3189 String name, Class requiredAnnotation);
3233 3190
3234 private native void nativeRemoveJavascriptInterface(long nativeContentViewCo reImpl, 3191 private native void nativeRemoveJavascriptInterface(long nativeContentViewCo reImpl,
3235 String name); 3192 String name);
3236 3193
3237 private native int nativeGetNavigationHistory(long nativeContentViewCoreImpl , Object context);
3238
3239 private native void nativeGetDirectedNavigationHistory(long nativeContentVie wCoreImpl,
3240 Object context, boolean isForward, int maxEntries);
3241
3242 private native String nativeGetOriginalUrlForActiveNavigationEntry(
3243 long nativeContentViewCoreImpl);
3244
3245 private native void nativeWasResized(long nativeContentViewCoreImpl); 3194 private native void nativeWasResized(long nativeContentViewCoreImpl);
3246 3195
3247 private native void nativeSetAccessibilityEnabled( 3196 private native void nativeSetAccessibilityEnabled(
3248 long nativeContentViewCoreImpl, boolean enabled); 3197 long nativeContentViewCoreImpl, boolean enabled);
3249 3198
3250 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3199 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3251 int x, int y, int w, int h); 3200 int x, int y, int w, int h);
3252 3201
3253 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3202 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3254 } 3203 }
OLDNEW
« no previous file with comments | « content/content_jni.gypi ('k') | content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698