3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
7 <link rel="import" href="/tvcm/ui.html">
11 tvcm.exportTo('telemetry.web_components', function() {
15 var ResultsViewer = tvcm.ui.define('x-results-viewer');
17 ResultsViewer.prototype = {
18 __proto__: HTMLUnknownElement.prototype,
20 decorate: function() {
21 this.dataToView_ = undefined;
28 set dataToView(dataToView) {
29 this.dataToView_ = dataToView;
30 this.updateContents_();
33 updateContents_: function() {
34 this.textContent = JSON.stringify(this.dataToView_);
39 ResultsViewer: ResultsViewer