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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java

Issue 2703643004: [TTS] Add an ACK message to SelectWordAroundCaret. (Closed)
Patch Set: Clean up the logic in render_view_impl.cc Created 3 years, 10 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: content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java b/content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java
index 96e135c6bd65d4ce23be431b71b645cfd838261f..92730aaa412d8db7c251b6ab0f0fdc7cfe0e8754 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContextualSearchClient.java
@@ -28,4 +28,14 @@ public interface ContextualSearchClient {
* @param y The y coordinate of the tap.
*/
void showUnhandledTapUIIfNeeded(int x, int y);
+
+ /**
+ * Acknowledges that a selectWordAroundCaret action has completed with the give result.
Theresa 2017/02/17 18:36:55 nit: s/give/given
Donn Denman 2017/02/17 19:09:13 Done.
+ * @param didSelect Whether a word was actually selected or not.
+ * @param startAdjust The adjustment to the selection start offset needed to select the word.
+ * This is typically a negative number (expressed in terms of number of characters).
+ * @param endAdjust The adjustment to the selection end offset needed to select the word.
+ * This is typically a positive number (expressed in terms of number of characters).
+ */
+ void selectWordAroundCaretAck(boolean didSelect, int startAdjust, int endAdjust);
}

Powered by Google App Engine
This is Rietveld 408576698