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

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

Issue 2211353002: [TTS] Gather surrounding text on Tap before any UX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split usage of the Tapped text from the SearchAction into a separate CL. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/action/SearchActionListener.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/action/SearchActionListener.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/action/SearchActionListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..370b5a06d4359cab43d1f642f35cf9f0e5a2dec9
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/action/SearchActionListener.java
@@ -0,0 +1,35 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser.contextualsearch.action;
+
+/**
+ * Notifications sent by the {@link SearchAction} class.
+ * This is part of the 2016-refactoring, see go/cs-refactoring-2016.
+ */
+public class SearchActionListener {
+ /**
+ * Indicates that the Context is ready.
Theresa 2016/08/16 15:41:49 "Context" is a pre-existing Android class. This ne
Donn Denman 2016/08/17 04:35:22 Done.
+ * @param action The {@link SearchAction} whose context is ready.
+ */
+ protected void onContextReady(SearchAction action) {}
+
+ /**
+ * Indicates that the {@code SearchAction} has been accepted (not suppressed).
+ * @param action The {@link SearchAction} that has been accepted.
+ */
+ protected void onActionAccepted(SearchAction action) {}
+
+ /**
+ * Indicates that the {@code SearchAction} has been suppressed (not accepted).
+ * @param action The {@link SearchAction} that has been suppressed.
+ */
+ protected void onActionSuppressed(SearchAction action) {}
+
+ /**
+ * Indicates that the {@code SearchAction} has ended.
+ * @param action The {@link SearchAction} that has ended.
+ */
+ protected void onActionEnded(SearchAction action) {}
+}

Powered by Google App Engine
This is Rietveld 408576698