Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/EmulatedDevices.js

Issue 1450133003: [DevTools] Promote Device Mode v2 to default experiments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698