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

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

Issue 1707043002: [DevTools] Support CommandLineAPI in snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 if (callback) 185 if (callback)
186 callback(scriptId, exceptionDetails); 186 callback(scriptId, exceptionDetails);
187 } 187 }
188 }, 188 },
189 189
190 /** 190 /**
191 * @param {!RuntimeAgent.ScriptId} scriptId 191 * @param {!RuntimeAgent.ScriptId} scriptId
192 * @param {number} executionContextId 192 * @param {number} executionContextId
193 * @param {string=} objectGroup 193 * @param {string=} objectGroup
194 * @param {boolean=} doNotPauseOnExceptionsAndMuteConsole 194 * @param {boolean=} doNotPauseOnExceptionsAndMuteConsole
195 * @param {boolean=} includeCommandLineAPI
195 * @param {function(?RuntimeAgent.RemoteObject, ?RuntimeAgent.ExceptionDetai ls=)=} callback 196 * @param {function(?RuntimeAgent.RemoteObject, ?RuntimeAgent.ExceptionDetai ls=)=} callback
196 */ 197 */
197 runScript: function(scriptId, executionContextId, objectGroup, doNotPauseOnE xceptionsAndMuteConsole, callback) 198 runScript: function(scriptId, executionContextId, objectGroup, doNotPauseOnE xceptionsAndMuteConsole, includeCommandLineAPI, callback)
198 { 199 {
199 this._agent.runScript(scriptId, executionContextId, objectGroup, doNotPa useOnExceptionsAndMuteConsole, innerCallback); 200 this._agent.runScript(scriptId, executionContextId, objectGroup, doNotPa useOnExceptionsAndMuteConsole, includeCommandLineAPI, innerCallback);
200 201
201 /** 202 /**
202 * @param {?Protocol.Error} error 203 * @param {?Protocol.Error} error
203 * @param {?RuntimeAgent.RemoteObject} result 204 * @param {?RuntimeAgent.RemoteObject} result
204 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails 205 * @param {?RuntimeAgent.ExceptionDetails=} exceptionDetails
205 */ 206 */
206 function innerCallback(error, result, exceptionDetails) 207 function innerCallback(error, result, exceptionDetails)
207 { 208 {
208 if (error) { 209 if (error) {
209 console.error(error); 210 console.error(error);
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 /** 687 /**
687 * @param {string} listenerType 688 * @param {string} listenerType
688 */ 689 */
689 setListenerType: function(listenerType) 690 setListenerType: function(listenerType)
690 { 691 {
691 this._listenerType = listenerType; 692 this._listenerType = listenerType;
692 }, 693 },
693 694
694 __proto__: WebInspector.SDKObject.prototype 695 __proto__: WebInspector.SDKObject.prototype
695 } 696 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698