OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 /** | 7 /** |
8 * Heuristic for Tap suppression near the top of the content view area. | 8 * Heuristic for Tap suppression near the top of the content view area. |
9 * Handles logging of results seen and the condition state. | 9 * Handles logging of results seen and the condition state. |
10 */ | 10 */ |
(...skipping 30 matching lines...) Expand all Loading... |
41 @Override | 41 @Override |
42 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA
ctivatedByTap) { | 42 protected void logResultsSeen(boolean wasSearchContentViewSeen, boolean wasA
ctivatedByTap) { |
43 if (wasActivatedByTap) { | 43 if (wasActivatedByTap) { |
44 ContextualSearchUma.logScreenTopTapLocation( | 44 ContextualSearchUma.logScreenTopTapLocation( |
45 wasSearchContentViewSeen, wasActivatedByTap, mYDp); | 45 wasSearchContentViewSeen, wasActivatedByTap, mYDp); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 @Override | 49 @Override |
50 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger)
{ | 50 protected void logRankerTapSuppression(ContextualSearchRankerLogger logger)
{ |
51 logger.log(ContextualSearchRankerLogger.Feature.SCREEN_TOP_DPS, mYDp); | 51 logger.logFeature(ContextualSearchRankerLogger.Feature.SCREEN_TOP_DPS, m
YDp); |
52 } | 52 } |
53 | 53 |
54 // TODO(twellington): Define a default value to use when determining if the
condition is | 54 // TODO(twellington): Define a default value to use when determining if the
condition is |
55 // satisfied for logging. | 55 // satisfied for logging. |
56 } | 56 } |
OLD | NEW |