Java源码示例:org.chromium.chrome.browser.contextmenu.ChromeContextMenuPopulator
示例1
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.CUSTOM_TAB_MODE);
}
示例2
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.FULLSCREEN_TAB_MODE);
}
示例3
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.CUSTOM_TAB_MODE);
}
示例4
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.FULLSCREEN_TAB_MODE);
}
示例5
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.CUSTOM_TAB_MODE);
}
示例6
@Override
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.FULLSCREEN_TAB_MODE);
}
示例7
/**
* Creates the {@link ContextMenuPopulator} the tab will be initialized with.
* @param tab The associated {@link Tab}.
* @return The {@link ContextMenuPopulator} to be used for this tab.
*/
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.NORMAL_MODE);
}
示例8
/**
* Creates the {@link ContextMenuPopulator} the tab will be initialized with.
* @param tab The associated {@link Tab}.
* @return The {@link ContextMenuPopulator} to be used for this tab.
*/
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.NORMAL_MODE);
}
示例9
/**
* Creates the {@link ContextMenuPopulator} the tab will be initialized with.
* @param tab The associated {@link Tab}.
* @return The {@link ContextMenuPopulator} to be used for this tab.
*/
public ContextMenuPopulator createContextMenuPopulator(Tab tab) {
return new ChromeContextMenuPopulator(new TabContextMenuItemDelegate(tab),
ChromeContextMenuPopulator.NORMAL_MODE);
}