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