OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.chrome.browser.contextualsearch.action; | |
6 | |
7 /** | |
8 * Listens to notifications sent by the {@link SearchAction} class. | |
9 * This is part of the 2016-refactoring (crbug.com/624609, go/cs-refactoring-201
6). | |
10 */ | |
11 public class SearchActionListener { | |
12 /** | |
13 * Indicates that the Contextual Search Context, which includes the selected
word | |
14 * and surrounding text, is ready to be accessed. | |
15 * @param action The {@link SearchAction} whose context is ready. | |
16 */ | |
17 protected void onContextReady(SearchAction action) {} | |
18 | |
19 /** | |
20 * Indicates that the {@code SearchAction} has been accepted (not suppressed
). | |
21 * @param action The {@link SearchAction} that has been accepted. | |
22 */ | |
23 protected void onActionAccepted(SearchAction action) {} | |
24 | |
25 /** | |
26 * Indicates that the {@code SearchAction} has been suppressed (not accepted
). | |
27 * @param action The {@link SearchAction} that has been suppressed. | |
28 */ | |
29 protected void onActionSuppressed(SearchAction action) {} | |
30 | |
31 /** | |
32 * Indicates that the {@code SearchAction} has ended. | |
33 * @param action The {@link SearchAction} that has ended. | |
34 */ | |
35 protected void onActionEnded(SearchAction action) {} | |
36 } | |
OLD | NEW |