Java Code Examples for org.chromium.chrome.browser.tab.Tab#destroy()
The following examples show how to use
org.chromium.chrome.browser.tab.Tab#destroy() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TabModelImpl.java From delion with Apache License 2.0 | 5 votes |
@Override public void destroy() { for (Tab tab : mTabs) { if (tab.isInitialized()) tab.destroy(); } mRewoundList.destroy(); mTabs.clear(); mObservers.clear(); super.destroy(); }
Example 2
Source File: TabModelImpl.java From delion with Apache License 2.0 | 5 votes |
/** * Actually closes and cleans up {@code tab}. * @param tab The {@link Tab} to close. */ private void finalizeTabClosure(Tab tab) { if (mTabContentManager != null) mTabContentManager.removeTabThumbnail(tab.getId()); mTabSaver.removeTabFromQueues(tab); if (!isIncognito()) tab.createHistoricalTab(); tab.destroy(); for (TabModelObserver obs : mObservers) obs.didCloseTab(tab.getId(), tab.isIncognito()); }
Example 3
Source File: TabModelImpl.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public void destroy() { for (Tab tab : mTabs) { if (tab.isInitialized()) tab.destroy(); } mRewoundList.destroy(); mTabs.clear(); mObservers.clear(); mRecentlyClosedBridge.destroy(); super.destroy(); }
Example 4
Source File: TabModelImpl.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Actually closes and cleans up {@code tab}. * @param tab The {@link Tab} to close. */ private void finalizeTabClosure(Tab tab) { if (mTabContentManager != null) mTabContentManager.removeTabThumbnail(tab.getId()); mTabSaver.removeTabFromQueues(tab); if (!isIncognito()) tab.createHistoricalTab(); tab.destroy(); for (TabModelObserver obs : mObservers) obs.didCloseTab(tab.getId(), tab.isIncognito()); }
Example 5
Source File: TabModelImpl.java From 365browser with Apache License 2.0 | 5 votes |
@Override public void destroy() { for (Tab tab : mTabs) { if (tab.isInitialized()) tab.destroy(); } mRewoundList.destroy(); mTabs.clear(); mObservers.clear(); mRecentlyClosedBridge.destroy(); super.destroy(); }
Example 6
Source File: TabModelImpl.java From 365browser with Apache License 2.0 | 5 votes |
/** * Actually closes and cleans up {@code tab}. * @param tab The {@link Tab} to close. */ private void finalizeTabClosure(Tab tab) { if (mTabContentManager != null) mTabContentManager.removeTabThumbnail(tab.getId()); mTabSaver.removeTabFromQueues(tab); if (!isIncognito()) tab.createHistoricalTab(); tab.destroy(); for (TabModelObserver obs : mObservers) obs.didCloseTab(tab.getId(), tab.isIncognito()); }
Example 7
Source File: TabModelImpl.java From delion with Apache License 2.0 | 4 votes |
/** * Destroy all tabs in this model. This will check to see if the tab is already destroyed * before destroying it. */ public void destroy() { for (Tab tab : mRewoundTabs) { if (tab.isInitialized()) tab.destroy(); } }
Example 8
Source File: TabModelImpl.java From AndroidChromium with Apache License 2.0 | 4 votes |
/** * Destroy all tabs in this model. This will check to see if the tab is already destroyed * before destroying it. */ public void destroy() { for (Tab tab : mRewoundTabs) { if (tab.isInitialized()) tab.destroy(); } }
Example 9
Source File: TabModelImpl.java From 365browser with Apache License 2.0 | 4 votes |
/** * Destroy all tabs in this model. This will check to see if the tab is already destroyed * before destroying it. */ public void destroy() { for (Tab tab : mRewoundTabs) { if (tab.isInitialized()) tab.destroy(); } }