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

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

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 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/base/rect.html"> 8 <link rel="import" href="/tracing/base/rect.html">
9 <link rel="import" href="/tracing/base/utils.html"> 9 <link rel="import" href="/tracing/base/utils.html">
10 <link rel="import" href="/tracing/model/event_set.html"> 10 <link rel="import" href="/tracing/model/event_set.html">
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 try { 103 try {
104 object = JSON.parse(object); 104 object = JSON.parse(object);
105 objectReplaced = true; 105 objectReplaced = true;
106 } catch (e) { 106 } catch (e) {
107 } 107 }
108 } 108 }
109 if (!objectReplaced) { 109 if (!objectReplaced) {
110 if (object.indexOf('\n') !== -1) { 110 if (object.indexOf('\n') !== -1) {
111 var lines = object.split('\n'); 111 var lines = object.split('\n');
112 lines.forEach(function(line, i) { 112 lines.forEach(function(line, i) {
113 var text, ioff, ll, ss; 113 var text;
114 var ioff;
115 var ll;
116 var ss;
114 if (i === 0) { 117 if (i === 0) {
115 text = '"' + line; 118 text = '"' + line;
116 ioff = 0; 119 ioff = 0;
117 ll = label; 120 ll = label;
118 ss = ''; 121 ss = '';
119 } else if (i < lines.length - 1) { 122 } else if (i < lines.length - 1) {
120 text = line; 123 text = line;
121 ioff = 1; 124 ioff = 1;
122 ll = ''; 125 ll = '';
123 ss = ''; 126 ss = '';
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 341
339 get object() { 342 get object() {
340 return this.genericObjectView_.object; 343 return this.genericObjectView_.object;
341 }, 344 },
342 345
343 set object(object) { 346 set object(object) {
344 this.genericObjectView_.object = object; 347 this.genericObjectView_.object = object;
345 } 348 }
346 }); 349 });
347 </script> 350 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/slice_group.html ('k') | tracing/tracing/ui/analysis/related_events_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698