blob: 677c5f6a1b053dcae861f98f5f1e6855be38c88b [file] [log] [blame]
Chris Craikb122baf2015-03-05 13:58:42 -08001<!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="import" href="/core/analysis/analysis_sub_view.html">
Chris Craikbeca7ae2015-04-07 13:29:55 -07009<link rel="import" href="/core/analysis/single_event_sub_view.html">
Chris Craikb122baf2015-03-05 13:58:42 -080010
11<polymer-element name="tv-c-single-flow-event-sub-view"
12 extends="tracing-analysis-sub-view">
13 <template>
14 <style>
15 :host {
16 display: block;
17 }
18 </style>
19 <div id='content'></div>
20 </template>
21
22 <script>
23 'use strict';
24
25 Polymer({
26 created: function() {
27 this.currentSelection_ = undefined;
28 },
29
30 set selection(selection) {
31 this.$.content.textContent = '';
32
Chris Craikbeca7ae2015-04-07 13:29:55 -070033 var realView = document.createElement('tv-c-a-single-event-sub-view');
Chris Craikb122baf2015-03-05 13:58:42 -080034 realView.setSelectionWithoutErrorChecks(selection);
35 this.$.content.appendChild(realView);
36
37 this.currentSelection_ = selection;
38 },
39
40 get selection() {
41 return this.currentSelection_;
42 }
43 });
44 </script>
45</polymer>