OLD | NEW |
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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.contextMenu", |
251 "experimental.extension", | 251 "experimental.extension", |
252 "experimental.idle", | 252 "experimental.idle", |
253 "experimental.history", | |
254 "experimental.infobars", | 253 "experimental.infobars", |
255 "experimental.metrics", | 254 "experimental.metrics", |
256 "experimental.popup", | 255 "experimental.popup", |
257 "experimental.processes", | 256 "experimental.processes", |
| 257 "history", |
258 "pageAction", | 258 "pageAction", |
259 "pageActions", | 259 "pageActions", |
260 "tabs", | 260 "tabs", |
261 "test", | 261 "test", |
262 "toolstrip", | 262 "toolstrip", |
263 "windows", | 263 "windows", |
264 | 264 |
265 // Functions/events/properties within the extension namespace. | 265 // Functions/events/properties within the extension namespace. |
266 "extension.getBackgroundPage", | 266 "extension.getBackgroundPage", |
267 "extension.getExtensionTabs", | 267 "extension.getExtensionTabs", |
268 "extension.getToolstrips", | 268 "extension.getToolstrips", |
269 "extension.getViews", | 269 "extension.getViews", |
270 "extension.lastError", | 270 "extension.lastError", |
271 "extension.onConnectExternal", | 271 "extension.onConnectExternal", |
272 "extension.onRequestExternal", | 272 "extension.onRequestExternal", |
273 "i18n.getAcceptLanguages" | 273 "i18n.getAcceptLanguages" |
274 ]; | 274 ]; |
275 for (var i = 0; i < privileged.length; i++) { | 275 for (var i = 0; i < privileged.length; i++) { |
276 createStub(privileged[i]); | 276 createStub(privileged[i]); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 })(); | 280 })(); |
OLD | NEW |