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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 2471243002: DevTools: Consolidate completion code into JavaScriptAutocomplete.js (Closed)
Patch Set: merge Created 4 years, 1 month 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 WebInspector.ArrayGroupingTreeElement._sparseIterationThreshold = 250000; 1241 WebInspector.ArrayGroupingTreeElement._sparseIterationThreshold = 250000;
1242 WebInspector.ArrayGroupingTreeElement._getOwnPropertyNamesThreshold = 500000; 1242 WebInspector.ArrayGroupingTreeElement._getOwnPropertyNamesThreshold = 500000;
1243 1243
1244 1244
1245 /** 1245 /**
1246 * @unrestricted 1246 * @unrestricted
1247 */ 1247 */
1248 WebInspector.ObjectPropertyPrompt = class extends WebInspector.TextPrompt { 1248 WebInspector.ObjectPropertyPrompt = class extends WebInspector.TextPrompt {
1249 constructor() { 1249 constructor() {
1250 super(); 1250 super();
1251 this.initialize(WebInspector.ExecutionContextSelector.completionsForTextProm ptInCurrentContext); 1251 this.initialize(WebInspector.JavaScriptAutocomplete.completionsForTextPrompt InCurrentContext);
1252 this.setSuggestBoxEnabled(true); 1252 this.setSuggestBoxEnabled(true);
1253 } 1253 }
1254 }; 1254 };
1255 1255
1256 1256
1257 WebInspector.ObjectPropertiesSection._functionPrefixSource = /^(?:async\s)?funct ion\*?\s/; 1257 WebInspector.ObjectPropertiesSection._functionPrefixSource = /^(?:async\s)?funct ion\*?\s/;
1258 1258
1259 1259
1260 /** 1260 /**
1261 * @unrestricted 1261 * @unrestricted
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 } 1341 }
1342 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertiesSec tionExpandController._treeOutlineId]; 1342 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertiesSec tionExpandController._treeOutlineId];
1343 result = treeOutlineId + (result ? ':' + result : ''); 1343 result = treeOutlineId + (result ? ':' + result : '');
1344 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cachedPath Symbol] = result; 1344 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cachedPath Symbol] = result;
1345 return result; 1345 return result;
1346 } 1346 }
1347 }; 1347 };
1348 1348
1349 WebInspector.ObjectPropertiesSectionExpandController._cachedPathSymbol = Symbol( 'cachedPath'); 1349 WebInspector.ObjectPropertiesSectionExpandController._cachedPathSymbol = Symbol( 'cachedPath');
1350 WebInspector.ObjectPropertiesSectionExpandController._treeOutlineId = Symbol('tr eeOutlineId'); 1350 WebInspector.ObjectPropertiesSectionExpandController._treeOutlineId = Symbol('tr eeOutlineId');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698