OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 /** | 32 /** |
33 * @constructor | 33 * @constructor |
34 * @extends {WebInspector.Panel} | 34 * @extends {WebInspector.Panel} |
35 * @implements {WebInspector.TimelineModeViewDelegate} | 35 * @implements {WebInspector.TimelineModeViewDelegate} |
36 * @implements {WebInspector.Searchable} | 36 * @implements {WebInspector.Searchable} |
37 */ | 37 */ |
38 WebInspector.TimelinePanel = function() | 38 WebInspector.TimelinePanel = function() |
39 { | 39 { |
40 WebInspector.Panel.call(this, "timeline"); | 40 WebInspector.Panel.call(this, "timeline"); |
41 this.registerRequiredCSS("timelinePanel.css"); | 41 this.registerRequiredCSS("timelinePanel.css"); |
42 this.registerRequiredCSS("layersPanel.css"); | |
43 this.registerRequiredCSS("filter.css"); | 42 this.registerRequiredCSS("filter.css"); |
44 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f
alse); | 43 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f
alse); |
45 | 44 |
46 this._detailsLinkifier = new WebInspector.Linkifier(); | 45 this._detailsLinkifier = new WebInspector.Linkifier(); |
47 this._windowStartTime = 0; | 46 this._windowStartTime = 0; |
48 this._windowEndTime = Infinity; | 47 this._windowEndTime = Infinity; |
49 | 48 |
50 // Create model. | 49 // Create model. |
51 if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) { | 50 if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) { |
52 this._tracingManager = new WebInspector.TracingManager(); | 51 this._tracingManager = new WebInspector.TracingManager(); |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 | 1455 |
1457 WebInspector.TimelinePanelFactory.prototype = { | 1456 WebInspector.TimelinePanelFactory.prototype = { |
1458 /** | 1457 /** |
1459 * @return {!WebInspector.Panel} | 1458 * @return {!WebInspector.Panel} |
1460 */ | 1459 */ |
1461 createPanel: function() | 1460 createPanel: function() |
1462 { | 1461 { |
1463 return WebInspector.TimelinePanel._instance(); | 1462 return WebInspector.TimelinePanel._instance(); |
1464 } | 1463 } |
1465 } | 1464 } |
OLD | NEW |