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

Unified Diff: Source/devtools/front_end/ui/ContextMenu.js

Issue 301163005: DevTools: [JSDoc] Avoid partial arg list annotations in code except "profiler" module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 7 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
« no previous file with comments | « Source/devtools/front_end/ui/Checkbox.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/ContextMenu.js
diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js
index 76b9504a76f80087b0125443bb3b932d75daddd9..0eb53028f5e7087517b9e18abb39c6591f2a136f 100644
--- a/Source/devtools/front_end/ui/ContextMenu.js
+++ b/Source/devtools/front_end/ui/ContextMenu.js
@@ -30,7 +30,7 @@
/**
* @constructor
- * @param {!WebInspector.ContextSubMenuItem} topLevelMenu
+ * @param {!WebInspector.ContextMenu} topLevelMenu
* @param {string} type
* @param {string=} label
* @param {boolean=} disabled
@@ -96,7 +96,7 @@ WebInspector.ContextMenuItem.prototype = {
/**
* @constructor
* @extends {WebInspector.ContextMenuItem}
- * @param topLevelMenu
+ * @param {!WebInspector.ContextMenu} topLevelMenu
* @param {string=} label
* @param {boolean=} disabled
*/
@@ -125,7 +125,7 @@ WebInspector.ContextSubMenuItem.prototype = {
/**
* @param {string} label
* @param {boolean=} disabled
- * @return {!WebInspector.ContextMenuItem}
+ * @return {!WebInspector.ContextSubMenuItem}
*/
appendSubMenuItem: function(label, disabled)
{
@@ -135,6 +135,9 @@ WebInspector.ContextSubMenuItem.prototype = {
},
/**
+ * @param {string} label
+ * @param {function()} handler
+ * @param {boolean=} checked
* @param {boolean=} disabled
* @return {!WebInspector.ContextMenuItem}
*/
@@ -186,10 +189,12 @@ WebInspector.ContextSubMenuItem.prototype = {
/**
* @constructor
* @extends {WebInspector.ContextSubMenuItem}
+ * @param {?Event} event
*/
-WebInspector.ContextMenu = function(event) {
+WebInspector.ContextMenu = function(event)
+{
WebInspector.ContextSubMenuItem.call(this, this, "");
- this._event = event;
+ this._event = /** @type {!Event} */ (event);
this._handlers = {};
this._id = 0;
}
@@ -227,6 +232,10 @@ WebInspector.ContextMenu.prototype = {
}
},
+ /**
+ * @param {number} id
+ * @param {function(?)} handler
+ */
_setHandler: function(id, handler)
{
if (handler)
@@ -278,6 +287,7 @@ WebInspector.ContextMenu.Provider = function() {
WebInspector.ContextMenu.Provider.prototype = {
/**
+ * @param {!Event} event
* @param {!WebInspector.ContextMenu} contextMenu
* @param {!Object} target
*/
« no previous file with comments | « Source/devtools/front_end/ui/Checkbox.js ('k') | Source/devtools/front_end/ui/SoftContextMenu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698