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

Side by Side Diff: Source/devtools/front_end/ui/FlameChart.js

Issue 731093002: DevTools: Use View.registerRequiredCSS() in View-based web components (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 /** 50 /**
51 * @constructor 51 * @constructor
52 * @extends {WebInspector.HBox} 52 * @extends {WebInspector.HBox}
53 * @param {!WebInspector.FlameChartDataProvider} dataProvider 53 * @param {!WebInspector.FlameChartDataProvider} dataProvider
54 * @param {!WebInspector.FlameChartDelegate} flameChartDelegate 54 * @param {!WebInspector.FlameChartDelegate} flameChartDelegate
55 * @param {boolean} isTopDown 55 * @param {boolean} isTopDown
56 */ 56 */
57 WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown) 57 WebInspector.FlameChart = function(dataProvider, flameChartDelegate, isTopDown)
58 { 58 {
59 WebInspector.HBox.call(this, true); 59 WebInspector.HBox.call(this, true);
60 this.contentElement.appendChild(WebInspector.View.createStyleElement("ui/fla meChart.css")); 60 this.registerRequiredCSS("ui/flameChart.css");
61 this.contentElement.classList.add("flame-chart-main-pane"); 61 this.contentElement.classList.add("flame-chart-main-pane");
62 this._flameChartDelegate = flameChartDelegate; 62 this._flameChartDelegate = flameChartDelegate;
63 this._isTopDown = isTopDown; 63 this._isTopDown = isTopDown;
64 64
65 this._calculator = new WebInspector.FlameChart.Calculator(); 65 this._calculator = new WebInspector.FlameChart.Calculator();
66 66
67 this._canvas = this.contentElement.createChild("canvas"); 67 this._canvas = this.contentElement.createChild("canvas");
68 this._canvas.tabIndex = 1; 68 this._canvas.tabIndex = 1;
69 this.setDefaultFocusedElement(this._canvas); 69 this.setDefaultFocusedElement(this._canvas);
70 this._canvas.addEventListener("mousemove", this._onMouseMove.bind(this), fal se); 70 this._canvas.addEventListener("mousemove", this._onMouseMove.bind(this), fal se);
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 this.update(); 1310 this.update();
1311 }, 1311 },
1312 1312
1313 _enabled: function() 1313 _enabled: function()
1314 { 1314 {
1315 return this._rawTimelineDataLength !== 0; 1315 return this._rawTimelineDataLength !== 0;
1316 }, 1316 },
1317 1317
1318 __proto__: WebInspector.HBox.prototype 1318 __proto__: WebInspector.HBox.prototype
1319 } 1319 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/Spectrum.js ('k') | Source/devtools/front_end/ui/View.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698