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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js

Issue 2297443002: DevTools: show extension name in console execution context selector. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 { 489 {
490 WebInspector.SDKObject.call(this, target); 490 WebInspector.SDKObject.call(this, target);
491 this.id = id; 491 this.id = id;
492 this.name = name; 492 this.name = name;
493 this.origin = origin; 493 this.origin = origin;
494 this.isDefault = isDefault; 494 this.isDefault = isDefault;
495 this.runtimeModel = target.runtimeModel; 495 this.runtimeModel = target.runtimeModel;
496 this.debuggerModel = WebInspector.DebuggerModel.fromTarget(target); 496 this.debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
497 this.frameId = frameId; 497 this.frameId = frameId;
498 498
499 this._label = name;
499 var parsedUrl = origin.asParsedURL(); 500 var parsedUrl = origin.asParsedURL();
500 this._label = parsedUrl ? parsedUrl.lastPathComponentWithFragment() : name; 501 if (!this._label && parsedUrl)
502 this._label = parsedUrl.lastPathComponentWithFragment();
501 } 503 }
502 504
503 /** 505 /**
504 * @param {!WebInspector.ExecutionContext} a 506 * @param {!WebInspector.ExecutionContext} a
505 * @param {!WebInspector.ExecutionContext} b 507 * @param {!WebInspector.ExecutionContext} b
506 * @return {number} 508 * @return {number}
507 */ 509 */
508 WebInspector.ExecutionContext.comparator = function(a, b) 510 WebInspector.ExecutionContext.comparator = function(a, b)
509 { 511 {
510 /** 512 /**
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 /** 1014 /**
1013 * @return {boolean} 1015 * @return {boolean}
1014 */ 1016 */
1015 isNormalListenerType: function() 1017 isNormalListenerType: function()
1016 { 1018 {
1017 return this._listenerType === "normal"; 1019 return this._listenerType === "normal";
1018 }, 1020 },
1019 1021
1020 __proto__: WebInspector.SDKObject.prototype 1022 __proto__: WebInspector.SDKObject.prototype
1021 } 1023 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698