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

Unified Diff: chrome/browser/resources/net_internals/util.js

Issue 1593009: Add extra views to the new net internals page. This adds tabs along the top f... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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: chrome/browser/resources/net_internals/util.js
===================================================================
--- chrome/browser/resources/net_internals/util.js (revision 43430)
+++ chrome/browser/resources/net_internals/util.js (working copy)
@@ -15,6 +15,17 @@
};
/**
+ * Inherit the prototype methods from one constructor into another.
+ */
+function inherits(childCtor, parentCtor) {
+ function tempCtor() {};
+ tempCtor.prototype = parentCtor.prototype;
+ childCtor.superClass_ = parentCtor.prototype;
+ childCtor.prototype = new tempCtor();
+ childCtor.prototype.constructor = childCtor;
+};
+
+/**
* Sets the width (in pixels) on a DOM node.
*/
function setNodeWidth(node, widthPx) {
@@ -39,6 +50,13 @@
}
/**
+ * Sets the visibility for a DOM node.
+ */
+function setNodeDisplay(node, isVisible) {
+ node.style.display = isVisible ? '' : 'none';
+}
+
+/**
* Adds a node to |parentNode|, of type |tagName|.
*/
function addNode(parentNode, tagName) {
« no previous file with comments | « chrome/browser/resources/net_internals/topmidbottomview.js ('k') | chrome/browser/resources/net_internals/view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698