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

Unified Diff: Source/devtools/front_end/ConsoleView.js

Issue 214693005: DevTools: [Console] Display timestamps when the Console timestamps setting is re-enabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: Source/devtools/front_end/ConsoleView.js
diff --git a/Source/devtools/front_end/ConsoleView.js b/Source/devtools/front_end/ConsoleView.js
index 5f772d66a8d0a81a030ff6157bcdd59f70f6c63c..f61f842719ccee1c993661d424f2fa7c4c216836 100644
--- a/Source/devtools/front_end/ConsoleView.js
+++ b/Source/devtools/front_end/ConsoleView.js
@@ -125,6 +125,7 @@ WebInspector.ConsoleView = function(hideContextSelector)
this.messagesElement.insertBefore(this._filterStatusMessageElement, this.topGroup.element);
this._updateFilterStatus();
+ WebInspector.settings.consoleTimestampsEnabled.addChangeListener(this._consoleTimestampsSettingChanged, this);
}
WebInspector.ConsoleView.prototype = {
@@ -161,6 +162,14 @@ WebInspector.ConsoleView.prototype = {
},
+ _consoleTimestampsSettingChanged: function(event)
+ {
+ var enabled = /** @type {boolean} */ (event.data);
+ this._messageToViewMessage.values().forEach(function(viewMessage) {
+ viewMessage.updateTimestamp(enabled);
+ })
+ },
+
/**
* @return {!Element}
*/
« no previous file with comments | « LayoutTests/inspector/console/console-timestamp.html ('k') | Source/devtools/front_end/ConsoleViewMessage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698