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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 <script> | 284 <script> |
285 'use strict'; | 285 'use strict'; |
286 | 286 |
287 Polymer({ | 287 Polymer({ |
288 is: 'tr-ui-a-generic-object-view-with-label', | 288 is: 'tr-ui-a-generic-object-view-with-label', |
289 | 289 |
290 ready: function() { | 290 ready: function() { |
291 this.labelEl_ = document.createElement('div'); | 291 this.labelEl_ = document.createElement('div'); |
292 this.genericObjectView_ = | 292 this.genericObjectView_ = |
293 document.createElement('tr-ui-a-generic-object-view'); | 293 document.createElement('tr-ui-a-generic-object-view'); |
294 Polymer.dom(this.shadowRoot).appendChild(this.labelEl_); | 294 Polymer.dom(this.root).appendChild(this.labelEl_); |
295 Polymer.dom(this.shadowRoot).appendChild(this.genericObjectView_); | 295 Polymer.dom(this.root).appendChild(this.genericObjectView_); |
296 }, | 296 }, |
297 | 297 |
298 get label() { | 298 get label() { |
299 return this.labelEl_.textContent; | 299 return this.labelEl_.textContent; |
300 }, | 300 }, |
301 | 301 |
302 set label(label) { | 302 set label(label) { |
303 this.labelEl_.textContent = label; | 303 this.labelEl_.textContent = label; |
304 }, | 304 }, |
305 | 305 |
306 get object() { | 306 get object() { |
307 return this.genericObjectView_.object; | 307 return this.genericObjectView_.object; |
308 }, | 308 }, |
309 | 309 |
310 set object(object) { | 310 set object(object) { |
311 this.genericObjectView_.object = object; | 311 this.genericObjectView_.object = object; |
312 } | 312 } |
313 }); | 313 }); |
314 </script> | 314 </script> |
OLD | NEW |