| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |