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 12 matching lines...) Expand all Loading... | |
23 void onSelectionEvent(int eventType, float posXPix, float posYPix); | 23 void onSelectionEvent(int eventType, float posXPix, float posYPix); |
24 | 24 |
25 /** | 25 /** |
26 * Requests to show the UI for an unhandled tap, if needed. | 26 * Requests to show the UI for an unhandled tap, if needed. |
27 * @param x The x coordinate of the tap. | 27 * @param x The x coordinate of the tap. |
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 * Notifies the SelectionClient that the selection menu has been requested. It returns true if |
34 * the context menu (e.g. that we need a new menu item). In this case an emb edder might want | 34 * the embedder should wait for a response before showing the selection menu . The response can |
35 * to wait for this responce before taking further actions. | 35 * contain information about the selection menu (e.g. that we need a new men u item). |
36 * @param shouldSuggest Whether SelectionClient should suggest and classify or just classify. | |
Donn Denman
2017/05/05 01:23:24
Nit: use @return here.
amaralp
2017/05/05 21:18:31
Done.
| |
36 */ | 37 */ |
37 boolean sendsSelectionPopupUpdates(); | 38 boolean requestSelectionPopupUpdates(boolean shouldSuggest); |
39 | |
40 /** | |
41 * Cancel any outstanding requests the embedder had previously requested usi ng | |
42 * SelectionClient.requestSelectionPopupUpdates(). | |
43 */ | |
44 public void cancelAllRequests(); | |
38 } | 45 } |
OLD | NEW |