| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 "experimental.bookmarkManager", | 303 "experimental.bookmarkManager", |
| 304 "experimental.contentSettings.misc", | 304 "experimental.contentSettings.misc", |
| 305 "experimental.debugger", | 305 "experimental.debugger", |
| 306 "experimental.extension", | 306 "experimental.extension", |
| 307 "experimental.infobars", | 307 "experimental.infobars", |
| 308 "experimental.input", | 308 "experimental.input", |
| 309 "experimental.inputUI", | 309 "experimental.inputUI", |
| 310 "experimental.metrics", | 310 "experimental.metrics", |
| 311 "experimental.popup", | 311 "experimental.popup", |
| 312 "experimental.processes", | 312 "experimental.processes", |
| 313 "experimental.proxy", | |
| 314 "experimental.rlz", | 313 "experimental.rlz", |
| 315 "experimental.sidebar", | 314 "experimental.sidebar", |
| 316 "experimental.tts", | 315 "experimental.tts", |
| 317 "experimental.webNavigation", | 316 "experimental.webNavigation", |
| 318 "experimental.webRequest", | 317 "experimental.webRequest", |
| 319 "fileBrowserHandler", | 318 "fileBrowserHandler", |
| 320 "fileBrowserPrivate", | 319 "fileBrowserPrivate", |
| 321 "fileSystem", | 320 "fileSystem", |
| 322 "history", | 321 "history", |
| 323 "idle", | 322 "idle", |
| 324 "management", | 323 "management", |
| 325 "omnibox", | 324 "omnibox", |
| 326 "pageAction", | 325 "pageAction", |
| 327 "pageActions", | 326 "pageActions", |
| 327 "preferences", |
| 328 "proxy", |
| 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 |