blob: 4d27b0ea0ff81f8ee1f26cb6d984503e460a0c46 [file] [log] [blame]
// 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,
observer: 'onSelectedPageChange_',
},
},
/** @override */
ready: function() {
for (var page of Polymer.dom(this.$$('neon-animated-pages')).children)
device_emulator[page.id] = page;
chrome.send('initializeDeviceEmulator');
},
/** @private */
onMenuButtonTap_: function() {
this.$.drawer.toggle();
},
/** @private */
onSelectedPageChange_: function() {
this.$.drawer.close();
},
});