org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator Java Examples
The following examples show how to use
org.chromium.chrome.browser.tabmodel.TabCreatorManager.TabCreator.
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 | 6 votes |
public TabModelImpl(boolean incognito, TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate, boolean supportUndo) { super(incognito); initializeNative(); mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; mIsUndoSupported = supportUndo; mObservers = new ObserverList<TabModelObserver>(); }
Example #2
Source File: TabModelImpl.java From 365browser with Apache License 2.0 | 6 votes |
public TabModelImpl(boolean incognito, boolean isTabbedActivity, TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate, boolean supportUndo) { super(incognito, isTabbedActivity); initializeNative(); mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; mIsUndoSupported = supportUndo; mObservers = new ObserverList<TabModelObserver>(); mRecentlyClosedBridge = new RecentlyClosedBridge(getProfile()); }
Example #3
Source File: TabModelImpl.java From AndroidChromium with Apache License 2.0 | 6 votes |
public TabModelImpl(boolean incognito, boolean isTabbedActivity, TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate, boolean supportUndo) { super(incognito, isTabbedActivity); initializeNative(); mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; mIsUndoSupported = supportUndo; mObservers = new ObserverList<TabModelObserver>(); mRecentlyClosedBridge = new RecentlyClosedBridge(getProfile()); }
Example #4
Source File: StripLayoutHelper.java From delion with Apache License 2.0 | 5 votes |
/** * Sets the {@link TabModel} that this {@link StripLayoutHelper} will visually represent. * @param model The {@link TabModel} to visually represent. * @param tabCreator The {@link TabCreator}, used to create new tabs. */ public void setTabModel(TabModel model, TabCreator tabCreator) { if (mModel == model) return; mModel = model; mTabCreator = tabCreator; computeAndUpdateTabOrders(false); }
Example #5
Source File: StripLayoutHelper.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Sets the {@link TabModel} that this {@link StripLayoutHelper} will visually represent. * @param model The {@link TabModel} to visually represent. * @param tabCreator The {@link TabCreator}, used to create new tabs. */ public void setTabModel(TabModel model, TabCreator tabCreator) { if (mModel == model) return; mModel = model; mTabCreator = tabCreator; computeAndUpdateTabOrders(false); }
Example #6
Source File: StripLayoutHelper.java From 365browser with Apache License 2.0 | 5 votes |
/** * Sets the {@link TabModel} that this {@link StripLayoutHelper} will visually represent. * @param model The {@link TabModel} to visually represent. * @param tabCreator The {@link TabCreator}, used to create new tabs. */ public void setTabModel(TabModel model, TabCreator tabCreator) { if (mModel == model) return; mModel = model; mTabCreator = tabCreator; computeAndUpdateTabOrders(false); }
Example #7
Source File: TabModelImpl.java From delion with Apache License 2.0 | 4 votes |
@Override protected TabCreator getTabCreator(boolean incognito) { return incognito ? mIncognitoTabCreator : mRegularTabCreator; }
Example #8
Source File: TabModelImpl.java From 365browser with Apache License 2.0 | 4 votes |
@Override protected TabCreator getTabCreator(boolean incognito) { return incognito ? mIncognitoTabCreator : mRegularTabCreator; }
Example #9
Source File: TabModelImpl.java From AndroidChromium with Apache License 2.0 | 4 votes |
@Override protected TabCreator getTabCreator(boolean incognito) { return incognito ? mIncognitoTabCreator : mRegularTabCreator; }
Example #10
Source File: OffTheRecordTabModelImplCreator.java From delion with Apache License 2.0 | 3 votes |
/** * Constructor for an OffTheRecordTabModelImplCreator, used by {@link OffTheRecordTabModel}. * * Creating an instance of this class does not create the Incognito TabModelImpl immediately. * The {@link OffTheRecordTabModel} will use this class to create the real TabModelImpl when it * will actually be used. * * @param regularTabCreator Creates regular tabs. * @param incognitoTabCreator Creates incognito tabs. * @param uma Handles UMA tracking for the model. * @param orderController Determines the order for inserting new Tabs. * @param tabContentManager Manages the display content of the tab. * @param tabSaver Handler for saving tabs. * @param modelDelegate Delegate to handle external dependencies and interactions. */ public OffTheRecordTabModelImplCreator(TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate) { mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; }
Example #11
Source File: IncognitoTabModelImplCreator.java From AndroidChromium with Apache License 2.0 | 3 votes |
/** * Constructor for an IncognitoTabModelImplCreator, used by {@link IncognitoTabModel}. * * Creating an instance of this class does not create the Incognito TabModelImpl immediately. * The {@link IncognitoTabModel} will use this class to create the real TabModelImpl when it * will actually be used. * * @param regularTabCreator Creates regular tabs. * @param incognitoTabCreator Creates incognito tabs. * @param uma Handles UMA tracking for the model. * @param orderController Determines the order for inserting new Tabs. * @param tabContentManager Manages the display content of the tab. * @param tabSaver Handler for saving tabs. * @param modelDelegate Delegate to handle external dependencies and interactions. */ public IncognitoTabModelImplCreator(TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate) { mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; }
Example #12
Source File: IncognitoTabModelImplCreator.java From 365browser with Apache License 2.0 | 3 votes |
/** * Constructor for an IncognitoTabModelImplCreator, used by {@link IncognitoTabModel}. * * Creating an instance of this class does not create the Incognito TabModelImpl immediately. * The {@link IncognitoTabModel} will use this class to create the real TabModelImpl when it * will actually be used. * * @param regularTabCreator Creates regular tabs. * @param incognitoTabCreator Creates incognito tabs. * @param uma Handles UMA tracking for the model. * @param orderController Determines the order for inserting new Tabs. * @param tabContentManager Manages the display content of the tab. * @param tabSaver Handler for saving tabs. * @param modelDelegate Delegate to handle external dependencies and interactions. */ public IncognitoTabModelImplCreator(TabCreator regularTabCreator, TabCreator incognitoTabCreator, TabModelSelectorUma uma, TabModelOrderController orderController, TabContentManager tabContentManager, TabPersistentStore tabSaver, TabModelDelegate modelDelegate) { mRegularTabCreator = regularTabCreator; mIncognitoTabCreator = incognitoTabCreator; mUma = uma; mOrderController = orderController; mTabContentManager = tabContentManager; mTabSaver = tabSaver; mModelDelegate = modelDelegate; }
Example #13
Source File: EmptyBackgroundViewTablet.java From 365browser with Apache License 2.0 | 2 votes |
/** * Sets the {@link TabCreator} that will be used to open the New Tab Page. * @param tabCreator A {@link TabCreator} to open the New Tab Page. */ public void setTabCreator(TabCreator tabCreator) { mTabCreator = tabCreator; }
Example #14
Source File: TabModelJniBridge.java From 365browser with Apache License 2.0 | 2 votes |
/** * Returns a tab creator for this tab model. * @param incognito Whether to return an incognito TabCreator. */ protected abstract TabCreator getTabCreator(boolean incognito);
Example #15
Source File: EmptyBackgroundViewTablet.java From AndroidChromium with Apache License 2.0 | 2 votes |
/** * Sets the {@link TabCreator} that will be used to open the New Tab Page. * @param tabCreator A {@link TabCreator} to open the New Tab Page. */ public void setTabCreator(TabCreator tabCreator) { mTabCreator = tabCreator; }
Example #16
Source File: TabModelJniBridge.java From AndroidChromium with Apache License 2.0 | 2 votes |
/** * Returns a tab creator for this tab model. * @param incognito Whether to return an incognito TabCreator. */ protected abstract TabCreator getTabCreator(boolean incognito);
Example #17
Source File: EmptyBackgroundViewTablet.java From delion with Apache License 2.0 | 2 votes |
/** * Sets the {@link TabCreator} that will be used to open the New Tab Page. * @param tabCreator A {@link TabCreator} to open the New Tab Page. */ public void setTabCreator(TabCreator tabCreator) { mTabCreator = tabCreator; }
Example #18
Source File: TabModelJniBridge.java From delion with Apache License 2.0 | 2 votes |
/** * Returns a tab creator for this tab model. * @param incognito Whether to return an incognito TabCreator. */ protected abstract TabCreator getTabCreator(boolean incognito);