blob: 47952b327f3372028b64649eadd478df4cf457e5 [file] [log] [blame]
<!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="import" href="/ui/analysis/analysis_sub_view.html">
<link rel="import" href="/ui/analysis/single_event_sub_view.html">
<polymer-element name="tr-ui-a-single-async-slice-sub-view"
extends="tr-ui-a-single-event-sub-view">
<script>
'use strict';
Polymer({
getEventRows_: function(event) {
// TODO(nduca): Figure out if there is a cleaner way to do this.
var rows = this.__proto__.__proto__.getEventRows_(event);
// Put the ID up top.
rows.splice(0, 0, {
name: 'ID',
value: event.id
});
return rows;
},
get relatedEventsToHighlight() {
if (!this.currentSelection_)
return undefined;
return this.currentSelection_[0].associatedEvents;
}
});
</script>
</polymer-element>