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('siteSettings', function() { | |
6 | |
7 /** | |
8 * The possible contentSettingsTypes (the ones we currently support | |
9 * configuring in the UI). | |
10 * @enum {number} | |
11 */ | |
12 var ContentSettingsTypes = { | |
13 COOKIES: 0, | |
14 IMAGES: 1, | |
15 JAVASCRIPT: 2, | |
16 POPUPS: 4, | |
17 GEOLOCATION: 5, | |
18 NOTIFICATION: 6, | |
19 FULLSCREEN: 8, | |
20 CAMERA: 13, | |
21 MIC: 14, | |
22 }; | |
23 | |
24 /** | |
25 * Containins the possible default values for a given contentSettingsType. | |
Dan Beam
2015/10/19 07:18:05
Contains?
Finnur
2015/10/19 13:53:58
Done (as mentioned elsewhere).
| |
26 * @enum {number} | |
27 */ | |
28 var DefaultValues = { | |
29 ALLOW: 1, | |
30 BLOCK: 2, | |
31 ASK: 3, | |
32 }; | |
33 | |
34 return { | |
35 ContentSettingsTypes: ContentSettingsTypes, | |
36 DefaultValues: DefaultValues, | |
37 }; | |
38 }); | |
OLD | NEW |