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

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

Issue 107293005: NetworkPanel: Make "sticky" behavior explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/NetworkPanel.js ('k') | Source/devtools/front_end/inspector.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/StatusBarButton.js
diff --git a/Source/devtools/front_end/StatusBarButton.js b/Source/devtools/front_end/StatusBarButton.js
index 17b4078852c67411c6dfecd5319a279f5b07d60a..41c78f58fdd11f2b9d172e0563a508fdf85e23b8 100644
--- a/Source/devtools/front_end/StatusBarButton.js
+++ b/Source/devtools/front_end/StatusBarButton.js
@@ -497,3 +497,29 @@ WebInspector.StatusBarComboBox.prototype = {
__proto__: WebInspector.StatusBarItem.prototype
}
+
+/**
+ * @constructor
+ * @extends {WebInspector.StatusBarItem}
+ * @param {string} title
+ */
+WebInspector.StatusBarCheckbox = function(title)
+{
+ WebInspector.StatusBarItem.call(this, document.createElement("label"));
+ this.element.classList.add("status-bar-item", "checkbox");
+ this._checkbox = this.element.createChild("input");
+ this._checkbox.type = "checkbox";
+ this.element.createTextChild(title);
+}
+
+WebInspector.StatusBarCheckbox.prototype = {
+ /**
+ * @return {boolean}
+ */
+ checked: function()
+ {
+ return this._checkbox.checked;
+ },
+
+ __proto__: WebInspector.StatusBarItem.prototype
+}
« no previous file with comments | « Source/devtools/front_end/NetworkPanel.js ('k') | Source/devtools/front_end/inspector.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698