Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.exportPath('device_emulator', { | |
| 6 audioSettings: null, | |
| 7 batterySettings: null, | |
| 8 bluetoothSettings: null, | |
| 9 }); | |
| 10 | |
| 11 Polymer({ | |
| 12 is: 'device-emulator-pages', | |
| 13 | |
| 14 properties: { | |
| 15 selectedPage: { | |
| 16 type: Number, | |
| 17 value: 0, | |
| 18 }, | |
| 19 }, | |
| 20 | |
| 21 ready: function() { | |
| 22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) { | |
| 23 page.initialize(); | |
| 24 device_emulator[page.id] = page; | |
| 25 } | |
| 26 | |
| 27 chrome.send('initialize'); | |
|
stevenjb
2016/05/20 15:56:46
How about initializeDeviceEmulator? I know that on
michaelpg
2016/05/20 21:28:29
Done.
| |
| 28 }, | |
| 29 }); | |
| 30 | |
| 31 | |
| 32 //document.addEventListener('DOMContentLoaded', device_emulator.initialize); | |
| OLD | NEW |