| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var SourceRow = (function() { | 5 var SourceRow = (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * A SourceRow represents the row corresponding to a single SourceEntry | 9 * A SourceRow represents the row corresponding to a single SourceEntry |
| 10 * displayed by the EventsView. | 10 * displayed by the EventsView. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 SourceRow.prototype = { | 35 SourceRow.prototype = { |
| 36 createRow_: function() { | 36 createRow_: function() { |
| 37 // Create a row. | 37 // Create a row. |
| 38 var tr = addNode(this.parentView_.tableBody_, 'tr'); | 38 var tr = addNode(this.parentView_.tableBody_, 'tr'); |
| 39 tr._id = this.getSourceId(); | 39 tr._id = this.getSourceId(); |
| 40 tr.style.display = 'none'; | 40 tr.style.display = 'none'; |
| 41 this.row_ = tr; | 41 this.row_ = tr; |
| 42 | 42 |
| 43 var selectionCol = addNode(tr, 'td'); | 43 var selectionCol = addNode(tr, 'td'); |
| 44 var checkbox = addNode(selectionCol, 'input'); | 44 var checkbox = addNode(selectionCol, 'input'); |
| 45 checkbox.title = this.getSourceId(); |
| 45 selectionCol.style.borderLeft = '0'; | 46 selectionCol.style.borderLeft = '0'; |
| 46 checkbox.type = 'checkbox'; | 47 checkbox.type = 'checkbox'; |
| 47 | 48 |
| 48 var idCell = addNode(tr, 'td'); | 49 var idCell = addNode(tr, 'td'); |
| 49 idCell.style.textAlign = 'right'; | 50 idCell.style.textAlign = 'right'; |
| 50 | 51 |
| 51 var typeCell = addNode(tr, 'td'); | 52 var typeCell = addNode(tr, 'td'); |
| 52 var descriptionCell = addNode(tr, 'td'); | 53 var descriptionCell = addNode(tr, 'td'); |
| 53 this.descriptionCell_ = descriptionCell; | 54 this.descriptionCell_ = descriptionCell; |
| 54 | 55 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 /** | 259 /** |
| 259 * Moves current object's row after |entry|'s row. | 260 * Moves current object's row after |entry|'s row. |
| 260 */ | 261 */ |
| 261 moveAfter: function(entry) { | 262 moveAfter: function(entry) { |
| 262 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); | 263 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); |
| 263 } | 264 } |
| 264 }; | 265 }; |
| 265 | 266 |
| 266 return SourceRow; | 267 return SourceRow; |
| 267 })(); | 268 })(); |
| OLD | NEW |