Lines Matching refs:hit
202 * Add the item to the left or right of the provided hit, if any, to the
205 * @param {Number} offset Number of slices away from the hit to look.
206 * @param {Selection} selection The selection to add a hit to,
208 * @return {boolean} Whether a hit was found.
211 addItemNearToProvidedHitToSelection: function(hit, offset, selection) {
212 if (hit instanceof tracing.SelectionObjectSnapshotHit) {
213 var index = this.objectSnapshots_.indexOf(hit.objectSnapshot);
219 } else if (hit instanceof tracing.SelectionObjectInstanceHit) {
220 var index = this.objectInstances_.indexOf(hit.objectInstance);
227 throw new Error('Unrecognized hit');