Chromium Code Reviews| 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) {} |
| +} |