| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.chrome.browser.contextualsearch.gesture; | |
| 6 | |
| 7 import org.chromium.content_public.browser.WebContents; | |
| 8 | |
| 9 /** | |
| 10 * Provides the host interface for Search Gestures, which can create Search Acti
ons. | |
| 11 * When a gesture is recognized that it should trigger a search, this interface
is used | |
| 12 * to communicate back to the host | |
| 13 * This is part of the 2016-refactoring (crbug.com/624609, go/cs-refactoring-201
6). | |
| 14 */ | |
| 15 public interface SearchGestureHost { | |
| 16 /** | |
| 17 * @return the {@link WebContents} for the current base tab. | |
| 18 */ | |
| 19 WebContents getTabWebContents(); | |
| 20 | |
| 21 /** | |
| 22 * Tells the host that the current gesture should be dismissed because proce
ssing is complete. | |
| 23 */ | |
| 24 void dismissGesture(); | |
| 25 } | |
| OLD | NEW |