Index: remoting/webapp/jscompiler_hacks.js |
diff --git a/remoting/webapp/jscompiler_hacks.js b/remoting/webapp/jscompiler_hacks.js |
index ad4d7550e4df4642fb3448905a40d34e56073ec6..9ce1e811d2f54d72fe2dc7023e3af867fed5ee5e 100644 |
--- a/remoting/webapp/jscompiler_hacks.js |
+++ b/remoting/webapp/jscompiler_hacks.js |
@@ -121,6 +121,35 @@ chrome.app.window = { |
create: function(name, parameters) {} |
}; |
+/** |
+ * @type {Object} |
+ * @see http://code.google.com/chrome/extensions/dev/contextMenus.html |
+ */ |
+chrome.contextMenus = { |
+ /** @type {chrome.Event} */ |
+ onClicked: null, |
+ /** |
+ * @param {!Object} createProperties |
+ * @param {function()=} opt_callback |
Lambros
2013/09/06 22:16:14
nit: I think "opt_" is confusing, because it could
Jamie
2013/09/06 23:45:50
opt_ is a standard prefix for optional parameters
|
+ */ |
Lambros
2013/09/06 22:16:14
nit: Add @return, since create() returns integer o
Jamie
2013/09/06 23:45:50
Done.
|
+ create: function(createProperties, opt_callback) {}, |
+ /** |
+ * @param {string|number} menuItemId |
+ * @param {function()=} opt_callback |
+ */ |
+ remove: function(menuItemId, opt_callback) {}, |
+ /** |
+ * @param {function()=} opt_callback |
+ */ |
+ removeAll: function(opt_callback) {}, |
+ /** |
+ * @param {string|number} id |
+ * @param {!Object} updateProperties |
+ * @param {function()=} opt_callback |
+ */ |
+ update: function(id, updateProperties, opt_callback) {} |
+}; |
+ |
/** @type {Object} */ |
chrome.identity = { |
/** |