Index: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/gesture/SearchGestureHost.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/gesture/SearchGestureHost.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/gesture/SearchGestureHost.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f60dd3a13923a7018b18842611e3cfd5c5277817 |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/gesture/SearchGestureHost.java |
@@ -0,0 +1,25 @@ |
+// 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.gesture; |
+ |
+import org.chromium.content_public.browser.WebContents; |
+ |
+/** |
+ * Host interface for Search Gestures, which are part of the 2016 refactoring. |
+ * When a gesture is recognized that it should trigger a search, this interface is used |
+ * to communicate back to the host |
+ * This is part of the 2016-refactoring (crbug.com/624609, go/cs-refactoring-2016). |
+ */ |
+public interface SearchGestureHost { |
+ /** |
+ * @return the {@link WebContents} for the current base tab. |
+ */ |
+ WebContents getTabWebContents(); |
+ |
+ /** |
+ * Tells the host that the current gesture should be dismissed because processing is complete. |
+ */ |
+ void dismissGesture(); |
+} |