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

Side by Side Diff: tracing/tracing/ui/analysis/multi_frame_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) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 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/model/event_set.html"> 8 <link rel="import" href="/tracing/model/event_set.html">
9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
10 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/multi_event_sub_view.html">
11 11
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 14
15 Polymer({ 15 Polymer({
16 is: 'tr-ui-a-multi-frame-sub-view', 16 is: 'tr-ui-a-multi-frame-sub-view',
17 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], 17 behaviors: [tr.ui.analysis.AnalysisSubView],
18 18
19 created: function() { 19 created: function() {
20 this.currentSelection_ = undefined; 20 this.currentSelection_ = undefined;
21 }, 21 },
22 22
23 set selection(selection) { 23 set selection(selection) {
24 Polymer.dom(this).textContent = ''; 24 Polymer.dom(this).textContent = '';
25 var realView = document.createElement('tr-ui-a-multi-event-sub-view'); 25 var realView = document.createElement('tr-ui-a-multi-event-sub-view');
26 realView.eventsHaveDuration = false; 26 realView.eventsHaveDuration = false;
27 realView.eventsHaveSubRows = false; 27 realView.eventsHaveSubRows = false;
(...skipping 14 matching lines...) Expand all
42 var selection = new tr.model.EventSet(); 42 var selection = new tr.model.EventSet();
43 this.currentSelection_.forEach(function(frameEvent) { 43 this.currentSelection_.forEach(function(frameEvent) {
44 frameEvent.associatedEvents.forEach(function(event) { 44 frameEvent.associatedEvents.forEach(function(event) {
45 selection.push(event); 45 selection.push(event);
46 }); 46 });
47 }); 47 });
48 return selection; 48 return selection;
49 } 49 }
50 }); 50 });
51 </script> 51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698