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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/extensions/ExtensionServer.js

Issue 2637443004: DevTools: bring back old landing page in timeline/performance. (Closed)
Patch Set: review comments addressed 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 /** 571 /**
572 * @param {!Object} message 572 * @param {!Object} message
573 * @param {!MessagePort} port 573 * @param {!MessagePort} port
574 */ 574 */
575 _onAddTraceProvider(message, port) { 575 _onAddTraceProvider(message, port) {
576 var provider = new Extensions.ExtensionTraceProvider( 576 var provider = new Extensions.ExtensionTraceProvider(
577 port._extensionOrigin, message.id, message.categoryName, message.categor yTooltip); 577 port._extensionOrigin, message.id, message.categoryName, message.categor yTooltip);
578 this._clientObjects[message.id] = provider; 578 this._clientObjects[message.id] = provider;
579 this._traceProviders.push(provider); 579 this._traceProviders.push(provider);
580 this.dispatchEventToListeners(Extensions.ExtensionServer.Events.TraceProvide rAdded); 580 this.dispatchEventToListeners(Extensions.ExtensionServer.Events.TraceProvide rAdded, provider);
581 } 581 }
582 582
583 /** 583 /**
584 * @return {!Array<!Extensions.ExtensionTraceProvider>} 584 * @return {!Array<!Extensions.ExtensionTraceProvider>}
585 */ 585 */
586 traceProviders() { 586 traceProviders() {
587 return this._traceProviders; 587 return this._traceProviders;
588 } 588 }
589 589
590 /** 590 /**
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 /** 1052 /**
1053 * @typedef {{code: string, description: string, details: !Array.<*>}} 1053 * @typedef {{code: string, description: string, details: !Array.<*>}}
1054 */ 1054 */
1055 Extensions.ExtensionStatus.Record; 1055 Extensions.ExtensionStatus.Record;
1056 1056
1057 Extensions.extensionAPI = {}; 1057 Extensions.extensionAPI = {};
1058 defineCommonExtensionSymbols(Extensions.extensionAPI); 1058 defineCommonExtensionSymbols(Extensions.extensionAPI);
1059 1059
1060 /** @type {!Extensions.ExtensionServer} */ 1060 /** @type {!Extensions.ExtensionServer} */
1061 Extensions.extensionServer; 1061 Extensions.extensionServer;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698