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

Side by Side Diff: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js

Issue 2699793003: MD Settings: Add MIDI devices to Content Settings (Closed)
Patch Set: add icon and fix tests Created 3 years, 10 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
« no previous file with comments | « chrome/test/data/webui/settings/site_list_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * An example empty pref. 6 * An example empty pref.
7 * @type {SiteSettingsPref} 7 * @type {SiteSettingsPref}
8 */ 8 */
9 var prefsEmpty = { 9 var prefsEmpty = {
10 defaults: { 10 defaults: {
11 auto_downloads: '', 11 auto_downloads: '',
12 background_sync: '', 12 background_sync: '',
13 camera: '', 13 camera: '',
14 cookies: '', 14 cookies: '',
15 geolocation: '', 15 geolocation: '',
16 javascript: '', 16 javascript: '',
17 mic: '', 17 mic: '',
18 midiDevices: '',
18 notifications: '', 19 notifications: '',
19 plugins: '', 20 plugins: '',
20 popups: '', 21 popups: '',
21 unsandboxed_plugins: '', 22 unsandboxed_plugins: '',
22 }, 23 },
23 exceptions: { 24 exceptions: {
24 auto_downloads: [], 25 auto_downloads: [],
25 background_sync: [], 26 background_sync: [],
26 camera: [], 27 camera: [],
27 cookies: [], 28 cookies: [],
28 geolocation: [], 29 geolocation: [],
29 javascript: [], 30 javascript: [],
30 mic: [], 31 mic: [],
32 midiDevices: [],
31 notifications: [], 33 notifications: [],
32 plugins: [], 34 plugins: [],
33 popups: [], 35 popups: [],
34 unsandboxed_plugins: [], 36 unsandboxed_plugins: [],
35 }, 37 },
36 }; 38 };
37 39
38 /** 40 /**
39 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods 41 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods
40 * for allowing tests to know when a method was called, as well as 42 * for allowing tests to know when a method was called, as well as
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } else if (contentType == settings.ContentSettingsTypes.COOKIES) { 160 } else if (contentType == settings.ContentSettingsTypes.COOKIES) {
159 pref = this.prefs_.defaults.cookies; 161 pref = this.prefs_.defaults.cookies;
160 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) { 162 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) {
161 pref = this.prefs_.defaults.geolocation; 163 pref = this.prefs_.defaults.geolocation;
162 } else if (contentType == settings.ContentSettingsTypes.IMAGES) { 164 } else if (contentType == settings.ContentSettingsTypes.IMAGES) {
163 pref = this.prefs_.defaults.images; 165 pref = this.prefs_.defaults.images;
164 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) { 166 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) {
165 pref = this.prefs_.defaults.javascript; 167 pref = this.prefs_.defaults.javascript;
166 } else if (contentType == settings.ContentSettingsTypes.MIC) { 168 } else if (contentType == settings.ContentSettingsTypes.MIC) {
167 pref = this.prefs_.defaults.mic; 169 pref = this.prefs_.defaults.mic;
170 } else if (contentType == settings.ContentSettingsTypes.MIDI_DEVICES) {
171 pref = this.prefs_.defaults.midiDevices;
168 } else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) { 172 } else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) {
169 pref = this.prefs_.defaults.notifications; 173 pref = this.prefs_.defaults.notifications;
170 } else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) { 174 } else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) {
171 pref = this.prefs_.defaults.pdf_documents; 175 pref = this.prefs_.defaults.pdf_documents;
172 } else if (contentType == settings.ContentSettingsTypes.POPUPS) { 176 } else if (contentType == settings.ContentSettingsTypes.POPUPS) {
173 pref = this.prefs_.defaults.popups; 177 pref = this.prefs_.defaults.popups;
174 } else if (contentType == settings.ContentSettingsTypes.PLUGINS) { 178 } else if (contentType == settings.ContentSettingsTypes.PLUGINS) {
175 pref = this.prefs_.defaults.plugins; 179 pref = this.prefs_.defaults.plugins;
176 } else if ( 180 } else if (
177 contentType == settings.ContentSettingsTypes.UNSANDBOXED_PLUGINS) { 181 contentType == settings.ContentSettingsTypes.UNSANDBOXED_PLUGINS) {
(...skipping 20 matching lines...) Expand all
198 else if (contentType == settings.ContentSettingsTypes.COOKIES) 202 else if (contentType == settings.ContentSettingsTypes.COOKIES)
199 pref = this.prefs_.exceptions.cookies; 203 pref = this.prefs_.exceptions.cookies;
200 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) 204 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION)
201 pref = this.prefs_.exceptions.geolocation; 205 pref = this.prefs_.exceptions.geolocation;
202 else if (contentType == settings.ContentSettingsTypes.IMAGES) 206 else if (contentType == settings.ContentSettingsTypes.IMAGES)
203 pref = this.prefs_.exceptions.images; 207 pref = this.prefs_.exceptions.images;
204 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) 208 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT)
205 pref = this.prefs_.exceptions.javascript; 209 pref = this.prefs_.exceptions.javascript;
206 else if (contentType == settings.ContentSettingsTypes.MIC) 210 else if (contentType == settings.ContentSettingsTypes.MIC)
207 pref = this.prefs_.exceptions.mic; 211 pref = this.prefs_.exceptions.mic;
212 else if (contentType == settings.ContentSettingsTypes.MIDI_DEVICES)
213 pref = this.prefs_.exceptions.midiDevices;
208 else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS) 214 else if (contentType == settings.ContentSettingsTypes.NOTIFICATIONS)
209 pref = this.prefs_.exceptions.notifications; 215 pref = this.prefs_.exceptions.notifications;
210 else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS) 216 else if (contentType == settings.ContentSettingsTypes.PDF_DOCUMENTS)
211 pref = this.prefs_.exceptions.pdf_documents; 217 pref = this.prefs_.exceptions.pdf_documents;
212 else if (contentType == settings.ContentSettingsTypes.PLUGINS) 218 else if (contentType == settings.ContentSettingsTypes.PLUGINS)
213 pref = this.prefs_.exceptions.plugins; 219 pref = this.prefs_.exceptions.plugins;
214 else if (contentType == settings.ContentSettingsTypes.PROTECTED_CONTENT) 220 else if (contentType == settings.ContentSettingsTypes.PROTECTED_CONTENT)
215 pref = this.prefs_.exceptions.protectedContent; 221 pref = this.prefs_.exceptions.protectedContent;
216 else if (contentType == settings.ContentSettingsTypes.POPUPS) 222 else if (contentType == settings.ContentSettingsTypes.POPUPS)
217 pref = this.prefs_.exceptions.popups; 223 pref = this.prefs_.exceptions.popups;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 /** @override */ 294 /** @override */
289 setProtocolDefault: function() { 295 setProtocolDefault: function() {
290 this.methodCalled('setProtocolDefault', arguments); 296 this.methodCalled('setProtocolDefault', arguments);
291 }, 297 },
292 298
293 /** @override */ 299 /** @override */
294 removeProtocolHandler: function() { 300 removeProtocolHandler: function() {
295 this.methodCalled('removeProtocolHandler', arguments); 301 this.methodCalled('removeProtocolHandler', arguments);
296 } 302 }
297 }; 303 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/site_list_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698