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

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: Polish 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('siteSettings', function() {
Dan Beam 2015/10/19 07:18:07 why siteSettings instead of settings?
Finnur 2015/10/19 13:53:59 Sure, 'settings' also works for me.
6
Dan Beam 2015/10/19 07:18:07 why this \n?
Finnur 2015/10/19 13:53:59 Done.
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:07 contains
Finnur 2015/10/19 13:53:59 Done.
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698