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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_manager_types.js

Issue 2101243004: [MD settings] certificate manager closure compilation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/certificate_manager_page/certificate_manager_types.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_manager_types.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_manager_types.js
new file mode 100644
index 0000000000000000000000000000000000000000..f7e15bd74a1b2f2738b7ddcb53802a67d3ac5c5b
--- /dev/null
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_manager_types.js
@@ -0,0 +1,63 @@
+// Copyright 2016 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.
+
+/**
+ * @fileoverview Closure compiler typedefs. This file is not included in the
+ * final Chromium build.
+ */
+
+/**
+ * @typedef {{
+ * extractable: boolean,
+ * id: string,
+ * name: string,
+ * policy: boolean,
+ * readonly: boolean,
+ * untrusted: boolean,
+ * }}
+ * @see chrome/browser/ui/webui/settings/certificates_handler.cc
+ */
+var CertificateSubnode;
+
+/**
+ * A data structure describing a certificate that is currently being imported,
+ * therefore it has no ID yet, but it has a name. Used within JS only.
+ * @typedef {{
+ * name: string,
+ * }}
+ */
+var NewCertificateSubNode;
+
+/**
+ * Enumeration of all possible certificate types.
+ * @enum {string}
+ */
+var CertificateType = {
+ CA: 'ca',
+ OTHER: 'other',
+ PERSONAL: 'personal',
+ SERVER: 'server',
+};
+
+/**
+ * The payload of the certificate-action event that is emitted from this
+ * component.
+ * @typedef {{
+ * action: !CertificateAction,
+ * subnode: (null|CertificateSubnode|NewCertificateSubNode),
+ * certificateType: !CertificateType
+ * }}
+ */
+var CertificateActionEventDetail;
+
+/**
+ * Enumeration of actions that require a popup menu to be shown to the user.
+ * @enum {number}
+ */
+var CertificateAction = {
+ DELETE: 0,
+ EDIT: 1,
+ EXPORT_PERSONAL: 2,
+ IMPORT: 3,
+};

Powered by Google App Engine
This is Rietveld 408576698