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

Side by Side Diff: chrome/browser/resources/chromeos/emulator/device_emulator_pages.js

Issue 2006083002: Use fake Input Device Settings with chrome://device-emulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DevicePageTestsFixes
Patch Set: make dependent on a11y fix Created 4 years, 5 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.exportPath('device_emulator', { 5 cr.exportPath('device_emulator', {
6 audioSettings: null, 6 audioSettings: null,
7 batterySettings: null, 7 batterySettings: null,
8 bluetoothSettings: null, 8 bluetoothSettings: null,
9 }); 9 });
10 10
11 Polymer({ 11 Polymer({
12 is: 'device-emulator-pages', 12 is: 'device-emulator-pages',
13 13
14 properties: { 14 properties: {
15 selectedPage: { 15 selectedPage: {
16 type: Number, 16 type: Number,
17 value: 0, 17 value: 0,
18 }, 18 },
19 }, 19 },
20 20
21 ready: function() { 21 ready: function() {
22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children) { 22 for (var page of Polymer.dom(this.$$('neon-animated-pages')).children)
23 page.initialize();
24 device_emulator[page.id] = page; 23 device_emulator[page.id] = page;
25 }
26 24
27 chrome.send('initializeDeviceEmulator'); 25 chrome.send('initializeDeviceEmulator');
28 }, 26 },
29 }); 27 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698