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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/action/SearchActionListener.java

Issue 2348443002: Revert of [TTS] Gather surrounding text on Tap before any UX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698