| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.tab; | 5 package org.chromium.chrome.browser.tab; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.app.Application; | 8 import android.app.Application; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 mTopControlsVisibilityDelegate = mDelegateFactory.createTopControlsVisib
ilityDelegate(this); | 1618 mTopControlsVisibilityDelegate = mDelegateFactory.createTopControlsVisib
ilityDelegate(this); |
| 1619 setInterceptNavigationDelegate(mDelegateFactory.createInterceptNavigatio
nDelegate(this)); | 1619 setInterceptNavigationDelegate(mDelegateFactory.createInterceptNavigatio
nDelegate(this)); |
| 1620 getAppBannerManager().setIsEnabledForTab(mDelegateFactory.canShowAppBann
ers(this)); | 1620 getAppBannerManager().setIsEnabledForTab(mDelegateFactory.canShowAppBann
ers(this)); |
| 1621 | 1621 |
| 1622 // Reload the NativePage (if any), since the old NativePage has a refere
nce to the old | 1622 // Reload the NativePage (if any), since the old NativePage has a refere
nce to the old |
| 1623 // activity. | 1623 // activity. |
| 1624 maybeShowNativePage(getUrl(), true); | 1624 maybeShowNativePage(getUrl(), true); |
| 1625 | 1625 |
| 1626 reparentingParams.finalizeTabReparenting(); | 1626 reparentingParams.finalizeTabReparenting(); |
| 1627 mIsDetachedForReparenting = false; | 1627 mIsDetachedForReparenting = false; |
| 1628 mIsTabStateDirty = true; |
| 1628 | 1629 |
| 1629 for (TabObserver observer : mObservers) { | 1630 for (TabObserver observer : mObservers) { |
| 1630 observer.onReparentingFinished(this); | 1631 observer.onReparentingFinished(this); |
| 1631 } | 1632 } |
| 1632 } | 1633 } |
| 1633 | 1634 |
| 1634 /** | 1635 /** |
| 1635 * @return Whether the tab is detached from its Activity and {@link WindowAn
droid} for | 1636 * @return Whether the tab is detached from its Activity and {@link WindowAn
droid} for |
| 1636 * reparenting. Certain functionalities will not work until it is attached t
o a new activity | 1637 * reparenting. Certain functionalities will not work until it is attached t
o a new activity |
| 1637 * with {@link Tab#attachAndFinishReparenting( | 1638 * with {@link Tab#attachAndFinishReparenting( |
| (...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3331 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, | 3332 private native void nativeSetInterceptNavigationDelegate(long nativeTabAndro
id, |
| 3332 InterceptNavigationDelegate delegate); | 3333 InterceptNavigationDelegate delegate); |
| 3333 private native void nativeAttachToTabContentManager(long nativeTabAndroid, | 3334 private native void nativeAttachToTabContentManager(long nativeTabAndroid, |
| 3334 TabContentManager tabContentManager); | 3335 TabContentManager tabContentManager); |
| 3335 private native void nativeAttachOverlayWebContents( | 3336 private native void nativeAttachOverlayWebContents( |
| 3336 long nativeTabAndroid, WebContents webContents, boolean visible); | 3337 long nativeTabAndroid, WebContents webContents, boolean visible); |
| 3337 private native void nativeDetachOverlayWebContents( | 3338 private native void nativeDetachOverlayWebContents( |
| 3338 long nativeTabAndroid, WebContents webContents); | 3339 long nativeTabAndroid, WebContents webContents); |
| 3339 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String
url); | 3340 private native boolean nativeHasPrerenderedUrl(long nativeTabAndroid, String
url); |
| 3340 } | 3341 } |
| OLD | NEW |