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

Side by Side 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 unified diff | Download patch
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 /** 385 /**
386 * @param {string} moduleName 386 * @param {string} moduleName
387 * @return {!Promise.<undefined>} 387 * @return {!Promise.<undefined>}
388 */ 388 */
389 loadModulePromise: function(moduleName) 389 loadModulePromise: function(moduleName)
390 { 390 {
391 return this._modulesMap[moduleName]._loadPromise(); 391 return this._modulesMap[moduleName]._loadPromise();
392 }, 392 },
393 393
394 /** 394 /**
395 * @param {string} moduleName
396 * @return {boolean}
397 */
398 moduleIsLoaded: function(moduleName) {
399 return this._modulesMap[moduleName] ? this._modulesMap[moduleName]._load ed : false;
pfeldman 2015/08/13 21:15:45 You should never care whether module is loaded.
wes 2015/08/14 01:25:50 Acknowledged.
400 },
401
402 /**
395 * @param {!Array.<string>} moduleNames 403 * @param {!Array.<string>} moduleNames
396 * @return {!Promise.<!Array.<*>>} 404 * @return {!Promise.<!Array.<*>>}
397 */ 405 */
398 _loadAutoStartModules: function(moduleNames) 406 _loadAutoStartModules: function(moduleNames)
399 { 407 {
400 var promises = []; 408 var promises = [];
401 for (var i = 0; i < moduleNames.length; ++i) { 409 for (var i = 0; i < moduleNames.length; ++i) {
402 if (Runtime.isReleaseMode()) 410 if (Runtime.isReleaseMode())
403 this._modulesMap[moduleNames[i]]._loaded = true; 411 this._modulesMap[moduleNames[i]]._loaded = true;
404 else 412 else
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 // This must be constructed after the query parameters have been parsed. 1076 // This must be constructed after the query parameters have been parsed.
1069 Runtime.experiments = new Runtime.ExperimentsSupport(); 1077 Runtime.experiments = new Runtime.ExperimentsSupport();
1070 1078
1071 /** 1079 /**
1072 * @type {?string} 1080 * @type {?string}
1073 */ 1081 */
1074 Runtime._remoteBase = Runtime.queryParam("remoteBase"); 1082 Runtime._remoteBase = Runtime.queryParam("remoteBase");
1075 1083
1076 /** @type {!Runtime} */ 1084 /** @type {!Runtime} */
1077 var runtime; 1085 var runtime;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698