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

Unified Diff: remoting/webapp/jscompiler_hacks.js

Issue 23536033: Add 'New window' option to context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« remoting/webapp/background.js ('K') | « remoting/webapp/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = {
/**
« remoting/webapp/background.js ('K') | « remoting/webapp/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698