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

Side by Side Diff: tracing/tracing/ui/extras/drive/comments_side_panel.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 3 Copyright 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/ui/extras/drive/comment_element.html"> 8 <link rel="import" href="/tracing/ui/extras/drive/comment_element.html">
9 <link rel="import" href="/tracing/ui/side_panel/side_panel_registry.html"> 9 <link rel="import" href="/tracing/ui/side_panel/side_panel_registry.html">
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 </template> 54 </template>
55 </dom-module> 55 </dom-module>
56 <script> 56 <script>
57 'use strict'; 57 'use strict';
58 58
59 Polymer({ 59 Polymer({
60 is: 'tr-ui-e-drive-comments-side-panel', 60 is: 'tr-ui-e-drive-comments-side-panel',
61 behaviors: [tr.ui.behaviors.SidePanel], 61 behaviors: [tr.ui.behaviors.SidePanel],
62 62
63 ready: function() { 63 ready: function() {
64 this.rangeOfInterest_ = new tr.b.Range(); 64 this.rangeOfInterest_ = new tr.b.math.Range();
65 this.selection_ = undefined; 65 this.selection_ = undefined;
66 this.comments_ = []; 66 this.comments_ = [];
67 this.annotationFromComment_ = undefined; 67 this.annotationFromComment_ = undefined;
68 this.textAreaFocused = false; 68 this.textAreaFocused = false;
69 }, 69 },
70 70
71 setCommentProvider: function(commentProvider) { 71 setCommentProvider: function(commentProvider) {
72 this.commentProvider_ = commentProvider; 72 this.commentProvider_ = commentProvider;
73 }, 73 },
74 74
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 get textLabel() { 176 get textLabel() {
177 return 'Comments'; 177 return 'Comments';
178 } 178 }
179 }); 179 });
180 180
181 tr.ui.side_panel.SidePanelRegistry.register(function() { 181 tr.ui.side_panel.SidePanelRegistry.register(function() {
182 return document.createElement('tr-ui-e-drive-comments-side-panel'); 182 return document.createElement('tr-ui-e-drive-comments-side-panel');
183 }); 183 });
184 </script> 184 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698