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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
311 ctx.stroke(); | 311 ctx.stroke(); |
312 if (counter._limitValue) { | 312 if (counter._limitValue) { |
313 var limitLineY = Math.round(originY + height - (counter._limitValue - minValue) * yFactor); | 313 var limitLineY = Math.round(originY + height - (counter._limitValue - minValue) * yFactor); |
314 ctx.moveTo(0, limitLineY); | 314 ctx.moveTo(0, limitLineY); |
315 ctx.lineTo(width, limitLineY); | 315 ctx.lineTo(width, limitLineY); |
316 ctx.strokeStyle = counterUI.limitColor; | 316 ctx.strokeStyle = counterUI.limitColor; |
317 ctx.stroke(); | 317 ctx.stroke(); |
318 } | 318 } |
319 ctx.closePath(); | 319 ctx.closePath(); |
320 ctx.restore(); | 320 ctx.restore(); |
321 | |
322 this.graphDrawn(); | |
alph
2014/04/02 08:19:57
You don't need this, just override refresh in Powe
| |
321 }, | 323 }, |
322 | 324 |
325 graphDrawn: function() { }, | |
326 | |
323 __proto__: WebInspector.SplitView.prototype | 327 __proto__: WebInspector.SplitView.prototype |
324 } | 328 } |
325 | 329 |
326 /** | 330 /** |
327 * @constructor | 331 * @constructor |
328 */ | 332 */ |
329 WebInspector.CountersGraph.Counter = function() | 333 WebInspector.CountersGraph.Counter = function() |
330 { | 334 { |
331 this.times = []; | 335 this.times = []; |
332 this.values = []; | 336 this.values = []; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 }, | 551 }, |
548 | 552 |
549 _toggleCheckbox: function(event) | 553 _toggleCheckbox: function(event) |
550 { | 554 { |
551 this.checked = !this.checked; | 555 this.checked = !this.checked; |
552 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed ); | 556 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed ); |
553 }, | 557 }, |
554 | 558 |
555 __proto__: WebInspector.Object.prototype | 559 __proto__: WebInspector.Object.prototype |
556 } | 560 } |
OLD | NEW |