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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.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/SelectionPopupController.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
index 96f406a0a7990d61c63e9d2aef47158217b8bf1d..7b4f93c90ee3f977dffe0215a51f07a7b03b0101 100644
--- a/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
+++ b/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
@@ -869,6 +869,12 @@ public class SelectionPopupController extends ActionModeCallbackHelper {
}
}
+ void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust, int endAdjust) {
+ if (mContextualSearchClient != null) {
+ mContextualSearchClient.selectWordAroundCaretAck(didSelect, startAdjust, endAdjust);
+ }
+ }
+
void destroyActionModeAndUnselect() {
mUnselectAllOnDismiss = true;
finishActionMode();

Powered by Google App Engine
This is Rietveld 408576698