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

Side by Side Diff: chrome/browser/resources/settings/site_settings/constants.js

Issue 1372053002: Flesh out the location-page class to make it more general. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
(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). This is a subset of the constants found under
9 * content_setttings_types.h and the values should be kept in sync.
10 * TODO(finnur): When all categories have been implemented we can just
11 * generate these constants from content_setttings_types.h.
12 * @enum {number}
13 */
14 var ContentSettingsTypes = {
15 COOKIES: 0,
16 IMAGES: 1,
17 JAVASCRIPT: 2,
18 POPUPS: 4,
19 GEOLOCATION: 5,
20 NOTIFICATION: 6,
21 FULLSCREEN: 8,
22 MIC: 12,
23 CAMERA: 13,
24 };
25
26 /**
27 * Contains the possible default values for a given contentSettingsType.
28 * @enum {number}
29 */
30 var DefaultValues = {
31 ALLOW: 1,
32 BLOCK: 2,
33 ASK: 3,
34 };
35
36 return {
37 ContentSettingsTypes: ContentSettingsTypes,
38 DefaultValues: DefaultValues,
39 };
40 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698