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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 cr.exportPath('device_emulator', {
6 audioSettings: null,
7 batterySettings: null,
8 bluetoothSettings: null,
9 });
10
11 Polymer({
12 is: 'device-emulator-pages',
13
14 properties: {
15 selectedPage: {
16 type: Number,
17 value: 0,
18 },
19 },
20
21 ready: function() {
22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) {
23 page.initialize();
24 device_emulator[page.id] = page;
25 }
26
27 chrome.send('initializeDeviceEmulator');
28 },
29 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698