OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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.define('settings', function() { | |
6 /** | |
7 * The possible contentSettingsTypes (the ones we currently support | |
8 * configuring in the UI). | |
michaelpg
2015/10/22 16:11:33
comment on where these numbers come from/what file
Finnur
2015/10/26 14:38:04
Done.
| |
9 * @enum {number} | |
10 */ | |
11 var ContentSettingsTypes = { | |
12 COOKIES: 0, | |
13 IMAGES: 1, | |
14 JAVASCRIPT: 2, | |
15 POPUPS: 4, | |
16 GEOLOCATION: 5, | |
17 NOTIFICATION: 6, | |
18 FULLSCREEN: 8, | |
19 CAMERA: 13, | |
20 MIC: 14, | |
michaelpg
2015/10/22 16:11:33
12?
Finnur
2015/10/26 14:38:04
Good catch!
| |
21 }; | |
22 | |
23 /** | |
24 * Contains the possible default values for a given contentSettingsType. | |
25 * @enum {number} | |
26 */ | |
27 var DefaultValues = { | |
28 ALLOW: 1, | |
29 BLOCK: 2, | |
30 ASK: 3, | |
31 }; | |
32 | |
33 return { | |
34 ContentSettingsTypes: ContentSettingsTypes, | |
35 DefaultValues: DefaultValues, | |
36 }; | |
37 }); | |
OLD | NEW |