OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * @param {number} entryIndex | 108 * @param {number} entryIndex |
109 * @return {?Element} | 109 * @return {?Element} |
110 */ | 110 */ |
111 prepareHighlightedEntryInfo(entryIndex) { | 111 prepareHighlightedEntryInfo(entryIndex) { |
112 throw 'Not implemented.'; | 112 throw 'Not implemented.'; |
113 } | 113 } |
114 | 114 |
115 /** | 115 /** |
116 * @override | 116 * @override |
117 * @param {number} entryIndex | 117 * @param {number} entryIndex |
| 118 */ |
| 119 highlightEntry(entryIndex) { |
| 120 } |
| 121 |
| 122 /** |
| 123 * @override |
| 124 * @param {number} entryIndex |
118 * @return {boolean} | 125 * @return {boolean} |
119 */ | 126 */ |
120 canJumpToEntry(entryIndex) { | 127 canJumpToEntry(entryIndex) { |
121 return this._entryNodes[entryIndex].scriptId !== '0'; | 128 return this._entryNodes[entryIndex].scriptId !== '0'; |
122 } | 129 } |
123 | 130 |
124 /** | 131 /** |
125 * @override | 132 * @override |
126 * @param {number} entryIndex | 133 * @param {number} entryIndex |
127 * @return {string} | 134 * @return {string} |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 * @param {number} height | 558 * @param {number} height |
552 */ | 559 */ |
553 _resetCanvas(width, height) { | 560 _resetCanvas(width, height) { |
554 var ratio = window.devicePixelRatio; | 561 var ratio = window.devicePixelRatio; |
555 this._overviewCanvas.width = width * ratio; | 562 this._overviewCanvas.width = width * ratio; |
556 this._overviewCanvas.height = height * ratio; | 563 this._overviewCanvas.height = height * ratio; |
557 this._overviewCanvas.style.width = width + 'px'; | 564 this._overviewCanvas.style.width = width + 'px'; |
558 this._overviewCanvas.style.height = height + 'px'; | 565 this._overviewCanvas.style.height = height + 'px'; |
559 } | 566 } |
560 }; | 567 }; |
OLD | NEW |