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

Side by Side Diff: Source/devtools/front_end/ui/StatusBarButton.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.Object} 33 * @extends {WebInspector.Object}
34 * @param {string} elementType 34 * @param {string} elementType
35 */ 35 */
36 WebInspector.StatusBarItem = function(elementType) 36 WebInspector.StatusBarItem = function(elementType)
37 { 37 {
38 this.element = document.createElement(elementType); 38 this.element = createElement(elementType);
39 this._enabled = true; 39 this._enabled = true;
40 this._visible = true; 40 this._visible = true;
41 } 41 }
42 42
43 WebInspector.StatusBarItem.prototype = { 43 WebInspector.StatusBarItem.prototype = {
44 /** 44 /**
45 * @param {boolean} value 45 * @param {boolean} value
46 */ 46 */
47 setEnabled: function(value) 47 setEnabled: function(value)
48 { 48 {
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 var options = []; 711 var options = [];
712 for (var index = 0; index < this._states.length; index++) { 712 for (var index = 0; index < this._states.length; index++) {
713 if (this._states[index] !== this.state && this._states[index] !== th is._currentState) 713 if (this._states[index] !== this.state && this._states[index] !== th is._currentState)
714 options.push(this._buttons[index]); 714 options.push(this._buttons[index]);
715 } 715 }
716 return options; 716 return options;
717 }, 717 },
718 718
719 __proto__: WebInspector.StatusBarButton.prototype 719 __proto__: WebInspector.StatusBarButton.prototype
720 } 720 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/SoftContextMenu.js ('k') | Source/devtools/front_end/ui/SuggestBox.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698