Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/contentPolicy.js

Issue 29329680: Issue 3208 - Improve JSDoc comments (Closed)
Patch Set: Created Nov. 3, 2015, 11:33 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/child/contentPolicy.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/contentPolicy.js
===================================================================
--- a/lib/contentPolicy.js
+++ b/lib/contentPolicy.js
@@ -29,47 +29,48 @@ let {Prefs} = require("prefs");
let {FilterStorage} = require("filterStorage");
let {BlockingFilter, WhitelistFilter, RegExpFilter} = require("filterClasses");
let {defaultMatcher} = require("matcher");
let {objectMouseEventHander} = require("objectTabs");
let {ElemHide} = require("elemHide");
/**
* Randomly generated class name, to be applied to collapsed nodes.
+ * @type string
*/
let collapsedClass = "";
/**
* Public policy checking functions and auxiliary objects
* @class
*/
var Policy = exports.Policy =
{
/**
* Set of explicitly supported content types
- * @type Set
+ * @type Set.<string>
*/
contentTypes: new Set([
"OTHER", "SCRIPT", "IMAGE", "STYLESHEET", "OBJECT", "SUBDOCUMENT", "DOCUMENT",
"XMLHTTPREQUEST", "OBJECT_SUBREQUEST", "FONT", "MEDIA", "ELEMHIDE", "POPUP",
"GENERICHIDE", "GENERICBLOCK"
]),
/**
* Set of content types that aren't associated with a visual document area
- * @type Set
+ * @type Set.<string>
*/
nonVisualTypes: new Set([
"SCRIPT", "STYLESHEET", "XMLHTTPREQUEST", "OBJECT_SUBREQUEST", "FONT",
"ELEMHIDE", "POPUP", "GENERICHIDE", "GENERICBLOCK"
]),
/**
* Map containing all schemes that should be ignored by content policy.
- * @type Set
+ * @type Set.<string>
*/
whitelistSchemes: new Set(),
/**
* Called on module startup, initializes various exported properties.
*/
init: function()
{
« no previous file with comments | « lib/child/contentPolicy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld