Java Code Examples for org.chromium.chrome.browser.compositor.layouts.phone.stack.Stack#getTabs()
The following examples show how to use
org.chromium.chrome.browser.compositor.layouts.phone.stack.Stack#getTabs() .
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: StackLayout.java From delion with Apache License 2.0 | 5 votes |
/** * Extracts the tabs from a stack and append them into a list. * @param stack The stack that contains the tabs. * @param outList The output list where will be the tabs from the stack. * @param index The current number of item in the outList. * @return The updated index incremented by the number of tabs in the stack. */ private static int addAllTabs(Stack stack, StackTab[] outList, int index) { StackTab[] stackTabs = stack.getTabs(); if (stackTabs != null) { for (int i = 0; i < stackTabs.length; ++i) { outList[index++] = stackTabs[i]; } } return index; }
Example 2
Source File: StackLayout.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Extracts the tabs from a stack and append them into a list. * @param stack The stack that contains the tabs. * @param outList The output list where will be the tabs from the stack. * @param index The current number of item in the outList. * @return The updated index incremented by the number of tabs in the stack. */ private static int addAllTabs(Stack stack, StackTab[] outList, int index) { StackTab[] stackTabs = stack.getTabs(); if (stackTabs != null) { for (int i = 0; i < stackTabs.length; ++i) { outList[index++] = stackTabs[i]; } } return index; }
Example 3
Source File: StackLayout.java From 365browser with Apache License 2.0 | 5 votes |
/** * Extracts the tabs from a stack and append them into a list. * @param stack The stack that contains the tabs. * @param outList The output list where will be the tabs from the stack. * @param index The current number of item in the outList. * @return The updated index incremented by the number of tabs in the stack. */ private static int addAllTabs(Stack stack, StackTab[] outList, int index) { StackTab[] stackTabs = stack.getTabs(); if (stackTabs != null) { for (int i = 0; i < stackTabs.length; ++i) { outList[index++] = stackTabs[i]; } } return index; }