| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @constructor | 8 * @constructor |
| 9 * @implements {WebInspector.TimelineModeView} | 9 * @implements {WebInspector.TimelineModeView} |
| 10 * @implements {WebInspector.FlameChartDelegate} | 10 * @implements {WebInspector.FlameChartDelegate} |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 * @return {boolean} | 356 * @return {boolean} |
| 357 */ | 357 */ |
| 358 canJumpToEntry: function(entryIndex) | 358 canJumpToEntry: function(entryIndex) |
| 359 { | 359 { |
| 360 var record = this._records[entryIndex]; | 360 var record = this._records[entryIndex]; |
| 361 return record.phase === WebInspector.TracingModel.Phase.SnapshotObject; | 361 return record.phase === WebInspector.TracingModel.Phase.SnapshotObject; |
| 362 }, | 362 }, |
| 363 | 363 |
| 364 /** | 364 /** |
| 365 * @param {number} entryIndex | 365 * @param {number} entryIndex |
| 366 * @return {!string} | 366 * @return {string} |
| 367 */ | 367 */ |
| 368 entryColor: function(entryIndex) | 368 entryColor: function(entryIndex) |
| 369 { | 369 { |
| 370 var record = this._records[entryIndex]; | 370 var record = this._records[entryIndex]; |
| 371 if (record.phase === WebInspector.TracingModel.Phase.SnapshotObject) | 371 if (record.phase === WebInspector.TracingModel.Phase.SnapshotObject) |
| 372 return "rgb(20, 150, 20)"; | 372 return "rgb(20, 150, 20)"; |
| 373 if (record === this._processHeaderRecord) | 373 if (record === this._processHeaderRecord) |
| 374 return "#555"; | 374 return "#555"; |
| 375 if (record === this._threadHeaderRecord) | 375 if (record === this._threadHeaderRecord) |
| 376 return "#777"; | 376 return "#777"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 /** | 420 /** |
| 421 * @return {number} | 421 * @return {number} |
| 422 */ | 422 */ |
| 423 paddingLeft: function() | 423 paddingLeft: function() |
| 424 { | 424 { |
| 425 return 0; | 425 return 0; |
| 426 }, | 426 }, |
| 427 | 427 |
| 428 /** | 428 /** |
| 429 * @param {number} entryIndex | 429 * @param {number} entryIndex |
| 430 * @return {!string} | 430 * @return {string} |
| 431 */ | 431 */ |
| 432 textColor: function(entryIndex) | 432 textColor: function(entryIndex) |
| 433 { | 433 { |
| 434 return "white"; | 434 return "white"; |
| 435 }, | 435 }, |
| 436 | 436 |
| 437 /** | 437 /** |
| 438 * @param {string} title | 438 * @param {string} title |
| 439 * @param {!WebInspector.TracingModel.Event} record | 439 * @param {!WebInspector.TracingModel.Event} record |
| 440 */ | 440 */ |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 /** | 547 /** |
| 548 * @param {string} string | 548 * @param {string} string |
| 549 * @return {string} | 549 * @return {string} |
| 550 */ | 550 */ |
| 551 colorForString: function(string) | 551 colorForString: function(string) |
| 552 { | 552 { |
| 553 var hash = WebInspector.TraceViewPalette._stringHash(string); | 553 var hash = WebInspector.TraceViewPalette._stringHash(string); |
| 554 return this._palette[hash % this._palette.length]; | 554 return this._palette[hash % this._palette.length]; |
| 555 } | 555 } |
| 556 }; | 556 }; |
| OLD | NEW |