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

Unified Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 1292673002: [DevTools] Group options in network presets select. (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
Index: Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/Source/devtools/front_end/console/ConsoleViewMessage.js b/Source/devtools/front_end/console/ConsoleViewMessage.js
index 36a9d5af1338c2da9a2e312d94b2b454919c7765..6c5b847afc8f36830ab92b11df0ee4c91607ff40 100644
--- a/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -879,6 +879,7 @@ WebInspector.ConsoleViewMessage.prototype = {
if (show && !this.timestampElement) {
this.timestampElement = createElementWithClass("span", "console-timestamp");
+ this.timestampElement.addEventListener("dblclick", revealSetting, false);
this.timestampElement.textContent = (new Date(this._message.timestamp)).toConsoleTime() + " ";
var afterRepeatCountChild = this._repeatCountElement && this._repeatCountElement.nextSibling;
this._formattedMessage.insertBefore(this.timestampElement, this._formattedMessage.firstChild);
@@ -889,6 +890,11 @@ WebInspector.ConsoleViewMessage.prototype = {
this.timestampElement.remove();
delete this.timestampElement;
}
+
+ function revealSetting()
+ {
+ WebInspector.Revealer.reveal(WebInspector.moduleSetting("consoleTimestampsEnabled"));
+ }
},
/**

Powered by Google App Engine
This is Rietveld 408576698