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; | |
548 | 547 |
549 var propertiesBox = document.createElement('div'); | 548 var propertiesBox = document.createElement('div'); |
550 propertiesBox.className = 'properties-box'; | 549 propertiesBox.className = 'properties-box'; |
551 row.appendChild(propertiesBox); | 550 row.appendChild(propertiesBox); |
552 | 551 |
553 var subrowBox = document.createElement('div'); | 552 var subrowBox = document.createElement('div'); |
554 subrowBox.className = 'subrow-box'; | 553 subrowBox.className = 'subrow-box'; |
555 propertiesBox.appendChild(subrowBox); | 554 propertiesBox.appendChild(subrowBox); |
556 | 555 |
557 var subrow = document.createElement('div'); | 556 var subrow = document.createElement('div'); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 deviceSection.querySelector('.device-ports').textContent = ''; | 933 deviceSection.querySelector('.device-ports').textContent = ''; |
935 } | 934 } |
936 | 935 |
937 Array.prototype.forEach.call( | 936 Array.prototype.forEach.call( |
938 document.querySelectorAll('.device'), clearPorts); | 937 document.querySelectorAll('.device'), clearPorts); |
939 } | 938 } |
940 | 939 |
941 document.addEventListener('DOMContentLoaded', onload); | 940 document.addEventListener('DOMContentLoaded', onload); |
942 | 941 |
943 window.addEventListener('hashchange', onHashChange); | 942 window.addEventListener('hashchange', onHashChange); |
OLD | NEW |