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 org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
8 import org.chromium.base.JNINamespace; | 8 import org.chromium.base.JNINamespace; |
9 import org.chromium.base.ThreadUtils; | 9 import org.chromium.base.ThreadUtils; |
10 import org.chromium.content_public.browser.WebContents; | 10 import org.chromium.content_public.browser.WebContents; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 boolean isIframeSrcdoc) { | 118 boolean isIframeSrcdoc) { |
119 } | 119 } |
120 | 120 |
121 /** | 121 /** |
122 * Notifies that the provisional load was successfully committed. The Render
ViewHost is now | 122 * Notifies that the provisional load was successfully committed. The Render
ViewHost is now |
123 * the current RenderViewHost of the WebContents. | 123 * the current RenderViewHost of the WebContents. |
124 * @param frameId A positive, non-zero integer identifying the navigating fr
ame. | 124 * @param frameId A positive, non-zero integer identifying the navigating fr
ame. |
125 * @param isMainFrame Whether the load is happening for the main frame. | 125 * @param isMainFrame Whether the load is happening for the main frame. |
126 * @param url The committed URL being navigated to. | 126 * @param url The committed URL being navigated to. |
127 * @param transitionType The transition type as defined in | 127 * @param transitionType The transition type as defined in |
128 * {@link org.chromium.ui.base.PageTransitionTypes} for
the load. | 128 * {@link org.chromium.ui.base.PageTransition} for the
load. |
129 */ | 129 */ |
130 @CalledByNative | 130 @CalledByNative |
131 public void didCommitProvisionalLoadForFrame( | 131 public void didCommitProvisionalLoadForFrame( |
132 long frameId, boolean isMainFrame, String url, int transitionType) { | 132 long frameId, boolean isMainFrame, String url, int transitionType) { |
133 | 133 |
134 } | 134 } |
135 | 135 |
136 /** | 136 /** |
137 * Notifies that a load has finished for a given frame. | 137 * Notifies that a load has finished for a given frame. |
138 * @param frameId A positive, non-zero integer identifying the navigating fr
ame. | 138 * @param frameId A positive, non-zero integer identifying the navigating fr
ame. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 public void detachFromWebContents() { | 187 public void detachFromWebContents() { |
188 if (mNativeWebContentsObserverAndroid != 0) { | 188 if (mNativeWebContentsObserverAndroid != 0) { |
189 nativeDestroy(mNativeWebContentsObserverAndroid); | 189 nativeDestroy(mNativeWebContentsObserverAndroid); |
190 mNativeWebContentsObserverAndroid = 0; | 190 mNativeWebContentsObserverAndroid = 0; |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 private native long nativeInit(WebContents webContents); | 194 private native long nativeInit(WebContents webContents); |
195 private native void nativeDestroy(long nativeWebContentsObserverAndroid); | 195 private native void nativeDestroy(long nativeWebContentsObserverAndroid); |
196 } | 196 } |
OLD | NEW |