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

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

Issue 2324633002: [DevTools] Turn remote modules into local with debug_devtools. (Closed)
Patch Set: another approach 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 | « no previous file | 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 _modularizeURL: function(resourceName) 779 _modularizeURL: function(resourceName)
780 { 780 {
781 return normalizePath(this._name + "/" + resourceName); 781 return normalizePath(this._name + "/" + resourceName);
782 }, 782 },
783 783
784 /** 784 /**
785 * @return {string|undefined} 785 * @return {string|undefined}
786 */ 786 */
787 _remoteBase: function() 787 _remoteBase: function()
788 { 788 {
789 return this._descriptor.remote && Runtime._remoteBase || undefined; 789 return !Runtime.queryParam("debugFrontend") && this._descriptor.remote & & Runtime._remoteBase || undefined;
790 }, 790 },
791 791
792 /** 792 /**
793 * @param {string} value 793 * @param {string} value
794 * @return {string} 794 * @return {string}
795 */ 795 */
796 substituteURL: function(value) 796 substituteURL: function(value)
797 { 797 {
798 var base = this._remoteBase() || ""; 798 var base = this._remoteBase() || "";
799 return value.replace(/@url\(([^\)]*?)\)/g, convertURL.bind(this)); 799 return value.replace(/@url\(([^\)]*?)\)/g, convertURL.bind(this));
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 { 1125 {
1126 var sourceURL = self.location.href; 1126 var sourceURL = self.location.href;
1127 if (self.location.search) 1127 if (self.location.search)
1128 sourceURL = sourceURL.replace(self.location.search, ""); 1128 sourceURL = sourceURL.replace(self.location.search, "");
1129 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path; 1129 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path;
1130 return "\n/*# sourceURL=" + sourceURL + " */"; 1130 return "\n/*# sourceURL=" + sourceURL + " */";
1131 } 1131 }
1132 1132
1133 /** @type {!Runtime} */ 1133 /** @type {!Runtime} */
1134 var runtime; 1134 var runtime;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698