| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 super(); | 39 super(); |
| 40 this._parsedJSON = parsedJSON; | 40 this._parsedJSON = parsedJSON; |
| 41 this.element.classList.add('json-view'); | 41 this.element.classList.add('json-view'); |
| 42 | 42 |
| 43 /** @type {?UI.SearchableView} */ | 43 /** @type {?UI.SearchableView} */ |
| 44 this._searchableView; | 44 this._searchableView; |
| 45 /** @type {!Components.ObjectPropertiesSection} */ | 45 /** @type {!Components.ObjectPropertiesSection} */ |
| 46 this._treeOutline; | 46 this._treeOutline; |
| 47 /** @type {number} */ | 47 /** @type {number} */ |
| 48 this._currentSearchFocusIndex = 0; | 48 this._currentSearchFocusIndex = 0; |
| 49 /** @type {!Array.<!TreeElement>} */ | 49 /** @type {!Array.<!UI.TreeElement>} */ |
| 50 this._currentSearchTreeElements = []; | 50 this._currentSearchTreeElements = []; |
| 51 /** @type {?RegExp} */ | 51 /** @type {?RegExp} */ |
| 52 this._searchRegex = null; | 52 this._searchRegex = null; |
| 53 } | 53 } |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * @param {!Network.ParsedJSON} parsedJSON | 56 * @param {!Network.ParsedJSON} parsedJSON |
| 57 * @return {!UI.SearchableView} | 57 * @return {!UI.SearchableView} |
| 58 */ | 58 */ |
| 59 static createSearchableView(parsedJSON) { | 59 static createSearchableView(parsedJSON) { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 * @param {*} data | 290 * @param {*} data |
| 291 * @param {string} prefix | 291 * @param {string} prefix |
| 292 * @param {string} suffix | 292 * @param {string} suffix |
| 293 */ | 293 */ |
| 294 constructor(data, prefix, suffix) { | 294 constructor(data, prefix, suffix) { |
| 295 this.data = data; | 295 this.data = data; |
| 296 this.prefix = prefix; | 296 this.prefix = prefix; |
| 297 this.suffix = suffix; | 297 this.suffix = suffix; |
| 298 } | 298 } |
| 299 }; | 299 }; |
| OLD | NEW |