Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/JSONView.js

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698