| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 */ | 7 */ |
| 8 WebInspector.EmulatedDevice = function() | 8 WebInspector.EmulatedDevice = function() |
| 9 { | 9 { |
| 10 /** @type {string} */ | 10 /** @type {string} */ |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 }, | 468 }, |
| 469 | 469 |
| 470 /** | 470 /** |
| 471 * @return {!Array.<!WebInspector.EmulatedDevice>} | 471 * @return {!Array.<!WebInspector.EmulatedDevice>} |
| 472 */ | 472 */ |
| 473 custom: function() | 473 custom: function() |
| 474 { | 474 { |
| 475 return this._custom; | 475 return this._custom; |
| 476 }, | 476 }, |
| 477 | 477 |
| 478 revealCustomSetting: function() |
| 479 { |
| 480 WebInspector.Revealer.reveal(this._customSetting); |
| 481 }, |
| 482 |
| 478 /** | 483 /** |
| 479 * @param {!WebInspector.EmulatedDevice} device | 484 * @param {!WebInspector.EmulatedDevice} device |
| 480 */ | 485 */ |
| 481 addCustomDevice: function(device) | 486 addCustomDevice: function(device) |
| 482 { | 487 { |
| 483 this._custom.push(device); | 488 this._custom.push(device); |
| 484 this.saveCustomDevices(); | 489 this.saveCustomDevices(); |
| 485 }, | 490 }, |
| 486 | 491 |
| 487 /** | 492 /** |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 if (deviceById.has(title)) | 527 if (deviceById.has(title)) |
| 523 to[i].copyShowFrom(/** @type {!WebInspector.EmulatedDevice} */ (
deviceById.get(title))); | 528 to[i].copyShowFrom(/** @type {!WebInspector.EmulatedDevice} */ (
deviceById.get(title))); |
| 524 } | 529 } |
| 525 }, | 530 }, |
| 526 | 531 |
| 527 __proto__: WebInspector.Object.prototype | 532 __proto__: WebInspector.Object.prototype |
| 528 } | 533 } |
| 529 | 534 |
| 530 /** @type {!WebInspector.EmulatedDevicesList} */ | 535 /** @type {!WebInspector.EmulatedDevicesList} */ |
| 531 WebInspector.emulatedDevicesList; | 536 WebInspector.emulatedDevicesList; |
| OLD | NEW |