| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |