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

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

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 8 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/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/iteration_helpers.html">
9 <link rel="import" href="/tracing/ui/analysis/alert_sub_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/alert_sub_view.html">
10 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html">
(...skipping 28 matching lines...) Expand all
39 get selection() { 39 get selection() {
40 return this.currentSelection_; 40 return this.currentSelection_;
41 }, 41 },
42 42
43 set selection(selection) { 43 set selection(selection) {
44 this.currentSelection_ = selection; 44 this.currentSelection_ = selection;
45 this.$.asv.selection = tr.b.getOnlyElement(selection).associatedAlerts; 45 this.$.asv.selection = tr.b.getOnlyElement(selection).associatedAlerts;
46 }, 46 },
47 47
48 get relatedEventsToHighlight() { 48 get relatedEventsToHighlight() {
49 if (!this.currentSelection_) 49 if (!this.currentSelection_) return undefined;
50 return undefined;
51 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents; 50 return tr.b.getOnlyElement(this.currentSelection_).associatedEvents;
52 } 51 }
53 }); 52 });
54 53
55 tr.ui.analysis.AnalysisSubView.register( 54 tr.ui.analysis.AnalysisSubView.register(
56 'tr-ui-a-single-frame-sub-view', 55 'tr-ui-a-single-frame-sub-view',
57 tr.model.Frame, 56 tr.model.Frame,
58 { 57 {
59 multi: false, 58 multi: false,
60 title: 'Frame', 59 title: 'Frame',
61 }); 60 });
62 </script> 61 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698