| 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 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.DevicesView = function() | 9 WebInspector.DevicesView = function() |
| 10 { | 10 { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 this._deviceCountSpan.textContent = | 167 this._deviceCountSpan.textContent = |
| 168 !this._devices.length ? WebInspector.UIString("No devices detected."
) : | 168 !this._devices.length ? WebInspector.UIString("No devices detected."
) : |
| 169 this._devices.length === 1 ? WebInspector.UIString("1 device det
ected.") : WebInspector.UIString("%d devices detected.", this._devices.length); | 169 this._devices.length === 1 ? WebInspector.UIString("1 device det
ected.") : WebInspector.UIString("%d devices detected.", this._devices.length); |
| 170 }, | 170 }, |
| 171 | 171 |
| 172 /** | 172 /** |
| 173 * @override | 173 * @override |
| 174 */ | 174 */ |
| 175 wasShown: function() | 175 wasShown: function() |
| 176 { | 176 { |
| 177 WebInspector.PanelWithSidebar.prototype.wasShown.call(this); | 177 WebInspector.VBox.prototype.wasShown.call(this); |
| 178 InspectorFrontendHost.setDevicesUpdatesEnabled(true); | 178 InspectorFrontendHost.setDevicesUpdatesEnabled(true); |
| 179 }, | 179 }, |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * @override | 182 * @override |
| 183 */ | 183 */ |
| 184 willHide: function() | 184 willHide: function() |
| 185 { | 185 { |
| 186 WebInspector.PanelWithSidebar.prototype.wasShown.call(this); | 186 WebInspector.VBox.prototype.wasShown.call(this); |
| 187 InspectorFrontendHost.setDevicesUpdatesEnabled(false); | 187 InspectorFrontendHost.setDevicesUpdatesEnabled(false); |
| 188 }, | 188 }, |
| 189 | 189 |
| 190 __proto__: WebInspector.VBox.prototype | 190 __proto__: WebInspector.VBox.prototype |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 /** | 193 /** |
| 194 * @return {!WebInspector.DevicesView} | 194 * @return {!WebInspector.DevicesView} |
| 195 */ | 195 */ |
| 196 WebInspector.DevicesView._instance = function() | 196 WebInspector.DevicesView._instance = function() |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 if (transient.length) | 687 if (transient.length) |
| 688 title.push(WebInspector.UIString("Transient: %s", transient.join(",
"))); | 688 title.push(WebInspector.UIString("Transient: %s", transient.join(",
"))); |
| 689 if (error.length) | 689 if (error.length) |
| 690 title.push(WebInspector.UIString("Error: %s", error.join(", "))); | 690 title.push(WebInspector.UIString("Error: %s", error.join(", "))); |
| 691 this._portStatus.title = title.join("; "); | 691 this._portStatus.title = title.join("; "); |
| 692 this._portStatus.classList.toggle("hidden", empty); | 692 this._portStatus.classList.toggle("hidden", empty); |
| 693 }, | 693 }, |
| 694 | 694 |
| 695 __proto__: WebInspector.VBox.prototype | 695 __proto__: WebInspector.VBox.prototype |
| 696 }; | 696 }; |
| OLD | NEW |