| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 entryIndex, context, text, barX, barY, barWidth, barHeight, unclip
pedBarX, this._timeToPixel)) | 653 entryIndex, context, text, barX, barY, barWidth, barHeight, unclip
pedBarX, this._timeToPixel)) |
| 654 continue; | 654 continue; |
| 655 if (!text || !text.length) | 655 if (!text || !text.length) |
| 656 continue; | 656 continue; |
| 657 context.fillStyle = this._dataProvider.textColor(entryIndex); | 657 context.fillStyle = this._dataProvider.textColor(entryIndex); |
| 658 context.fillText(text, barX + textPadding, barY + textBaseHeight); | 658 context.fillText(text, barX + textPadding, barY + textBaseHeight); |
| 659 } | 659 } |
| 660 | 660 |
| 661 context.restore(); | 661 context.restore(); |
| 662 | 662 |
| 663 UI.TimelineGrid.drawCanvasGrid(context, this._calculator, 3); | 663 const headerHeight = 15; |
| 664 UI.TimelineGrid.drawCanvasGrid(context, this._calculator, 3, headerHeight); |
| 664 this._drawMarkers(); | 665 this._drawMarkers(); |
| 665 this._drawGroupHeaders(width, height); | 666 this._drawGroupHeaders(width, height); |
| 666 | 667 |
| 667 this._updateElementPosition(this._highlightElement, this._highlightedEntryIn
dex); | 668 this._updateElementPosition(this._highlightElement, this._highlightedEntryIn
dex); |
| 668 this._updateElementPosition(this._selectedElement, this._selectedEntryIndex)
; | 669 this._updateElementPosition(this._selectedElement, this._selectedEntryIndex)
; |
| 669 this._updateMarkerHighlight(); | 670 this._updateMarkerHighlight(); |
| 670 } | 671 } |
| 671 | 672 |
| 672 /** | 673 /** |
| 673 * @param {number} width | 674 * @param {number} width |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 } | 1492 } |
| 1492 | 1493 |
| 1493 /** | 1494 /** |
| 1494 * @override | 1495 * @override |
| 1495 * @return {number} | 1496 * @return {number} |
| 1496 */ | 1497 */ |
| 1497 boundarySpan() { | 1498 boundarySpan() { |
| 1498 return this._maximumBoundaries - this._minimumBoundaries; | 1499 return this._maximumBoundaries - this._minimumBoundaries; |
| 1499 } | 1500 } |
| 1500 }; | 1501 }; |
| OLD | NEW |