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

Side by Side Diff: Source/devtools/front_end/Linkifier.js

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 this._liveLocations[i].dispose(); 106 this._liveLocations[i].dispose();
107 this._liveLocations = []; 107 this._liveLocations = [];
108 }, 108 },
109 109
110 /** 110 /**
111 * @param {Element} anchor 111 * @param {Element} anchor
112 * @param {WebInspector.UILocation} uiLocation 112 * @param {WebInspector.UILocation} uiLocation
113 */ 113 */
114 _updateAnchor: function(anchor, uiLocation) 114 _updateAnchor: function(anchor, uiLocation)
115 { 115 {
116 anchor.preferredPanel = "scripts"; 116 anchor.preferredPanel = "sources";
117 anchor.href = sanitizeHref(uiLocation.uiSourceCode.originURL()); 117 anchor.href = sanitizeHref(uiLocation.uiSourceCode.originURL());
118 anchor.uiSourceCode = uiLocation.uiSourceCode; 118 anchor.uiSourceCode = uiLocation.uiSourceCode;
119 anchor.lineNumber = uiLocation.lineNumber; 119 anchor.lineNumber = uiLocation.lineNumber;
120 anchor.columnNumber = uiLocation.columnNumber; 120 anchor.columnNumber = uiLocation.columnNumber;
121 this._formatter.formatLiveAnchor(anchor, uiLocation); 121 this._formatter.formatLiveAnchor(anchor, uiLocation);
122 } 122 }
123 } 123 }
124 124
125 /** 125 /**
126 * @constructor 126 * @constructor
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 }, 178 },
179 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype 179 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype
180 } 180 }
181 181
182 /** 182 /**
183 * The maximum number of characters to display in a URL. 183 * The maximum number of characters to display in a URL.
184 * @const 184 * @const
185 * @type {number} 185 * @type {number}
186 */ 186 */
187 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150; 187 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/JavaScriptSourceFrame.js ('k') | Source/devtools/front_end/NavigatorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698