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

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

Issue 1273363002: Devtools UI: Show multiple shortcuts, show more shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebInspector.ConsoleModel.clearConsole = function()
204 {
205 var targets = WebInspector.targetManager.targets();
206 for (var i = 0; i < targets.length; ++i)
207 targets[i].consoleModel.requestClearMessages();
208 }
209
203 210
204 /** 211 /**
205 * @constructor 212 * @constructor
206 * @param {?WebInspector.Target} target 213 * @param {?WebInspector.Target} target
207 * @param {string} source 214 * @param {string} source
208 * @param {?string} level 215 * @param {?string} level
209 * @param {string} messageText 216 * @param {string} messageText
210 * @param {string=} type 217 * @param {string=} type
211 * @param {?string=} url 218 * @param {?string=} url
212 * @param {number=} line 219 * @param {number=} line
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data); 597 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv aluated, event.data);
591 }, 598 },
592 599
593 __proto__: WebInspector.Object.prototype 600 __proto__: WebInspector.Object.prototype
594 } 601 }
595 602
596 /** 603 /**
597 * @type {!WebInspector.MultitargetConsoleModel} 604 * @type {!WebInspector.MultitargetConsoleModel}
598 */ 605 */
599 WebInspector.multitargetConsoleModel; 606 WebInspector.multitargetConsoleModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/module.json ('k') | Source/devtools/front_end/settings/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698