OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Populate sidebar | 67 // Populate sidebar |
68 this._infoView = new WebInspector.VBox(); | 68 this._infoView = new WebInspector.VBox(); |
69 this._infoView.element.classList.add("sidebar-tree"); | 69 this._infoView.element.classList.add("sidebar-tree"); |
70 this._infoView.element.createChild("div", "sidebar-tree-section").textConten
t = title; | 70 this._infoView.element.createChild("div", "sidebar-tree-section").textConten
t = title; |
71 this.setSidebarView(this._infoView); | 71 this.setSidebarView(this._infoView); |
72 this._counters = []; | 72 this._counters = []; |
73 this._counterUI = []; | 73 this._counterUI = []; |
74 } | 74 } |
75 | 75 |
76 WebInspector.CountersGraph.prototype = { | 76 WebInspector.CountersGraph.prototype = { |
| 77 /** |
| 78 * @return {?WebInspector.Target} |
| 79 */ |
| 80 target: function() |
| 81 { |
| 82 return this._model.target(); |
| 83 }, |
| 84 |
77 _createCurrentValuesBar: function() | 85 _createCurrentValuesBar: function() |
78 { | 86 { |
79 this._currentValuesBar = this._graphsContainer.element.createChild("div"
); | 87 this._currentValuesBar = this._graphsContainer.element.createChild("div"
); |
80 this._currentValuesBar.id = "counter-values-bar"; | 88 this._currentValuesBar.id = "counter-values-bar"; |
81 }, | 89 }, |
82 | 90 |
83 /** | 91 /** |
84 * @param {string} uiName | 92 * @param {string} uiName |
85 * @param {string} uiValueTemplate | 93 * @param {string} uiValueTemplate |
86 * @param {string} color | 94 * @param {string} color |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 }, | 581 }, |
574 | 582 |
575 _toggleCheckbox: function(event) | 583 _toggleCheckbox: function(event) |
576 { | 584 { |
577 this.checked = !this.checked; | 585 this.checked = !this.checked; |
578 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); | 586 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); |
579 }, | 587 }, |
580 | 588 |
581 __proto__: WebInspector.Object.prototype | 589 __proto__: WebInspector.Object.prototype |
582 } | 590 } |
OLD | NEW |