Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4174)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java

Issue 2703473002: [TTS] Extract tapped text before showing UI. (Closed)
Patch Set: Minor update. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java
index 40892f4e09cee2e2f09562f905b67cfa5e54f63e..df375f5b583c310beed4c68870dd8c91585a2a26 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchSelectionHandler.java
@@ -31,7 +31,7 @@ interface ContextualSearchSelectionHandler {
* Handle a new selection of the given type, created at the given x,y position.
*/
public void handleSelection(String selection, boolean selectionValid, SelectionType type,
- float x, float y);
+ float x, float y, long selectionStartTimeNanoseconds);
/**
* Handle a modification to the selection, done at the given x,y position.
@@ -61,6 +61,11 @@ interface ContextualSearchSelectionHandler {
public void handleSuppressedTap();
/**
+ * Handle Tap gesture that has not been suppressed by showing the Tap Search UX.
+ */
+ public void handleNonSuppressedTap();
+
+ /**
* Handle updating metrics to reflect that a Tap gesture <i>would</i> be suppressed
* for the given heuristics.
* @param tapHeuristics The set of heuristics that would suppress the Tap.

Powered by Google App Engine
This is Rietveld 408576698