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