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

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: Reviewer feedback and rebase 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
« no previous file with comments | « 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..57c9419dc097d58e642975bb57a4f1d4333f81e9 100644
--- a/remoting/webapp/jscompiler_hacks.js
+++ b/remoting/webapp/jscompiler_hacks.js
@@ -121,6 +121,36 @@ 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
+ * @return {string|number}
+ */
+ 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 = {
/**
« no previous file with comments | « remoting/webapp/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698