OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 * @param y The y coordinate of the tap. | 28 * @param y The y coordinate of the tap. |
29 */ | 29 */ |
30 void showUnhandledTapUIIfNeeded(int x, int y); | 30 void showUnhandledTapUIIfNeeded(int x, int y); |
31 | 31 |
32 /** | 32 /** |
33 * Returns true if the SelectionClient sends responces that can contain info
rmation about | 33 * Returns true if the SelectionClient sends responces that can contain info
rmation about |
34 * the context menu (e.g. that we need a new menu item). In this case an emb
edder might want | 34 * the context menu (e.g. that we need a new menu item). In this case an emb
edder might want |
35 * to wait for this responce before taking further actions. | 35 * to wait for this responce before taking further actions. |
36 */ | 36 */ |
37 boolean sendsSelectionPopupUpdates(); | 37 boolean sendsSelectionPopupUpdates(); |
| 38 |
| 39 /** |
| 40 * Acknowledges that a selectWordAroundCaret action has completed with the g
iven result. |
| 41 * @param didSelect Whether a word was actually selected or not. |
| 42 * @param startAdjust The adjustment to the selection start offset needed to
select the word. |
| 43 * This is typically a negative number (expressed in terms of number
of characters). |
| 44 * @param endAdjust The adjustment to the selection end offset needed to sel
ect the word. |
| 45 * This is typically a positive number (expressed in terms of number
of characters). |
| 46 */ |
| 47 void selectWordAroundCaretAck(boolean didSelect, int startAdjust, int endAdj
ust); |
38 } | 48 } |
OLD | NEW |