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

Side by Side Diff: tracing/tracing/ui/extras/chrome/cc/picture_view.html

Issue 1967613003: Migrate child element manipulation, innerHTML, classList, attributes, (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: white space fix. Created 4 years, 7 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="stylesheet" href="/tracing/ui/extras/chrome/cc/picture_view.css"> 8 <link rel="stylesheet" href="/tracing/ui/extras/chrome/cc/picture_view.css">
9 9
10 <link rel="import" href="/tracing/extras/chrome/cc/picture.html"> 10 <link rel="import" href="/tracing/extras/chrome/cc/picture.html">
(...skipping 10 matching lines...) Expand all
21 * @constructor 21 * @constructor
22 */ 22 */
23 var PictureSnapshotView = tr.ui.b.define( 23 var PictureSnapshotView = tr.ui.b.define(
24 'tr-ui-e-chrome-cc-picture-snapshot-view', 24 'tr-ui-e-chrome-cc-picture-snapshot-view',
25 tr.ui.analysis.ObjectSnapshotView); 25 tr.ui.analysis.ObjectSnapshotView);
26 26
27 PictureSnapshotView.prototype = { 27 PictureSnapshotView.prototype = {
28 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype, 28 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype,
29 29
30 decorate: function() { 30 decorate: function() {
31 this.classList.add('tr-ui-e-chrome-cc-picture-snapshot-view'); 31 Polymer.dom(this).classList.add(
32 'tr-ui-e-chrome-cc-picture-snapshot-view');
32 this.pictureDebugger_ = new tr.ui.e.chrome.cc.PictureDebugger(); 33 this.pictureDebugger_ = new tr.ui.e.chrome.cc.PictureDebugger();
33 Polymer.dom(this).appendChild(this.pictureDebugger_); 34 Polymer.dom(this).appendChild(this.pictureDebugger_);
34 }, 35 },
35 36
36 updateContents: function() { 37 updateContents: function() {
37 if (this.objectSnapshot_ && this.pictureDebugger_) 38 if (this.objectSnapshot_ && this.pictureDebugger_)
38 this.pictureDebugger_.picture = this.objectSnapshot_; 39 this.pictureDebugger_.picture = this.objectSnapshot_;
39 } 40 }
40 }; 41 };
41 42
42 tr.ui.analysis.ObjectSnapshotView.register( 43 tr.ui.analysis.ObjectSnapshotView.register(
43 PictureSnapshotView, 44 PictureSnapshotView,
44 { 45 {
45 typeNames: ['cc::Picture', 'cc::LayeredPicture'], 46 typeNames: ['cc::Picture', 'cc::LayeredPicture'],
46 showInstances: false 47 showInstances: false
47 }); 48 });
48 49
49 return { 50 return {
50 PictureSnapshotView: PictureSnapshotView 51 PictureSnapshotView: PictureSnapshotView
51 }; 52 };
52 }); 53 });
53 </script> 54 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/extras/chrome/cc/picture_ops_list_view.html ('k') | tracing/tracing/ui/extras/chrome/cc/tile_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698