1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 tvcm.require('tvcm.ui');
9 tvcm.exportTo('telemetry.web_components', function() {
13 var ResultsViewer = tvcm.ui.define('x-results-viewer');
15 ResultsViewer.prototype = {
16 __proto__: HTMLUnknownElement.prototype,
18 decorate: function() {
19 this.dataToView_ = undefined;
26 set dataToView(dataToView) {
27 this.dataToView_ = dataToView;
28 this.updateContents_();
31 updateContents_: function() {
32 this.textContent = JSON.stringify(this.dataToView_);
37 ResultsViewer: ResultsViewer