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

Unified 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 side-by-side diff with in-line comments
Download patch
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..d2310c1979820abd96c8798062cf9bca528a1797
--- /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() {
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.
+
Dan Beam 2015/10/19 07:18:07 why this \n?
Finnur 2015/10/19 13:53:59 Done.
+ /**
+ * The possible contentSettingsTypes (the ones we currently support
+ * configuring in the UI).
+ * @enum {number}
+ */
+ var ContentSettingsTypes = {
+ COOKIES: 0,
+ IMAGES: 1,
+ JAVASCRIPT: 2,
+ POPUPS: 4,
+ GEOLOCATION: 5,
+ NOTIFICATION: 6,
+ FULLSCREEN: 8,
+ CAMERA: 13,
+ MIC: 14,
+ };
+
+ /**
+ * 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.
+ * @enum {number}
+ */
+ var DefaultValues = {
+ ALLOW: 1,
+ BLOCK: 2,
+ ASK: 3,
+ };
+
+ return {
+ ContentSettingsTypes: ContentSettingsTypes,
+ DefaultValues: DefaultValues,
+ };
+});

Powered by Google App Engine
This is Rietveld 408576698