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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java

Issue 900443003: Add support for ContentViewCore helpers on Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 import android.view.ContextMenu; 7 import android.view.ContextMenu;
8 8
9 import org.chromium.content.browser.ContentViewCore; 9 import org.chromium.content.browser.ContentViewCore;
10 import org.chromium.content_public.browser.WebContents; 10 import org.chromium.content_public.browser.WebContents;
(...skipping 29 matching lines...) Expand all
40 */ 40 */
41 void onDestroyed(Tab tab); 41 void onDestroyed(Tab tab);
42 42
43 /** 43 /**
44 * Called when the tab content changes (to/from native pages or swapping nat ive WebContents). 44 * Called when the tab content changes (to/from native pages or swapping nat ive WebContents).
45 * @param tab The notifying {@link Tab}. 45 * @param tab The notifying {@link Tab}.
46 */ 46 */
47 void onContentChanged(Tab tab); 47 void onContentChanged(Tab tab);
48 48
49 /** 49 /**
50 * Called when a {@link ContentViewCore} overlay is attached to {@code tab}.
51 * @param tab The notifying {@link Tab}.
52 * @param content The {@link ContentViewCore} being added.
53 */
54 void onOverlayContentViewCoreAdded(Tab tab, ContentViewCore content);
55
56 /**
57 * Called when a {@link ContentViewCore} overlay is detached from {@code tab }.
58 * @param tab The notifying {@link Tab}.
59 * @param content The {@link ContentViewCore} being removed.
60 */
61 void onOverlayContentViewCoreRemoved(Tab tab, ContentViewCore content);
62
63 /**
50 * Called when loadUrl is triggered on a a {@link Tab}. 64 * Called when loadUrl is triggered on a a {@link Tab}.
51 * @param tab The notifying {@link Tab}. 65 * @param tab The notifying {@link Tab}.
52 * @param url The url that is being loaded. 66 * @param url The url that is being loaded.
53 * @param loadType The type of load that was performed. 67 * @param loadType The type of load that was performed.
54 * 68 *
55 * @see TabLoadStatus#PAGE_LOAD_FAILED 69 * @see TabLoadStatus#PAGE_LOAD_FAILED
56 * @see TabLoadStatus#DEFAULT_PAGE_LOAD 70 * @see TabLoadStatus#DEFAULT_PAGE_LOAD
57 * @see TabLoadStatus#PARTIAL_PRERENDERED_PAGE_LOAD 71 * @see TabLoadStatus#PARTIAL_PRERENDERED_PAGE_LOAD
58 * @see TabLoadStatus#FULL_PRERENDERED_PAGE_LOAD 72 * @see TabLoadStatus#FULL_PRERENDERED_PAGE_LOAD
59 */ 73 */
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 * @param tab The notifying {@link Tab}. 267 * @param tab The notifying {@link Tab}.
254 */ 268 */
255 public void onDidAttachInterstitialPage(Tab tab); 269 public void onDidAttachInterstitialPage(Tab tab);
256 270
257 /** 271 /**
258 * Called when an interstitial page gets detached from the tab content. 272 * Called when an interstitial page gets detached from the tab content.
259 * @param tab The notifying {@link Tab}. 273 * @param tab The notifying {@link Tab}.
260 */ 274 */
261 public void onDidDetachInterstitialPage(Tab tab); 275 public void onDidDetachInterstitialPage(Tab tab);
262 276
277 /**
278 * Called when a navigation is started to a pending entry.
279 * @param tab The notifying {@link Tab}.
280 * @param url The url being navigated to.
281 */
263 public void onDidStartNavigationToPendingEntry(Tab tab, String url); 282 public void onDidStartNavigationToPendingEntry(Tab tab, String url);
264 283
265 /** 284 /**
266 * Called when the background color for the tab has changed. 285 * Called when the background color for the tab has changed.
267 * @param tab The notifying {@link Tab}. 286 * @param tab The notifying {@link Tab}.
268 * @param color The current background color. 287 * @param color The current background color.
269 */ 288 */
270 public void onBackgroundColorChanged(Tab tab, int color); 289 public void onBackgroundColorChanged(Tab tab, int color);
271 290
291 /**
292 * Called when a {@link WebContents} object has been created.
293 * @param tab The notifying {@link Tab}.
294 * @param sourceWebContents The {@link WebContents} that triggered the cre ation.
295 * @param openerRenderFrameId The opener render frame id.
296 * @param frameName The name of the frame.
297 * @param targetUrl The target url.
298 * @param newWebContents The newly created {@link WebContents}.
299 */
272 public void webContentsCreated(Tab tab, WebContents sourceWebContents, long openerRenderFrameId, 300 public void webContentsCreated(Tab tab, WebContents sourceWebContents, long openerRenderFrameId,
273 String frameName, String targetUrl, WebContents newWebContents); 301 String frameName, String targetUrl, WebContents newWebContents);
274 } 302 }
OLDNEW
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/Tab.java ('k') | chrome/browser/android/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698