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

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: narrow mode drawer + webui safety 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..e575ceb7c6c16aabd3d08fd663b0ad45376337bb
--- /dev/null
+++ b/chrome/browser/resources/chromeos/emulator/device_emulator_pages.js
@@ -0,0 +1,29 @@
+// 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('initializeDeviceEmulator');
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698