Chromium Code Reviews| Index: chrome/browser/resources/chromeos/emulator/device_emulator_pages.js |
| diff --git a/chrome/browser/resources/chromeos/emulator/device_emulator_pages.js b/chrome/browser/resources/chromeos/emulator/device_emulator_pages.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cb5ed456dc701fe33c2f32d461a907e271bc69ff |
| --- /dev/null |
| +++ b/chrome/browser/resources/chromeos/emulator/device_emulator_pages.js |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +cr.exportPath('device_emulator', { |
| + audioSettings: null, |
| + batterySettings: null, |
| + bluetoothSettings: null, |
| +}); |
| + |
| +Polymer({ |
| + is: 'device-emulator-pages', |
| + |
| + properties: { |
| + selectedPage: { |
| + type: Number, |
| + value: 0, |
| + }, |
| + }, |
| + |
| + ready: function() { |
| + for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) { |
| + page.initialize(); |
| + device_emulator[page.id] = page; |
| + } |
| + |
| + 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.
|
| + }, |
| +}); |
| + |
| + |
| +//document.addEventListener('DOMContentLoaded', device_emulator.initialize); |