1<!DOCTYPE html> 2<!-- 3Copyright (c) 2013 The Chromium Authors. All rights reserved. 4Use of this source code is governed by a BSD-style license that can be 5found in the LICENSE file. 6--> 7 8<link rel="stylesheet" href="/tracing/ui/tracks/spacing_track.css"> 9 10<link rel="import" href="/tracing/ui/base/heading.html"> 11<link rel="import" href="/tracing/ui/tracks/track.html"> 12 13<script> 14'use strict'; 15 16tr.exportTo('tr.ui.tracks', function() { 17 /** 18 * A track used to provide whitespace between the tracks above and below it. 19 * 20 * @constructor 21 * @extends {tr.ui.tracks.Track} 22 */ 23 var SpacingTrack = tr.ui.b.define('spacing-track', tr.ui.tracks.Track); 24 25 SpacingTrack.prototype = { 26 __proto__: tr.ui.tracks.Track.prototype, 27 28 decorate: function(viewport) { 29 tr.ui.tracks.Track.prototype.decorate.call(this, viewport); 30 this.classList.add('spacing-track'); 31 32 this.heading_ = document.createElement('tr-ui-heading'); 33 this.appendChild(this.heading_); 34 }, 35 36 addAllEventsMatchingFilterToSelection: function(filter, selection) { 37 } 38 }; 39 40 return { 41 SpacingTrack: SpacingTrack 42 }; 43}); 44</script> 45 46