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

Unified Diff: Source/devtools/front_end/Runtime.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify override dropdown to apply to console completions & transpile Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/Runtime.js
diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js
index ac6f1a4a521580428dd04c20057240ec8fdfa425..3f1f05d96ad799b82275690d0ab05bf5ad209a4d 100644
--- a/Source/devtools/front_end/Runtime.js
+++ b/Source/devtools/front_end/Runtime.js
@@ -392,6 +392,14 @@ Runtime.prototype = {
},
/**
+ * @param {string} moduleName
+ * @return {boolean}
+ */
+ moduleIsLoaded: function(moduleName) {
+ return this._modulesMap[moduleName] ? this._modulesMap[moduleName]._loaded : false;
pfeldman 2015/08/13 21:15:45 You should never care whether module is loaded.
wes 2015/08/14 01:25:50 Acknowledged.
+ },
+
+ /**
* @param {!Array.<string>} moduleNames
* @return {!Promise.<!Array.<*>>}
*/

Powered by Google App Engine
This is Rietveld 408576698