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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js

Issue 2563383003: DevTools: add extension API to contribute trace events to timeline (Closed)
Patch Set: Review comments + better test Created 4 years 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) 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 this.draw(); 225 this.draw();
226 this._refreshCurrentValues(); 226 this._refreshCurrentValues();
227 } 227 }
228 228
229 /** 229 /**
230 * @override 230 * @override
231 */ 231 */
232 refreshRecords() { 232 refreshRecords() {
233 } 233 }
234 234
235 /**
236 * @override
237 */
238 extensionDataAdded() {
239 }
240
235 _clear() { 241 _clear() {
236 var ctx = this._canvas.getContext('2d'); 242 var ctx = this._canvas.getContext('2d');
237 ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); 243 ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
238 } 244 }
239 245
240 /** 246 /**
241 * @override 247 * @override
242 * @param {?SDK.TracingModel.Event} event 248 * @param {?SDK.TracingModel.Event} event
243 * @param {string=} regex 249 * @param {string=} regex
244 * @param {boolean=} select 250 * @param {boolean=} select
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 /** 601 /**
596 * @override 602 * @override
597 * @return {number} 603 * @return {number}
598 */ 604 */
599 boundarySpan() { 605 boundarySpan() {
600 return this._maximumBoundary - this._minimumBoundary; 606 return this._maximumBoundary - this._minimumBoundary;
601 } 607 }
602 }; 608 };
603 609
604 Timeline.CounterGraphCalculator._minWidth = 5; 610 Timeline.CounterGraphCalculator._minWidth = 5;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698