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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
322 "fileBrowserPrivate", | 322 "fileBrowserPrivate", |
323 "fileSystem", | 323 "fileSystem", |
324 "history", | 324 "history", |
325 "idle", | 325 "idle", |
326 "inputMethodPrivate", | 326 "inputMethodPrivate", |
327 "management", | 327 "management", |
328 "mediaPlayerPrivate", | 328 "mediaPlayerPrivate", |
329 "omnibox", | 329 "omnibox", |
330 "pageAction", | 330 "pageAction", |
331 "pageActions", | 331 "pageActions", |
332 "permissions", | |
jstritar
2011/07/19 17:10:53
I plan on making chrome.permissions accessible by
jstritar
2011/07/22 19:21:55
Done.
| |
332 "proxy", | 333 "proxy", |
333 "tabs", | 334 "tabs", |
334 "test", | 335 "test", |
335 "toolstrip", | 336 "toolstrip", |
336 "types", | 337 "types", |
337 "webSocketProxyPrivate", | 338 "webSocketProxyPrivate", |
338 "webstorePrivate", | 339 "webstorePrivate", |
339 "windows", | 340 "windows", |
340 | 341 |
341 // Functions/events/properties within the extension namespace. | 342 // Functions/events/properties within the extension namespace. |
342 "extension.getBackgroundPage", | 343 "extension.getBackgroundPage", |
343 "extension.getExtensionTabs", | 344 "extension.getExtensionTabs", |
344 "extension.getToolstrips", | 345 "extension.getToolstrips", |
345 "extension.getViews", | 346 "extension.getViews", |
346 "extension.isAllowedIncognitoAccess", | 347 "extension.isAllowedIncognitoAccess", |
347 "extension.isAllowedFileSchemeAccess", | 348 "extension.isAllowedFileSchemeAccess", |
348 "extension.onConnectExternal", | 349 "extension.onConnectExternal", |
349 "extension.onRequestExternal", | 350 "extension.onRequestExternal", |
350 "extension.setUpdateUrlData", | 351 "extension.setUpdateUrlData", |
351 "i18n.getAcceptLanguages" | 352 "i18n.getAcceptLanguages" |
352 ]; | 353 ]; |
353 for (var i = 0; i < privileged.length; i++) { | 354 for (var i = 0; i < privileged.length; i++) { |
354 createStub(privileged[i]); | 355 createStub(privileged[i]); |
355 } | 356 } |
356 } | 357 } |
357 | 358 |
358 })(); | 359 })(); |
OLD | NEW |