| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 cr.exportPath('device_emulator', { | 5 cr.exportPath('device_emulator', { |
| 6 audioSettings: null, | 6 audioSettings: null, |
| 7 batterySettings: null, | 7 batterySettings: null, |
| 8 bluetoothSettings: null, | 8 bluetoothSettings: null, |
| 9 }); | 9 }); |
| 10 | 10 |
| 11 Polymer({ | 11 Polymer({ |
| 12 is: 'device-emulator-pages', | 12 is: 'device-emulator-pages', |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 selectedPage: { | 15 selectedPage: { |
| 16 type: Number, | 16 type: Number, |
| 17 value: 0, | 17 value: 0, |
| 18 }, | 18 }, |
| 19 }, | 19 }, |
| 20 | 20 |
| 21 ready: function() { | 21 ready: function() { |
| 22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) { | 22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) |
| 23 page.initialize(); | |
| 24 device_emulator[page.id] = page; | 23 device_emulator[page.id] = page; |
| 25 } | |
| 26 | 24 |
| 27 chrome.send('initializeDeviceEmulator'); | 25 chrome.send('initializeDeviceEmulator'); |
| 28 }, | 26 }, |
| 29 }); | 27 }); |
| OLD | NEW |