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

Side by Side Diff: Source/devtools/front_end/TimelineFlameChart.js

Issue 212683005: Timeline Trace viewer prototype (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased, extracted model into a file of its own Created 6 years, 8 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/Settings.js ('k') | Source/devtools/front_end/TimelinePanel.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 this._delegate = delegate; 414 this._delegate = delegate;
415 this._model = model; 415 this._model = model;
416 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(model, frameModel); 416 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(model, frameModel);
417 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true, true); 417 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true, true);
418 this._mainView.show(this.element); 418 this._mainView.show(this.element);
419 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this); 419 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this);
420 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected , this._onEntrySelected, this); 420 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected , this._onEntrySelected, this);
421 } 421 }
422 422
423 WebInspector.TimelineFlameChart.prototype = { 423 WebInspector.TimelineFlameChart.prototype = {
424 timelineStarted: function()
425 {
426 },
427
428 timelineStopped: function()
429 {
430 },
431
424 /** 432 /**
425 * @param {number} windowStartTime 433 * @param {number} windowStartTime
426 * @param {number} windowEndTime 434 * @param {number} windowEndTime
427 */ 435 */
428 requestWindowTimes: function(windowStartTime, windowEndTime) 436 requestWindowTimes: function(windowStartTime, windowEndTime)
429 { 437 {
430 this._delegate.requestWindowTimes(windowStartTime, windowEndTime); 438 this._delegate.requestWindowTimes(windowStartTime, windowEndTime);
431 }, 439 },
432 440
433 /** 441 /**
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 */ 535 */
528 _onEntrySelected: function(event) 536 _onEntrySelected: function(event)
529 { 537 {
530 var entryIndex = event.data; 538 var entryIndex = event.data;
531 var record = this._dataProvider._records[entryIndex]; 539 var record = this._dataProvider._records[entryIndex];
532 this._delegate.selectRecord(record); 540 this._delegate.selectRecord(record);
533 }, 541 },
534 542
535 __proto__: WebInspector.VBox.prototype 543 __proto__: WebInspector.VBox.prototype
536 } 544 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Settings.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698