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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/gesture/SearchGestureHost.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: Removed unused code and consolidated two functions, updated comments. 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 side-by-side diff with in-line comments
Download patch
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..8a7bba1cc3bfa42d2fdceb2f3628d17b435149bb
--- /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;
+
+/**
+ * Provides the host interface for Search Gestures, which can create Search Actions.
+ * 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();
+}

Powered by Google App Engine
This is Rietveld 408576698