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

Side by Side Diff: Source/devtools/front_end/extensions/ExtensionPanel.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 * @constructor 111 * @constructor
112 * @param {!WebInspector.ExtensionServer} server 112 * @param {!WebInspector.ExtensionServer} server
113 * @param {string} id 113 * @param {string} id
114 * @param {string} iconURL 114 * @param {string} iconURL
115 * @param {string=} tooltip 115 * @param {string=} tooltip
116 * @param {boolean=} disabled 116 * @param {boolean=} disabled
117 */ 117 */
118 WebInspector.ExtensionButton = function(server, id, iconURL, tooltip, disabled) 118 WebInspector.ExtensionButton = function(server, id, iconURL, tooltip, disabled)
119 { 119 {
120 this._id = id; 120 this._id = id;
121 this.element = document.createElement("button"); 121 this.element = createElement("button");
122 this.element.className = "status-bar-item extension"; 122 this.element.className = "status-bar-item extension";
123 this.element.addEventListener("click", server.notifyButtonClicked.bind(serve r, this._id), false); 123 this.element.addEventListener("click", server.notifyButtonClicked.bind(serve r, this._id), false);
124 this.update(iconURL, tooltip, disabled); 124 this.update(iconURL, tooltip, disabled);
125 } 125 }
126 126
127 WebInspector.ExtensionButton.prototype = { 127 WebInspector.ExtensionButton.prototype = {
128 /** 128 /**
129 * @param {string} iconURL 129 * @param {string} iconURL
130 * @param {string=} tooltip 130 * @param {string=} tooltip
131 * @param {boolean=} disabled 131 * @param {boolean=} disabled
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 if (!title) 252 if (!title)
253 section.headerElement.classList.add("hidden"); 253 section.headerElement.classList.add("hidden");
254 section.expanded = true; 254 section.expanded = true;
255 section.editable = false; 255 section.editable = false;
256 this._objectPropertiesView.element.appendChild(section.element); 256 this._objectPropertiesView.element.appendChild(section.element);
257 callback(); 257 callback();
258 }, 258 },
259 259
260 __proto__: WebInspector.SidebarPane.prototype 260 __proto__: WebInspector.SidebarPane.prototype
261 } 261 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698