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

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

Issue 2249663003: Revert of [DevTools] Rename entities in js_protocol, remove deprecated ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 }, 263 },
264 264
265 /** 265 /**
266 * @param {!RuntimeAgent.ScriptId} scriptId 266 * @param {!RuntimeAgent.ScriptId} scriptId
267 * @param {!WebInspector.ExecutionContext} executionContext 267 * @param {!WebInspector.ExecutionContext} executionContext
268 * @param {?string=} sourceURL 268 * @param {?string=} sourceURL
269 */ 269 */
270 _runScript: function(scriptId, executionContext, sourceURL) 270 _runScript: function(scriptId, executionContext, sourceURL)
271 { 271 {
272 var target = executionContext.target(); 272 var target = executionContext.target();
273 target.runtimeModel.runScript(scriptId, executionContext.id, "console", /* silent */ false, /* includeCommandLineAPI */ true, /* returnByValue */ false, /* generatePreview */ true, /* awaitPromise */ undefined, runCallback.bind(this , target)); 273 target.runtimeModel.runScript(scriptId, executionContext.id, "console", /* doNotPauseOnExceptionsAndMuteConsole */ false, /* includeCommandLineAPI */ tr ue, /* returnByValue */ false, /* generatePreview */ true, /* awaitPromise */ un defined, runCallback.bind(this, target));
274 274
275 /** 275 /**
276 * @param {!WebInspector.Target} target 276 * @param {!WebInspector.Target} target
277 * @param {?RuntimeAgent.RemoteObject} result 277 * @param {?RuntimeAgent.RemoteObject} result
278 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails 278 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails
279 * @this {WebInspector.ScriptSnippetModel} 279 * @this {WebInspector.ScriptSnippetModel}
280 */ 280 */
281 function runCallback(target, result, exceptionDetails) 281 function runCallback(target, result, exceptionDetails)
282 { 282 {
283 if (!exceptionDetails) 283 if (!exceptionDetails)
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 this._model.deleteScriptSnippet(url); 684 this._model.deleteScriptSnippet(url);
685 }, 685 },
686 686
687 __proto__: WebInspector.ContentProviderBasedProject.prototype 687 __proto__: WebInspector.ContentProviderBasedProject.prototype
688 } 688 }
689 689
690 /** 690 /**
691 * @type {!WebInspector.ScriptSnippetModel} 691 * @type {!WebInspector.ScriptSnippetModel}
692 */ 692 */
693 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect or.workspace); 693 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(WebInspect or.workspace);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698