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

Side by Side Diff: chrome/renderer/resources/renderer_extension_bindings.js

Issue 1042003: Initial version of an experimental Extensions Context Menu API.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This script contains unprivileged javascript APIs related to chrome 5 // This script contains unprivileged javascript APIs related to chrome
6 // extensions. It is loaded by any extension-related context, such as content 6 // extensions. It is loaded by any extension-related context, such as content
7 // scripts or toolstrips. 7 // scripts or toolstrips.
8 // See user_script_slave.cc for script that is loaded by content scripts only. 8 // See user_script_slave.cc for script that is loaded by content scripts only.
9 // TODO(mpcomplete): we also load this in regular web pages, but don't need 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need
10 // to. 10 // to.
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // programmatically from extension_api.json (there is already a browser test 240 // programmatically from extension_api.json (there is already a browser test
241 // that should prevent it from getting stale). 241 // that should prevent it from getting stale).
242 var privileged = [ 242 var privileged = [
243 // Entire namespaces. 243 // Entire namespaces.
244 "bookmarks", 244 "bookmarks",
245 "browserAction", 245 "browserAction",
246 "devtools", 246 "devtools",
247 "experimental.accessibility", 247 "experimental.accessibility",
248 "experimental.bookmarkManager", 248 "experimental.bookmarkManager",
249 "experimental.clipboard", 249 "experimental.clipboard",
250 "experimental.contextMenu",
250 "experimental.extension", 251 "experimental.extension",
251 "experimental.idle", 252 "experimental.idle",
252 "experimental.history", 253 "experimental.history",
253 "experimental.infobars", 254 "experimental.infobars",
254 "experimental.metrics", 255 "experimental.metrics",
255 "experimental.popup", 256 "experimental.popup",
256 "experimental.processes", 257 "experimental.processes",
257 "pageAction", 258 "pageAction",
258 "pageActions", 259 "pageActions",
259 "tabs", 260 "tabs",
(...skipping 10 matching lines...) Expand all
270 "extension.onConnectExternal", 271 "extension.onConnectExternal",
271 "extension.onRequestExternal", 272 "extension.onRequestExternal",
272 "i18n.getAcceptLanguages" 273 "i18n.getAcceptLanguages"
273 ]; 274 ];
274 for (var i = 0; i < privileged.length; i++) { 275 for (var i = 0; i < privileged.length; i++) {
275 createStub(privileged[i]); 276 createStub(privileged[i]);
276 } 277 }
277 } 278 }
278 279
279 })(); 280 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698