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

Side by Side Diff: Source/devtools/front_end/sdk/ConsoleModel.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Small cleanups - prefer URIs to contentURLs, revert protocol unifications, remove lambdas Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 { 187 {
188 if (!result) 188 if (!result)
189 return; 189 return;
190 190
191 WebInspector.console.showPromise().then(reportUponEvaluation); 191 WebInspector.console.showPromise().then(reportUponEvaluation);
192 function reportUponEvaluation() 192 function reportUponEvaluation()
193 { 193 {
194 target.consoleModel.dispatchEventToListeners(WebInspector.ConsoleMod el.Events.CommandEvaluated, {result: result, wasThrown: wasThrown, text: text, c ommandMessage: commandMessage, exceptionDetails: exceptionDetails}); 194 target.consoleModel.dispatchEventToListeners(WebInspector.ConsoleMod el.Events.CommandEvaluated, {result: result, wasThrown: wasThrown, text: text, c ommandMessage: commandMessage, exceptionDetails: exceptionDetails});
195 } 195 }
196 } 196 }
197 197
198 executionContext.evaluate(text, "console", useCommandLineAPI, false, false, true, printResult); 198 executionContext.evaluate(text, "console", useCommandLineAPI, false, false, true, printResult);
199 199
200 WebInspector.userMetrics.ConsoleEvaluated.record(); 200 WebInspector.userMetrics.ConsoleEvaluated.record();
201 } 201 }
202 202
203 203
204 /** 204 /**
205 * @constructor 205 * @constructor
206 * @param {?WebInspector.Target} target 206 * @param {?WebInspector.Target} target
207 * @param {string} source 207 * @param {string} source
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
591 }, 591 },
592 592
593 __proto__: WebInspector.Object.prototype 593 __proto__: WebInspector.Object.prototype
594 } 594 }
595 595
596 /** 596 /**
597 * @type {!WebInspector.MultitargetConsoleModel} 597 * @type {!WebInspector.MultitargetConsoleModel}
598 */ 598 */
599 WebInspector.multitargetConsoleModel; 599 WebInspector.multitargetConsoleModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/DatabaseQueryView.js ('k') | Source/devtools/front_end/sdk/RuntimeModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698