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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/ConsoleModel.js
diff --git a/Source/devtools/front_end/sdk/ConsoleModel.js b/Source/devtools/front_end/sdk/ConsoleModel.js
index 66dec2279101e10e41486cbbebaedaf41671f608..3194304b0a155832d631b73545c288596e965c83 100644
--- a/Source/devtools/front_end/sdk/ConsoleModel.js
+++ b/Source/devtools/front_end/sdk/ConsoleModel.js
@@ -200,6 +200,13 @@ WebInspector.ConsoleModel.evaluateCommandInConsole = function(executionContext,
WebInspector.userMetrics.ConsoleEvaluated.record();
}
+WebInspector.ConsoleModel.clearConsole = function()
+{
+ var targets = WebInspector.targetManager.targets();
+ for (var i = 0; i < targets.length; ++i)
+ targets[i].consoleModel.requestClearMessages();
+}
+
/**
* @constructor
« 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