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

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: 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/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();
+}

Powered by Google App Engine
This is Rietveld 408576698