org.chromium.chrome.browser.ntp.ForeignSessionHelper.ForeignSessionWindow Java Examples
The following examples show how to use
org.chromium.chrome.browser.ntp.ForeignSessionHelper.ForeignSessionWindow.
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: RecentTabsRowAdapter.java From delion with Apache License 2.0 | 6 votes |
private void openAllTabs() { ForeignSessionTab firstTab = null; for (ForeignSessionWindow window : mForeignSession.windows) { for (ForeignSessionTab tab : window.tabs) { if (firstTab == null) { firstTab = tab; } else { mRecentTabsManager.openForeignSessionTab( mForeignSession, tab, WindowOpenDisposition.NEW_BACKGROUND_TAB); } } } // Open the first tab last because calls to openForeignSessionTab after one for // CURRENT_TAB are ignored. if (firstTab != null) { mRecentTabsManager.openForeignSessionTab( mForeignSession, firstTab, WindowOpenDisposition.CURRENT_TAB); } }
Example #2
Source File: RecentTabsRowAdapter.java From AndroidChromium with Apache License 2.0 | 6 votes |
private void openAllTabs() { ForeignSessionTab firstTab = null; for (ForeignSessionWindow window : mForeignSession.windows) { for (ForeignSessionTab tab : window.tabs) { if (firstTab == null) { firstTab = tab; } else { mRecentTabsManager.openForeignSessionTab( mForeignSession, tab, WindowOpenDisposition.NEW_BACKGROUND_TAB); } } } // Open the first tab last because calls to openForeignSessionTab after one for // CURRENT_TAB are ignored. if (firstTab != null) { mRecentTabsManager.openForeignSessionTab( mForeignSession, firstTab, WindowOpenDisposition.CURRENT_TAB); } }
Example #3
Source File: RecentTabsRowAdapter.java From 365browser with Apache License 2.0 | 6 votes |
private void openAllTabs() { ForeignSessionTab firstTab = null; for (ForeignSessionWindow window : mForeignSession.windows) { for (ForeignSessionTab tab : window.tabs) { if (firstTab == null) { firstTab = tab; } else { mRecentTabsManager.openForeignSessionTab( mForeignSession, tab, WindowOpenDisposition.NEW_BACKGROUND_TAB); } } } // Open the first tab last because calls to openForeignSessionTab after one for // CURRENT_TAB are ignored. if (firstTab != null) { mRecentTabsManager.openForeignSessionTab( mForeignSession, firstTab, WindowOpenDisposition.CURRENT_TAB); } }
Example #4
Source File: RecentTabsRowAdapter.java From delion with Apache License 2.0 | 5 votes |
@Override public int getChildrenCount() { int count = 0; for (ForeignSessionWindow window : mForeignSession.windows) { count += window.tabs.size(); } return count; }
Example #5
Source File: RecentTabsRowAdapter.java From AndroidChromium with Apache License 2.0 | 5 votes |
@Override public int getChildrenCount() { int count = 0; for (ForeignSessionWindow window : mForeignSession.windows) { count += window.tabs.size(); } return count; }
Example #6
Source File: RecentTabsRowAdapter.java From 365browser with Apache License 2.0 | 5 votes |
@Override public int getChildrenCount() { int count = 0; for (ForeignSessionWindow window : mForeignSession.windows) { count += window.tabs.size(); } return count; }