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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js

Issue 2573673002: DevTools: enable private field checks as a part of compilation. (Closed)
Patch Set: review comments addressed. 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) 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 height() { 501 height() {
502 return this._canvas.height; 502 return this._canvas.height;
503 } 503 }
504 504
505 /** @return {!CanvasRenderingContext2D} */ 505 /** @return {!CanvasRenderingContext2D} */
506 context() { 506 context() {
507 return this._context; 507 return this._context;
508 } 508 }
509 509
510 /** 510 /**
511 * @protected
512 * @return {?UI.TimelineOverviewCalculator}
513 */
514 calculator() {
515 return this._calculator;
516 }
517
518 /**
511 * @override 519 * @override
512 */ 520 */
513 update() { 521 update() {
514 this.resetCanvas(); 522 this.resetCanvas();
515 } 523 }
516 524
517 /** 525 /**
518 * @override 526 * @override
519 */ 527 */
520 dispose() { 528 dispose() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 left: haveRecords && startTime ? Math.min((startTime - absoluteMin) / time Span, 1) : 0, 598 left: haveRecords && startTime ? Math.min((startTime - absoluteMin) / time Span, 1) : 0,
591 right: haveRecords && endTime < Infinity ? (endTime - absoluteMin) / timeS pan : 1 599 right: haveRecords && endTime < Infinity ? (endTime - absoluteMin) / timeS pan : 1
592 }; 600 };
593 } 601 }
594 602
595 resetCanvas() { 603 resetCanvas() {
596 this._canvas.width = this.element.clientWidth * window.devicePixelRatio; 604 this._canvas.width = this.element.clientWidth * window.devicePixelRatio;
597 this._canvas.height = this.element.clientHeight * window.devicePixelRatio; 605 this._canvas.height = this.element.clientHeight * window.devicePixelRatio;
598 } 606 }
599 }; 607 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698