| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Devices.DevicesView = class extends UI.VBox { | 7 Devices.DevicesView = class extends UI.VBox { |
| 8 constructor() { | 8 constructor() { |
| 9 super(true); | 9 super(true); |
| 10 this.registerRequiredCSS('devices/devicesView.css'); | 10 this.registerRequiredCSS('devices/devicesView.css'); |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 /** | 678 /** |
| 679 * @return {!Devices.DevicesView.BrowserSection} | 679 * @return {!Devices.DevicesView.BrowserSection} |
| 680 */ | 680 */ |
| 681 _createBrowserSection() { | 681 _createBrowserSection() { |
| 682 var element = createElementWithClass('div', 'vbox flex-none'); | 682 var element = createElementWithClass('div', 'vbox flex-none'); |
| 683 var topRow = element.createChild('div', ''); | 683 var topRow = element.createChild('div', ''); |
| 684 var title = topRow.createChild('div', 'device-browser-title'); | 684 var title = topRow.createChild('div', 'device-browser-title'); |
| 685 | 685 |
| 686 var newTabRow = element.createChild('div', 'device-browser-new-tab'); | 686 var newTabRow = element.createChild('div', 'device-browser-new-tab'); |
| 687 newTabRow.createChild('div', '').textContent = Common.UIString('New tab:'); | 687 newTabRow.createChild('div', '').textContent = Common.UIString('New tab:'); |
| 688 var newTabInput = newTabRow.createChild('input', ''); | 688 var newTabInput = UI.createInput('', 'text'); |
| 689 newTabInput.type = 'text'; | 689 newTabRow.appendChild(newTabInput); |
| 690 newTabInput.placeholder = Common.UIString('Enter URL'); | 690 newTabInput.placeholder = Common.UIString('Enter URL'); |
| 691 newTabInput.addEventListener('keydown', newTabKeyDown, false); | 691 newTabInput.addEventListener('keydown', newTabKeyDown, false); |
| 692 var newTabButton = UI.createTextButton(Common.UIString('Open'), openNewTab); | 692 var newTabButton = UI.createTextButton(Common.UIString('Open'), openNewTab); |
| 693 newTabRow.appendChild(newTabButton); | 693 newTabRow.appendChild(newTabButton); |
| 694 | 694 |
| 695 var pages = element.createChild('div', 'device-page-list vbox'); | 695 var pages = element.createChild('div', 'device-page-list vbox'); |
| 696 | 696 |
| 697 var viewMore = element.createChild('div', 'device-view-more'); | 697 var viewMore = element.createChild('div', 'device-view-more'); |
| 698 viewMore.addEventListener('click', viewMoreClick, false); | 698 viewMore.addEventListener('click', viewMoreClick, false); |
| 699 updateViewMoreTitle(); | 699 updateViewMoreTitle(); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 | 932 |
| 933 /** | 933 /** |
| 934 * @param {!Common.Event} event | 934 * @param {!Common.Event} event |
| 935 */ | 935 */ |
| 936 _devicesDiscoveryConfigChanged(event) { | 936 _devicesDiscoveryConfigChanged(event) { |
| 937 this._config = /** @type {!Adb.Config} */ (event.data); | 937 this._config = /** @type {!Adb.Config} */ (event.data); |
| 938 this._networkDiscoveryView.discoveryConfigChanged( | 938 this._networkDiscoveryView.discoveryConfigChanged( |
| 939 this._config.networkDiscoveryEnabled, this._config.networkDiscoveryConfi
g); | 939 this._config.networkDiscoveryEnabled, this._config.networkDiscoveryConfi
g); |
| 940 } | 940 } |
| 941 }; | 941 }; |
| OLD | NEW |