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

Side by Side Diff: tracing/tracing/ui/analysis/multi_instant_event_sub_view.html

Issue 2246173002: Move AnalysisSubView to tr.ui.analysis namespace (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> 8 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
9 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html">
10 10
11 <dom-module id='tr-ui-a-multi-instant-event-sub-view'> 11 <dom-module id='tr-ui-a-multi-instant-event-sub-view'>
12 <template> 12 <template>
13 <style> 13 <style>
14 :host { 14 :host {
15 display: block; 15 display: block;
16 } 16 }
17 </style> 17 </style>
18 <div id='content'></div> 18 <div id='content'></div>
19 </template> 19 </template>
20 </dom-module> 20 </dom-module>
21 <script> 21 <script>
22 'use strict'; 22 'use strict';
23 23
24 Polymer({ 24 Polymer({
25 is: 'tr-ui-a-multi-instant-event-sub-view', 25 is: 'tr-ui-a-multi-instant-event-sub-view',
26 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], 26 behaviors: [tr.ui.analysis.AnalysisSubView],
27 27
28 created: function() { 28 created: function() {
29 this.currentSelection_ = undefined; 29 this.currentSelection_ = undefined;
30 }, 30 },
31 31
32 set selection(selection) { 32 set selection(selection) {
33 Polymer.dom(this.$.content).textContent = ''; 33 Polymer.dom(this.$.content).textContent = '';
34 var realView = document.createElement('tr-ui-a-multi-event-sub-view'); 34 var realView = document.createElement('tr-ui-a-multi-event-sub-view');
35 realView.eventsHaveDuration = false; 35 realView.eventsHaveDuration = false;
36 realView.eventsHaveSubRows = false; 36 realView.eventsHaveSubRows = false;
37 37
38 Polymer.dom(this.$.content).appendChild(realView); 38 Polymer.dom(this.$.content).appendChild(realView);
39 realView.setSelectionWithoutErrorChecks(selection); 39 realView.setSelectionWithoutErrorChecks(selection);
40 40
41 this.currentSelection_ = selection; 41 this.currentSelection_ = selection;
42 }, 42 },
43 43
44 get selection() { 44 get selection() {
45 return this.currentSelection_; 45 return this.currentSelection_;
46 } 46 }
47 }); 47 });
48 </script> 48 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/analysis/multi_frame_sub_view.html ('k') | tracing/tracing/ui/analysis/multi_object_sub_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698