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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/SelectionClient.java

Issue 2703643004: [TTS] Add an ACK message to SelectWordAroundCaret. (Closed)
Patch Set: Update the other test in ContextualSearchTapEventTest.java to know about the ACK. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 /** 7 /**
8 * Interface to a content layer client that can process and modify selection tex t. 8 * Interface to a content layer client that can process and modify selection tex t.
9 */ 9 */
10 public interface SelectionClient { 10 public interface SelectionClient {
(...skipping 23 matching lines...) Expand all
34 * @param shouldSuggest Whether SelectionClient should suggest and classify or just classify. 34 * @param shouldSuggest Whether SelectionClient should suggest and classify or just classify.
35 * @return True if embedder should wait for a response before showing select ion menu. 35 * @return True if embedder should wait for a response before showing select ion menu.
36 */ 36 */
37 boolean requestSelectionPopupUpdates(boolean shouldSuggest); 37 boolean requestSelectionPopupUpdates(boolean shouldSuggest);
38 38
39 /** 39 /**
40 * Cancel any outstanding requests the embedder had previously requested usi ng 40 * Cancel any outstanding requests the embedder had previously requested usi ng
41 * SelectionClient.requestSelectionPopupUpdates(). 41 * SelectionClient.requestSelectionPopupUpdates().
42 */ 42 */
43 public void cancelAllRequests(); 43 public void cancelAllRequests();
44
45 /**
46 * Acknowledges that a selectWordAroundCaret action has completed with the g iven result.
47 * @param didSelect Whether a word was actually selected or not.
48 * @param startAdjust The adjustment to the selection start offset needed to select the word.
49 * This is typically a negative number (expressed in terms of number of characters).
50 * @param endAdjust The adjustment to the selection end offset needed to sel ect the word.
51 * This is typically a positive number (expressed in terms of number of characters).
52 */
53 void selectWordAroundCaretAck(boolean didSelect, int startAdjust, int endAdj ust);
44 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698