| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.contextualsearch; | 5 package org.chromium.chrome.browser.contextualsearch; |
| 6 | 6 |
| 7 import org.chromium.chrome.browser.contextualsearch.ContextualSearchSelectionCon
troller.SelectionType; | 7 import org.chromium.chrome.browser.contextualsearch.ContextualSearchSelectionCon
troller.SelectionType; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Defines the interface between a {@link ContextualSearchSelectionController} a
nd the code that | 10 * Defines the interface between a {@link ContextualSearchSelectionController} a
nd the code that |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 */ | 52 */ |
| 53 public void handleSelectionDismissal(); | 53 public void handleSelectionDismissal(); |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Handle suppression of a Tap gesture. | 56 * Handle suppression of a Tap gesture. |
| 57 */ | 57 */ |
| 58 public void handleSuppressedTap(); | 58 public void handleSuppressedTap(); |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * Handle a Tap gesture that has not been suppressed by showing the Tap Sear
ch UI. | 61 * Handle a Tap gesture that has not been suppressed by showing the Tap Sear
ch UI. |
| 62 * @param tapTimeNanoseconds When the last tap gesture happened, or {@code 0
} if not known. |
| 62 */ | 63 */ |
| 63 public void handleNonSuppressedTap(); | 64 public void handleNonSuppressedTap(long tapTimeNanoseconds); |
| 64 | 65 |
| 65 /** | 66 /** |
| 66 * Handle updating metrics to reflect that a Tap gesture <i>would</i> be sup
pressed | 67 * Handle updating metrics to reflect that a Tap gesture <i>would</i> be sup
pressed |
| 67 * for the given heuristics. | 68 * for the given heuristics. |
| 68 * @param tapHeuristics The set of heuristics that would suppress the Tap. | 69 * @param tapHeuristics The set of heuristics that would suppress the Tap. |
| 69 */ | 70 */ |
| 70 public void handleMetricsForWouldSuppressTap(ContextualSearchHeuristics tapH
euristics); | 71 public void handleMetricsForWouldSuppressTap(ContextualSearchHeuristics tapH
euristics); |
| 71 } | 72 } |
| OLD | NEW |