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

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

Issue 1922863004: Use Polymer.dom with insertBefore. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: 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) 2015 The Chromium Authors. All rights reserved. 3 Copyright (c) 2015 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/base64.html"> 8 <link rel="import" href="/tracing/base/base64.html">
9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html"> 9 <link rel="import" href="/tracing/extras/chrome/cc/picture.html">
10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html">
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 var leftPanel = this.querySelector('left-panel'); 174 var leftPanel = this.querySelector('left-panel');
175 175
176 var middleDragHandle = document.createElement('tr-ui-b-drag-handle'); 176 var middleDragHandle = document.createElement('tr-ui-b-drag-handle');
177 middleDragHandle.horizontal = false; 177 middleDragHandle.horizontal = false;
178 middleDragHandle.target = leftPanel; 178 middleDragHandle.target = leftPanel;
179 179
180 var rightPanel = this.querySelector('right-panel'); 180 var rightPanel = this.querySelector('right-panel');
181 181
182 this.infoBar_ = document.createElement('tr-ui-b-info-bar'); 182 this.infoBar_ = document.createElement('tr-ui-b-info-bar');
183 this.rasterArea_.insertBefore(this.infoBar_, this.rasterCanvas_); 183 Polymer.dom(this.rasterArea_).insertBefore(
184 this.infoBar_, this.rasterCanvas_);
184 185
185 this.insertBefore(middleDragHandle, rightPanel); 186 Polymer.dom(this).insertBefore(middleDragHandle, rightPanel);
186 187
187 this.picture_ = undefined; 188 this.picture_ = undefined;
188 189
189 this.pictureOpsListView_ = new tr.ui.e.chrome.cc.PictureOpsListView(); 190 this.pictureOpsListView_ = new tr.ui.e.chrome.cc.PictureOpsListView();
190 rightPanel.insertBefore(this.pictureOpsListView_, this.rasterArea_); 191 Polymer.dom(rightPanel).insertBefore(
192 this.pictureOpsListView_, this.rasterArea_);
191 193
192 this.pictureOpsListDragHandle_ = 194 this.pictureOpsListDragHandle_ =
193 document.createElement('tr-ui-b-drag-handle'); 195 document.createElement('tr-ui-b-drag-handle');
194 this.pictureOpsListDragHandle_.horizontal = false; 196 this.pictureOpsListDragHandle_.horizontal = false;
195 this.pictureOpsListDragHandle_.target = this.pictureOpsListView_; 197 this.pictureOpsListDragHandle_.target = this.pictureOpsListView_;
196 rightPanel.insertBefore(this.pictureOpsListDragHandle_, this.rasterArea_); 198 Polymer.dom(rightPanel).insertBefore(
199 this.pictureOpsListDragHandle_, this.rasterArea_);
197 }, 200 },
198 201
199 get picture() { 202 get picture() {
200 return this.picture_; 203 return this.picture_;
201 }, 204 },
202 205
203 set displayItemList(displayItemList) { 206 set displayItemList(displayItemList) {
204 this.displayItemList_ = displayItemList; 207 this.displayItemList_ = displayItemList;
205 this.picture = this.displayItemList_; 208 this.picture = this.displayItemList_;
206 209
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 var rawData = tr.b.Base64.atob(this.picture_.getBase64SkpData()); 461 var rawData = tr.b.Base64.atob(this.picture_.getBase64SkpData());
459 this.saveFile_(this.skpFilename_.value, rawData); 462 this.saveFile_(this.skpFilename_.value, rawData);
460 } 463 }
461 }; 464 };
462 465
463 return { 466 return {
464 DisplayItemDebugger: DisplayItemDebugger 467 DisplayItemDebugger: DisplayItemDebugger
465 }; 468 };
466 }); 469 });
467 </script> 470 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/base/table.html ('k') | tracing/tracing/ui/extras/chrome/cc/picture_debugger.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698