OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 to. | 9 // TODO(mpcomplete): we also load this in regular web pages, but don't need to. |
10 | 10 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 "experimental.sidebar", | 315 "experimental.sidebar", |
316 "experimental.tts", | 316 "experimental.tts", |
317 "experimental.webNavigation", | 317 "experimental.webNavigation", |
318 "experimental.webRequest", | 318 "experimental.webRequest", |
319 "fileBrowserHandler", | 319 "fileBrowserHandler", |
320 "fileBrowserPrivate", | 320 "fileBrowserPrivate", |
321 "fileSystem", | 321 "fileSystem", |
322 "history", | 322 "history", |
323 "idle", | 323 "idle", |
324 "management", | 324 "management", |
| 325 "mediaPlayerPrivate", |
325 "omnibox", | 326 "omnibox", |
326 "pageAction", | 327 "pageAction", |
327 "pageActions", | 328 "pageActions", |
328 "tabs", | 329 "tabs", |
329 "test", | 330 "test", |
330 "toolstrip", | 331 "toolstrip", |
331 "webSocketProxyPrivate", | 332 "webSocketProxyPrivate", |
332 "webstorePrivate", | 333 "webstorePrivate", |
333 "windows", | 334 "windows", |
334 | 335 |
335 // Functions/events/properties within the extension namespace. | 336 // Functions/events/properties within the extension namespace. |
336 "extension.getBackgroundPage", | 337 "extension.getBackgroundPage", |
337 "extension.getExtensionTabs", | 338 "extension.getExtensionTabs", |
338 "extension.getToolstrips", | 339 "extension.getToolstrips", |
339 "extension.getViews", | 340 "extension.getViews", |
340 "extension.isAllowedIncognitoAccess", | 341 "extension.isAllowedIncognitoAccess", |
341 "extension.isAllowedFileSchemeAccess", | 342 "extension.isAllowedFileSchemeAccess", |
342 "extension.onConnectExternal", | 343 "extension.onConnectExternal", |
343 "extension.onRequestExternal", | 344 "extension.onRequestExternal", |
344 "extension.setUpdateUrlData", | 345 "extension.setUpdateUrlData", |
345 "i18n.getAcceptLanguages" | 346 "i18n.getAcceptLanguages" |
346 ]; | 347 ]; |
347 for (var i = 0; i < privileged.length; i++) { | 348 for (var i = 0; i < privileged.length; i++) { |
348 createStub(privileged[i]); | 349 createStub(privileged[i]); |
349 } | 350 } |
350 } | 351 } |
351 | 352 |
352 })(); | 353 })(); |
OLD | NEW |