Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileFlameChart.js

Issue 2782953002: DevTools: Make EntryHighlighted an event rather than method on data provider (Closed)
Patch Set: clean up Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
125 * @return {boolean} 118 * @return {boolean}
126 */ 119 */
127 canJumpToEntry(entryIndex) { 120 canJumpToEntry(entryIndex) {
128 return this._entryNodes[entryIndex].scriptId !== '0'; 121 return this._entryNodes[entryIndex].scriptId !== '0';
129 } 122 }
130 123
131 /** 124 /**
132 * @override 125 * @override
133 * @param {number} entryIndex 126 * @param {number} entryIndex
134 * @return {string} 127 * @return {string}
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 * @param {number} height 551 * @param {number} height
559 */ 552 */
560 _resetCanvas(width, height) { 553 _resetCanvas(width, height) {
561 var ratio = window.devicePixelRatio; 554 var ratio = window.devicePixelRatio;
562 this._overviewCanvas.width = width * ratio; 555 this._overviewCanvas.width = width * ratio;
563 this._overviewCanvas.height = height * ratio; 556 this._overviewCanvas.height = height * ratio;
564 this._overviewCanvas.style.width = width + 'px'; 557 this._overviewCanvas.style.width = width + 'px';
565 this._overviewCanvas.style.height = height + 'px'; 558 this._overviewCanvas.style.height = height + 'px';
566 } 559 }
567 }; 560 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698