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

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

Issue 2564613003: Timeline: fix a bunch of references to out-of-file privates (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
index 143b83fc2e77f0b072fee92377fa194a840243ad..9daeb842bb168367b5b9e388bef5391b89cbc328 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/TimelineOverviewPane.js
@@ -492,6 +492,21 @@ UI.TimelineOverviewBase = class extends UI.VBox {
this._context = this._canvas.getContext('2d');
}
+ /** @return {number} */
+ width() {
+ return this._canvas.width;
+ }
+
+ /** @return {number} */
+ height() {
+ return this._canvas.height;
+ }
+
+ /** @return {!CanvasRenderingContext2D} */
+ context() {
+ return this._context;
+ }
+
/**
* @override
*/

Powered by Google App Engine
This is Rietveld 408576698