| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 this.refresh(); | 130 this.refresh(); |
| 131 }, | 131 }, |
| 132 | 132 |
| 133 _resize: function() | 133 _resize: function() |
| 134 { | 134 { |
| 135 var parentElement = this._canvas.parentElement; | 135 var parentElement = this._canvas.parentElement; |
| 136 this._canvas.width = parentElement.clientWidth * window.devicePixelRati
o; | 136 this._canvas.width = parentElement.clientWidth * window.devicePixelRati
o; |
| 137 this._canvas.height = parentElement.clientHeight * window.devicePixelRat
io; | 137 this._canvas.height = parentElement.clientHeight * window.devicePixelRat
io; |
| 138 var timelinePaddingLeft = 15; | 138 var timelinePaddingLeft = 15; |
| 139 this._calculator.setDisplayWindow(timelinePaddingLeft, this._canvas.widt
h); | 139 this._calculator.setDisplayWindow(this._canvas.width, timelinePaddingLef
t); |
| 140 this.refresh(); | 140 this.refresh(); |
| 141 }, | 141 }, |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * @override | 144 * @override |
| 145 * @param {number} startTime | 145 * @param {number} startTime |
| 146 * @param {number} endTime | 146 * @param {number} endTime |
| 147 */ | 147 */ |
| 148 setWindowTimes: function(startTime, endTime) | 148 setWindowTimes: function(startTime, endTime) |
| 149 { | 149 { |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 }, | 581 }, |
| 582 | 582 |
| 583 _toggleCheckbox: function(event) | 583 _toggleCheckbox: function(event) |
| 584 { | 584 { |
| 585 this.checked = !this.checked; | 585 this.checked = !this.checked; |
| 586 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); | 586 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed
); |
| 587 }, | 587 }, |
| 588 | 588 |
| 589 __proto__: WebInspector.Object.prototype | 589 __proto__: WebInspector.Object.prototype |
| 590 } | 590 } |
| OLD | NEW |