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

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

Issue 2055823003: Site Settings Desktop: Implement the 'Clear on exit' menu for Cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polish Created 4 years, 6 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('settings', function() { 5 cr.define('settings', function() {
6 /** 6 /**
7 * All possible contentSettingsTypes that we currently support configuring in 7 * All possible contentSettingsTypes that we currently support configuring in
8 * the UI. Both top-level categories and content settings that represent 8 * the UI. Both top-level categories and content settings that represent
9 * individual permissions under Site Details should appear here. This is a 9 * individual permissions under Site Details should appear here. This is a
10 * subset of the constants found in site_settings_helper.cc and the values 10 * subset of the constants found in site_settings_helper.cc and the values
(...skipping 20 matching lines...) Expand all
31 /** 31 /**
32 * Contains the possible string values for a given contentSettingsType. 32 * Contains the possible string values for a given contentSettingsType.
33 * @enum {string} 33 * @enum {string}
34 */ 34 */
35 var PermissionValues = { 35 var PermissionValues = {
36 DEFAULT: 'default', 36 DEFAULT: 'default',
37 ALLOW: 'allow', 37 ALLOW: 'allow',
38 BLOCK: 'block', 38 BLOCK: 'block',
39 ASK: 'ask', 39 ASK: 'ask',
40 IMPORTANT_CONTENT: 'detect_important_content', 40 IMPORTANT_CONTENT: 'detect_important_content',
41 SESSION_ONLY: 'session_only',
michaelpg 2016/06/09 18:43:42 nit: use consistent ordering https://cs.chromium.o
Finnur 2016/06/10 14:20:46 Done.
41 }; 42 };
42 43
43 /** 44 /**
44 * A category value to use for the All Sites list. 45 * A category value to use for the All Sites list.
45 * @const {string} 46 * @const {string}
46 */ 47 */
47 var ALL_SITES = 'all-sites'; 48 var ALL_SITES = 'all-sites';
48 49
49 /** 50 /**
50 * An invalid subtype value. 51 * An invalid subtype value.
51 * @const {string} 52 * @const {string}
52 */ 53 */
53 var INVALID_CATEGORY_SUBTYPE = ''; 54 var INVALID_CATEGORY_SUBTYPE = '';
54 55
55 return { 56 return {
56 ContentSettingsTypes: ContentSettingsTypes, 57 ContentSettingsTypes: ContentSettingsTypes,
57 PermissionValues: PermissionValues, 58 PermissionValues: PermissionValues,
58 ALL_SITES: ALL_SITES, 59 ALL_SITES: ALL_SITES,
59 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, 60 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE,
60 }; 61 };
61 }); 62 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698