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

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: List population Created 5 years, 2 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
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).
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698