| Index: chrome/browser/resources/settings/site_settings/constants.js
|
| diff --git a/chrome/browser/resources/settings/site_settings/constants.js b/chrome/browser/resources/settings/site_settings/constants.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ecc0b259f7706ecc6b68a6dc6c4d1824039a6601
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/settings/site_settings/constants.js
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +cr.define('siteSettings', function() {
|
| +
|
| + /**
|
| + * The possible contentSettingsTypes (the ones we currently support
|
| + * configuring).
|
| + * @enum {number}
|
| + */
|
| + var ContentSettingsTypes = {
|
| + COOKIES: 0,
|
| + IMAGES: 1,
|
| + JAVASCRIPT: 2,
|
| + POPUPS: 4,
|
| + GEOLOCATION: 5,
|
| + NOTIFICATION: 6,
|
| + FULLSCREEN: 8,
|
| + CAMERA: 13,
|
| + MIC: 14,
|
| + };
|
| +
|
| + /**
|
| + * Containing the possible default values for a given contentSettingsType.
|
| + * @enum {number}
|
| + */
|
| + var DefaultValues = {
|
| + ALLOW: 1,
|
| + BLOCK: 2,
|
| + ASK: 3,
|
| + };
|
| +
|
| + return {
|
| + ContentSettingsTypes: ContentSettingsTypes,
|
| + DefaultValues: DefaultValues,
|
| + };
|
| +});
|
|
|