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

Unified Diff: chrome/browser/resources/chromeos/emulator/device_emulator_pages.js

Issue 1999593002: Update chrome://device-emulator with newer Polymer guidelines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698