| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 5 |
| 6 /** | 6 /** |
| 7 * @fileoverview Defines a result type interface. | 7 * @fileoverview Defines a result type interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 goog.provide('cvox.AbstractResult'); | 10 goog.provide('cvox.AbstractResult'); |
| 11 | 11 |
| 12 goog.require('cvox.SearchUtil'); | 12 goog.require('cvox.SearchUtil'); |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * @constructor | 15 * @constructor |
| 16 */ | 16 */ |
| 17 cvox.AbstractResult = function() { }; | 17 cvox.AbstractResult = function() {}; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Checks the result if it is an unknown result. | 20 * Checks the result if it is an unknown result. |
| 21 * @param {Element} result Result to be checked. | 21 * @param {Element} result Result to be checked. |
| 22 * @return {boolean} Whether or not the element is an unknown result. | 22 * @return {boolean} Whether or not the element is an unknown result. |
| 23 */ | 23 */ |
| 24 cvox.AbstractResult.prototype.isType = function(result) { | 24 cvox.AbstractResult.prototype.isType = function(result) { |
| 25 return false; | 25 return false; |
| 26 }; | 26 }; |
| 27 | 27 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 cvox.AbstractResult.prototype.getURL = cvox.SearchUtil.extractURL; | 42 cvox.AbstractResult.prototype.getURL = cvox.SearchUtil.extractURL; |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * Returns the node to sync to. | 45 * Returns the node to sync to. |
| 46 * @param {Node} result Result. | 46 * @param {Node} result Result. |
| 47 * @return {?Node} Node to sync to. | 47 * @return {?Node} Node to sync to. |
| 48 */ | 48 */ |
| 49 cvox.AbstractResult.prototype.getSyncNode = function(result) { | 49 cvox.AbstractResult.prototype.getSyncNode = function(result) { |
| 50 return result; | 50 return result; |
| 51 }; | 51 }; |
| OLD | NEW |