<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="stylesheet" href="/tracing/ui/tracks/spacing_track.css">

<link rel="import" href="/tracing/ui/tracks/track.html">

<script>
'use strict';

tr.exportTo('tr.ui.tracks', function() {
  /**
   * A track used to provide whitespace between the tracks above and below it.
   *
   * @constructor
   * @extends {tr.ui.tracks.Track}
   */
  var SpacingTrack = tr.ui.b.define('spacing-track', tr.ui.tracks.Track);

  SpacingTrack.prototype = {
    __proto__: tr.ui.tracks.Track.prototype,

    decorate: function(viewport) {
      tr.ui.tracks.Track.prototype.decorate.call(this, viewport);
      this.classList.add('spacing-track');
    },

    addAllEventsMatchingFilterToSelection: function(filter, selection) {
    }
  };

  return {
    SpacingTrack: SpacingTrack
  };
});
</script>


<!DOCTYPE html>
<!--
Copyright (c) 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<link rel="stylesheet" href="/tracing/ui/tracks/spacing_track.css">

<link rel="import" href="/tracing/ui/base/heading.html">
<link rel="import" href="/tracing/ui/tracks/track.html">

<script>
'use strict';

tr.exportTo('tr.ui.tracks', function() {
  /**
   * A track used to provide whitespace between the tracks above and below it.
   *
   * @constructor
   * @extends {tr.ui.tracks.Track}
   */
  var SpacingTrack = tr.ui.b.define('spacing-track', tr.ui.tracks.Track);

  SpacingTrack.prototype = {
    __proto__: tr.ui.tracks.Track.prototype,

    decorate: function(viewport) {
      tr.ui.tracks.Track.prototype.decorate.call(this, viewport);
      this.classList.add('spacing-track');

      this.heading_ = document.createElement('tr-ui-heading');
      this.appendChild(this.heading_);
    },

    addAllEventsMatchingFilterToSelection: function(filter, selection) {
    }
  };

  return {
    SpacingTrack: SpacingTrack
  };
});
</script>


Revert "trace viewer: Remove the heading from the spacing track"
Revert "trace viewer: Remove the heading from the spacing track"

This reverts commit 64ae144a61f13e89486f65a15033c130c1342ca3.

TBR=petrcermak@chromium.org
BUG=catapult:#2100

Review URL: https://codereview.chromium.org/1767153002 .
