This source file includes following definitions.
- shouldShowContextMenu
- buildContextMenu
- onItemSelected
package org.chromium.chrome.browser.contextmenu;
import android.content.Context;
import android.view.ContextMenu;
public class ContextMenuPopulatorWrapper implements ContextMenuPopulator {
private final ContextMenuPopulator mPopulator;
public ContextMenuPopulatorWrapper(ContextMenuPopulator populator) {
mPopulator = populator;
}
@Override
public boolean shouldShowContextMenu(ContextMenuParams params) {
return mPopulator.shouldShowContextMenu(params);
}
@Override
public void buildContextMenu(ContextMenu menu, Context context, ContextMenuParams params) {
mPopulator.buildContextMenu(menu, context, params);
}
@Override
public boolean onItemSelected(ContextMenuHelper helper, ContextMenuParams params, int itemId) {
return mPopulator.onItemSelected(helper, params, itemId);
}