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

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

Issue 1313443005: DevTools: forward Up/Down keys to profiles sidebar from FlameChart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: new approach Created 5 years, 3 months 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/ui/treeoutline.js ('k') | no next file » | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 this._barHeight = dataProvider.barHeight(); 97 this._barHeight = dataProvider.barHeight();
98 this._barHeightDelta = this._isTopDown ? -this._barHeight : this._barHeight; 98 this._barHeightDelta = this._isTopDown ? -this._barHeight : this._barHeight;
99 this._paddingLeft = this._dataProvider.paddingLeft(); 99 this._paddingLeft = this._dataProvider.paddingLeft();
100 this._markerPadding = 2; 100 this._markerPadding = 2;
101 this._markerRadius = this._barHeight / 2 - this._markerPadding; 101 this._markerRadius = this._barHeight / 2 - this._markerPadding;
102 this._highlightedMarkerIndex = -1; 102 this._highlightedMarkerIndex = -1;
103 this._highlightedEntryIndex = -1; 103 this._highlightedEntryIndex = -1;
104 this._selectedEntryIndex = -1; 104 this._selectedEntryIndex = -1;
105 this._rawTimelineDataLength = 0; 105 this._rawTimelineDataLength = 0;
106 this._textWidth = {}; 106 this._textWidth = {};
107
108 this._lastMouseOffsetX = 0;
107 } 109 }
108 110
109 WebInspector.FlameChart.DividersBarHeight = 18; 111 WebInspector.FlameChart.DividersBarHeight = 18;
110 112
111 WebInspector.FlameChart.MinimalTimeWindowMs = 0.01; 113 WebInspector.FlameChart.MinimalTimeWindowMs = 0.01;
112 114
113 /** 115 /**
114 * @interface 116 * @interface
115 */ 117 */
116 WebInspector.FlameChartDataProvider = function() 118 WebInspector.FlameChartDataProvider = function()
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 this.update(); 1534 this.update();
1533 }, 1535 },
1534 1536
1535 _enabled: function() 1537 _enabled: function()
1536 { 1538 {
1537 return this._rawTimelineDataLength !== 0; 1539 return this._rawTimelineDataLength !== 0;
1538 }, 1540 },
1539 1541
1540 __proto__: WebInspector.HBox.prototype 1542 __proto__: WebInspector.HBox.prototype
1541 } 1543 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/treeoutline.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698