Search in sources :

Example 1 with GSAContextDisplaySelection

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);
}
Also used : GSAContextDisplaySelection(org.chromium.chrome.browser.gsa.GSAContextDisplaySelection) CalledByNative(org.chromium.base.annotations.CalledByNative)

Aggregations

CalledByNative (org.chromium.base.annotations.CalledByNative)1 GSAContextDisplaySelection (org.chromium.chrome.browser.gsa.GSAContextDisplaySelection)1