use of org.chromium.chrome.browser.gsa.GSAContextDisplaySelection in project AndroidChromium by JackyAndroid.
the class ContextualSearchManager method onIcingSelectionAvailable.
/**
* Called by native code when a selection is available to share with Icing (for Conversational
* Search).
*/
@CalledByNative
private void onIcingSelectionAvailable(final String encoding, final String surroundingText, int startOffset, int endOffset) {
GSAContextDisplaySelection selection = new GSAContextDisplaySelection(encoding, surroundingText, startOffset, endOffset);
mSearchPanel.setWasSelectionPartOfUrl(ContextualSearchSelectionController.isSelectionPartOfUrl(surroundingText, startOffset, endOffset));
notifyShowContextualSearch(selection);
}
Aggregations