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 MIN_VERSION_TAB_CLOSE = 25; | 5 var MIN_VERSION_TAB_CLOSE = 25; |
6 var MIN_VERSION_TARGET_ID = 26; | 6 var MIN_VERSION_TARGET_ID = 26; |
7 var MIN_VERSION_NEW_TAB = 29; | 7 var MIN_VERSION_NEW_TAB = 29; |
8 var MIN_VERSION_TAB_ACTIVATE = 30; | 8 var MIN_VERSION_TAB_ACTIVATE = 30; |
9 | 9 |
10 var queryParamsObject = {}; | 10 var queryParamsObject = {}; |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 screenRect.appendChild(viewRect); | 537 screenRect.appendChild(viewRect); |
538 } | 538 } |
539 | 539 |
540 var propertiesBox = row.querySelector('.properties-box'); | 540 var propertiesBox = row.querySelector('.properties-box'); |
541 propertiesBox.insertBefore(thumbnail, propertiesBox.firstChild); | 541 propertiesBox.insertBefore(thumbnail, propertiesBox.firstChild); |
542 } | 542 } |
543 | 543 |
544 function addTargetToList(data, list, properties) { | 544 function addTargetToList(data, list, properties) { |
545 var row = document.createElement('div'); | 545 var row = document.createElement('div'); |
546 row.className = 'row'; | 546 row.className = 'row'; |
| 547 row.targetId = data.id; |
547 | 548 |
548 var propertiesBox = document.createElement('div'); | 549 var propertiesBox = document.createElement('div'); |
549 propertiesBox.className = 'properties-box'; | 550 propertiesBox.className = 'properties-box'; |
550 row.appendChild(propertiesBox); | 551 row.appendChild(propertiesBox); |
551 | 552 |
552 var subrowBox = document.createElement('div'); | 553 var subrowBox = document.createElement('div'); |
553 subrowBox.className = 'subrow-box'; | 554 subrowBox.className = 'subrow-box'; |
554 propertiesBox.appendChild(subrowBox); | 555 propertiesBox.appendChild(subrowBox); |
555 | 556 |
556 var subrow = document.createElement('div'); | 557 var subrow = document.createElement('div'); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 deviceSection.querySelector('.device-ports').textContent = ''; | 934 deviceSection.querySelector('.device-ports').textContent = ''; |
934 } | 935 } |
935 | 936 |
936 Array.prototype.forEach.call( | 937 Array.prototype.forEach.call( |
937 document.querySelectorAll('.device'), clearPorts); | 938 document.querySelectorAll('.device'), clearPorts); |
938 } | 939 } |
939 | 940 |
940 document.addEventListener('DOMContentLoaded', onload); | 941 document.addEventListener('DOMContentLoaded', onload); |
941 | 942 |
942 window.addEventListener('hashchange', onHashChange); | 943 window.addEventListener('hashchange', onHashChange); |
OLD | NEW |