Merge branch 'master' into rename-repo-url

This commit is contained in:
vvakame
2016-03-17 21:06:54 +09:00
1140 changed files with 179704 additions and 179635 deletions
+19 -19
View File
@@ -9,7 +9,7 @@
////////////////////
// App Runtime
////////////////////
declare module chrome.app.runtime {
declare namespace chrome.app.runtime {
interface LaunchData {
id?: string;
items?: LaunchDataItem[];
@@ -34,7 +34,7 @@ declare module chrome.app.runtime {
////////////////////
// App Window
////////////////////
declare module chrome.app.window {
declare namespace chrome.app.window {
interface ContentBounds {
left?: number;
top?: number;
@@ -146,7 +146,7 @@ declare module chrome.app.window {
////////////////////
// fileSystem
////////////////////
declare module chrome.fileSystem {
declare namespace chrome.fileSystem {
interface AcceptOptions {
description?: string;
@@ -177,11 +177,11 @@ declare module chrome.fileSystem {
////////////////////
// Media Galleries
////////////////////
declare module chrome.mediaGalleries {
declare namespace chrome.mediaGalleries {
interface MediaFileSystemsOptions {
interactive?: 'no' | 'yes' | 'if_needed';
}
interface MediaFileSystemMetadata {
name: string;
galleryId: string;
@@ -190,7 +190,7 @@ declare module chrome.mediaGalleries {
isMediaDevice: boolean;
isAvailable: boolean;
}
interface MetadataOptions {
metadataType: 'all' | 'mimeTypeAndTags' | 'mimeTypeOnly';
}
@@ -199,7 +199,7 @@ declare module chrome.mediaGalleries {
type: string;
tags: { [name: string]: string; };
}
interface Metadata {
// The browser sniffed mime type.
mimeType: string;
@@ -236,17 +236,17 @@ declare module chrome.mediaGalleries {
// The images embedded in the media file's metadata. This is most often used for album art or video thumbnails.
attachedImages: Blob[];
}
interface GalleryWatchResult {
galleryId: string;
success: boolean;
}
interface GalleryChangedEventArgs {
type: 'contents_changed' | 'watch_dropped';
galleryId: string;
}
interface ScanProgressEventArgs {
// The type of progress event, i.e. start, finish, etc.
type: 'start' | 'cancel' | 'finish' | 'error';
@@ -257,7 +257,7 @@ declare module chrome.mediaGalleries {
imageCount?: number;
videoCount?: number;
}
export function getMediaFileSystems(callback: (mediaFileSystems: FileSystem[]) => void): void;
export function getMediaFileSystems(options: MediaFileSystemsOptions, callback: (mediaFileSystems: FileSystem[]) => void): void;
export function addUserSelectedFolder(callback: (mediaFileSystems: FileSystem[], selectedFileSystemName: string) => void): void;
@@ -273,7 +273,7 @@ declare module chrome.mediaGalleries {
export function removeGalleryWatch(galleryId: string): void;
export function getAllGalleryWatch(callback: (galleryIds: string[]) => void): void;
export function removeAllGalleryWatch(): void;
var onGalleryChanged: chrome.events.Event<(args: GalleryChangedEventArgs) => void>;
var onScanProgress: chrome.events.Event<(args: ScanProgressEventArgs) => void>;
}
@@ -281,7 +281,7 @@ declare module chrome.mediaGalleries {
////////////////////
// Sockets
////////////////////
declare module chrome.sockets.tcp {
declare namespace chrome.sockets.tcp {
interface CreateInfo {
socketId: number;
}
@@ -344,7 +344,7 @@ declare module chrome.sockets.tcp {
var onReceiveError: chrome.events.Event<(args: ReceiveErrorEventArgs) => void>;
}
declare module chrome.sockets.udp {
declare namespace chrome.sockets.udp {
interface CreateInfo {
socketId: number;
}
@@ -403,7 +403,7 @@ declare module chrome.sockets.udp {
var onReceiveError: chrome.events.Event<(args: ReceiveErrorEventArgs) => void>;
}
declare module chrome.sockets.tcpServer {
declare namespace chrome.sockets.tcpServer {
interface CreateInfo {
socketId: number;
}
@@ -459,7 +459,7 @@ declare module chrome.sockets.tcpServer {
* Permissions: "system.display"
* @since Chrome 30.
*/
declare module chrome.system.display {
declare namespace chrome.system.display {
interface Bounds {
/** The x-coordinate of the upper-left corner. */
left: number;
@@ -539,7 +539,7 @@ declare module chrome.system.display {
////////////////////
// System - Network
////////////////////
declare module chrome.system.network {
declare namespace chrome.system.network {
interface NetworkInterface {
name: string;
address: string;
@@ -549,7 +549,7 @@ declare module chrome.system.network {
export function getNetworkInterfaces(callback: (networkInterfaces: NetworkInterface[]) => void): void;
}
declare module chrome.runtime {
declare namespace chrome.runtime {
interface Manifest {
app?: {
background?: {
@@ -598,7 +598,7 @@ declare module chrome.runtime {
////////////////////
// USB
////////////////////
declare module chrome.usb {
declare namespace chrome.usb {
type Direction = 'in' | 'out';
interface Device {
+40 -40
View File
@@ -7,7 +7,7 @@
// Cast
// @see https://code.google.com/p/chromium/codesearch#chromium/src/ui/file_manager/externs/chrome_cast.js
////////////////////
declare module chrome.cast {
declare namespace chrome.cast {
/**
* @enum {string}
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.AutoJoinPolicy
@@ -424,7 +424,7 @@ declare module chrome.cast {
successCallback: (media: chrome.cast.media.Media) => void,
errorCallback: (error: chrome.cast.Error) => void
):void
/**
* @param {!chrome.cast.media.QueueLoadRequest} queueLoadRequest
* @param {function(!chrome.cast.media.Media)} successCallback
@@ -494,10 +494,10 @@ declare module chrome.cast {
}
}
declare module chrome.cast.media {
declare namespace chrome.cast.media {
var DEFAULT_MEDIA_RECEIVER_APP_ID: string;
/**
* @enum {string}
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MediaCommand
@@ -561,7 +561,7 @@ declare module chrome.cast.media {
FINISHED: string;
ERROR: string;
}
/**
* @enum {string}
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.RepeatMode
@@ -572,7 +572,7 @@ declare module chrome.cast.media {
SINGLE:string;
ALL_AND_SHUFFLE:string;
}
interface QueueItem {
/**
* @param {!chrome.cast.media.MediaInfo} mediaInfo
@@ -582,7 +582,7 @@ declare module chrome.cast.media {
new(
mediaInfo: chrome.cast.media.MediaInfo
):QueueItem;
activeTrackIds: Array<Number>;
autoplay: boolean;
customData: Object;
@@ -591,7 +591,7 @@ declare module chrome.cast.media {
preloadTime: number;
startTime: number;
}
interface QueueLoadRequest {
/**
* @param {!Array<chrome.cast.media.QueueItem>} items
@@ -601,13 +601,13 @@ declare module chrome.cast.media {
new(
items: Array<chrome.cast.media.QueueItem>
):QueueLoadRequest;
customData: Object;
items: Array<chrome.cast.media.QueueItem>;
repeatMode: chrome.cast.media.RepeatMode;
startIndex: number;
}
interface QueueInsertItemsRequest {
/**
* @param {!Array<chrome.cast.media.QueueItem>}
@@ -617,12 +617,12 @@ declare module chrome.cast.media {
new(
itemsToInsert: Array<chrome.cast.media.QueueItem>
):QueueInsertItemsRequest;
customData: Object;
insertBefore:number;
items: Array<chrome.cast.media.QueueItem>;
}
interface QueueRemoveItemsRequest {
/**
* @param {!Array<number>}
@@ -632,11 +632,11 @@ declare module chrome.cast.media {
new(
itemIdsToRemove: Array<number>
):QueueRemoveItemsRequest;
customData: Object;
itemIds: Array<number>;
}
interface QueueReorderItemsRequest {
/**
* @param {!Array<number>}
@@ -646,12 +646,12 @@ declare module chrome.cast.media {
new(
itemIdsToReorder: Array<number>
):QueueReorderItemsRequest;
customData: Object;
insertBefore: number;
itemIds: Array<number>;
}
interface QueueUpdateItemsRequest {
/**
* @param {!Array<chrome.cast.media.QueueItem>}
@@ -661,11 +661,11 @@ declare module chrome.cast.media {
new(
itemsToUpdate: Array<chrome.cast.media.QueueItem>
):QueueUpdateItemsRequest;
customData: Object;
item: Array<chrome.cast.media.QueueItem>;
}
/**
* @enum {string}
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TrackType
@@ -848,7 +848,7 @@ declare module chrome.cast.media {
releaseYear: number;
subtitle: string;
title: string;
/** @deprecated. Use metadataType instead. */
/** @deprecated. Use metadataType instead. */
type: chrome.cast.media.MetadataType;
}
@@ -858,7 +858,7 @@ declare module chrome.cast.media {
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MovieMediaMetadata
*/
new():MovieMediaMetadata;
images: Array<chrome.cast.Image>;
metadataType: chrome.cast.media.MetadataType;
releaseDate: string;
@@ -917,11 +917,11 @@ declare module chrome.cast.media {
images: Array<chrome.cast.Image>;
releaseDate: string;
/** @deprecated. Use metadataType instead. */
/** @deprecated. Use metadataType instead. */
type: chrome.cast.media.MetadataType;
/** @deprecated. Use artist instead. */
/** @deprecated. Use artist instead. */
artistName: string;
/** @deprecated. Use releaseDate instead. */
/** @deprecated. Use releaseDate instead. */
releaseYear: number;
}
@@ -943,7 +943,7 @@ declare module chrome.cast.media {
height: number;
creationDateTime: string;
/** @deprecated. Use metadataType instead. */
/** @deprecated. Use metadataType instead. */
type: chrome.cast.media.MetadataType;
}
@@ -996,7 +996,7 @@ declare module chrome.cast.media {
sessionId: string;
supportedMediaCommands: Array<chrome.cast.media.MediaCommand>;
volume: chrome.cast.Volume;
/** @deprecated. Use getEstimatedTime instead */
currentTime: number;
@@ -1104,7 +1104,7 @@ declare module chrome.cast.media {
* @suppress {deprecated} Uses currentTime member to compute estimated time.
*/
getEstimatedTime(): number
/**
* @param {!chrome.cast.media.QueueItem} item
* @param {function()} successCallback
@@ -1115,7 +1115,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!chrome.cast.media.QueueInsertItemsRequest} queueInsertItemsRequest
* @param {function()} successCallback
@@ -1126,7 +1126,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!number} itemId
* @param {function()} successCallback
@@ -1137,7 +1137,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!number} itemId
* @param {!number} newIndex
@@ -1150,7 +1150,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {function()} successCallback
* @param {function(!chrome.cast.Error)} errorCallback
@@ -1159,8 +1159,8 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
/**
* @param {function()} successCallback
* @param {function(!chrome.cast.Error)} errorCallback
*/
@@ -1168,7 +1168,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!number} itemId
* @param {function()} successCallback
@@ -1179,7 +1179,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!chrome.cast.media.QueueReorderItemsRequest} queueReorderItemsRequest
* @param {function()} successCallback
@@ -1190,7 +1190,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!chrome.cast.media.RepeatMode} repeatMode
* @param {function()} successCallback
@@ -1201,7 +1201,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
/**
* @param {!chrome.cast.media.QueueUpdateItemsRequest} queueUpdateItemsRequest
* @param {function()} successCallback
@@ -1212,7 +1212,7 @@ declare module chrome.cast.media {
successCallback: Function,
errorCallback: (error: chrome.cast.Error) => void
): void
}
interface Track {
@@ -1263,7 +1263,7 @@ declare module chrome.cast.media {
* @namespace
* @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.timeout
*/
declare module chrome.cast.media.timeout {
declare namespace chrome.cast.media.timeout {
var load: number;
var getStatus: number;
var play: number;
@@ -1277,4 +1277,4 @@ declare module chrome.cast.media.timeout {
var queueRemove: number;
var queueReorder: number;
var queueUpdate: number;
}
}
+66 -66
View File
@@ -22,7 +22,7 @@ interface Window {
* Permissions: "accessibilityFeatures.read"
* Important: This API works only on Chrome OS.
*/
declare module chrome.accessibilityFeatures {
declare namespace chrome.accessibilityFeatures {
interface AccessibilityFeaturesGetArg {
/** Optional. Whether to return the value that applies to the incognito session (default false). */
incognito?: boolean;
@@ -116,7 +116,7 @@ declare module chrome.accessibilityFeatures {
* Availability: Since Chrome 22.
* Permissions: "alarms"
*/
declare module chrome.alarms {
declare namespace chrome.alarms {
interface AlarmCreateInfo {
/** Optional. Length of time in minutes after which the onAlarm event should fire. */
delayInMinutes?: number;
@@ -199,7 +199,7 @@ declare module chrome.alarms {
* Use the chrome.browser API to interact with the Chrome browser associated with
* the current application and Chrome profile.
*/
declare module chrome.browser {
declare namespace chrome.browser {
interface Options {
/** The URL to navigate to when the new tab is initially opened. */
url: string;
@@ -232,7 +232,7 @@ declare module chrome.browser {
* Availability: Since Chrome 5.
* Permissions: "bookmarks"
*/
declare module chrome.bookmarks {
declare namespace chrome.bookmarks {
/** A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder. */
interface BookmarkTreeNode {
/** Optional. The 0-based position of this node within its parent folder. */
@@ -433,7 +433,7 @@ declare module chrome.bookmarks {
* Availability: Since Chrome 5.
* Manifest: "browser_action": {...}
*/
declare module chrome.browserAction {
declare namespace chrome.browserAction {
interface BadgeBackgroundColorDetails {
/** An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00. */
color: any;
@@ -545,7 +545,7 @@ declare module chrome.browserAction {
* Availability: Since Chrome 19.
* Permissions: "browsingData"
*/
declare module chrome.browsingData {
declare namespace chrome.browsingData {
interface OriginTypes {
/** Optional. Websites that have been installed as hosted applications (be careful!). */
protectedWeb?: boolean;
@@ -723,7 +723,7 @@ declare module chrome.browsingData {
* Availability: Since Chrome 25.
* Manifest: "commands": {...}
*/
declare module chrome.commands {
declare namespace chrome.commands {
interface Command {
/** Optional. The name of the Extension Command */
name?: string;
@@ -755,7 +755,7 @@ declare module chrome.commands {
* Availability: Since Chrome 16.
* Permissions: "contentSettings"
*/
declare module chrome.contentSettings {
declare namespace chrome.contentSettings {
interface ClearDetails {
/**
* Optional.
@@ -941,7 +941,7 @@ declare module chrome.contentSettings {
* Availability: Since Chrome 6.
* Permissions: "contextMenus"
*/
declare module chrome.contextMenus {
declare namespace chrome.contextMenus {
interface OnClickData {
/**
* Optional.
@@ -1130,7 +1130,7 @@ declare module chrome.contextMenus {
* Availability: Since Chrome 6.
* Permissions: "cookies", host permissions
*/
declare module chrome.cookies {
declare namespace chrome.cookies {
/** Represents information about an HTTP cookie. */
interface Cookie {
/** The domain of the cookie (e.g. "www.google.com", "example.com"). */
@@ -1377,7 +1377,7 @@ declare module "chrome.debugger" {
* Availability: Since Chrome 33.
* Permissions: "declarativeContent"
*/
declare module chrome.declarativeContent {
declare namespace chrome.declarativeContent {
interface PageStateUrlDetails {
/** Optional. Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name. */
hostContains?: string;
@@ -1439,7 +1439,7 @@ declare module chrome.declarativeContent {
////////////////////
// Declarative Web Request
////////////////////
declare module chrome.declarativeWebRequest {
declare namespace chrome.declarativeWebRequest {
interface HeaderFilter {
nameEquals?: string;
valueContains?: any;
@@ -1553,7 +1553,7 @@ declare module chrome.declarativeWebRequest {
* Availability: Since Chrome 34.
* Permissions: "desktopCapture"
*/
declare module chrome.desktopCapture {
declare namespace chrome.desktopCapture {
/**
* Shows desktop media picker UI with the specified set of sources.
* @param sources Set of sources that should be shown to the user.
@@ -1585,7 +1585,7 @@ declare module chrome.desktopCapture {
* Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.
* Availability: Since Chrome 18.
*/
declare module chrome.devtools.inspectedWindow {
declare namespace chrome.devtools.inspectedWindow {
/** A resource within the inspected page, such as a document, a script, or an image. */
interface Resource {
/** The URL of the resource. */
@@ -1681,7 +1681,7 @@ declare module chrome.devtools.inspectedWindow {
* Use the chrome.devtools.network API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.
* Availability: Since Chrome 18.
*/
declare module chrome.devtools.network {
declare namespace chrome.devtools.network {
/** Represents a network request for a document resource (script, image and so on). See HAR Specification for reference. */
interface Request {
/**
@@ -1721,7 +1721,7 @@ declare module chrome.devtools.network {
* Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars.
* Availability: Since Chrome 18.
*/
declare module chrome.devtools.panels {
declare namespace chrome.devtools.panels {
interface PanelShownEvent extends chrome.events.Event<(window: chrome.windows.Window) => void> {}
interface PanelHiddenEvent extends chrome.events.Event<() => void> {}
@@ -1899,7 +1899,7 @@ declare module chrome.devtools.panels {
* Permissions: "documentScan"
* Important: This API works only on Chrome OS.
*/
declare module chrome.documentScan {
declare namespace chrome.documentScan {
interface DocumentScanOptions {
/** Optional. The MIME types that are accepted by the caller. */
mimeTypes?: string[];
@@ -1932,7 +1932,7 @@ declare module chrome.documentScan {
* Availability: Since Chrome 31.
* Permissions: "downloads"
*/
declare module chrome.downloads {
declare namespace chrome.downloads {
interface HeaderNameValuePair {
/** Name of the HTTP header. */
name: string;
@@ -2232,7 +2232,7 @@ declare module chrome.downloads {
* Important: This API works only on Chrome OS.
* Note: This API is only for extensions pre-installed by policy.
*/
declare module chrome.enterprise.platformKeys {
declare namespace chrome.enterprise.platformKeys {
interface Token {
/**
* Uniquely identifies this Token.
@@ -2291,7 +2291,7 @@ declare module chrome.enterprise.platformKeys {
* The chrome.events namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
* Availability: Since Chrome 21.
*/
declare module chrome.events {
declare namespace chrome.events {
/** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */
interface UrlFilter {
/** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array. */
@@ -2434,7 +2434,7 @@ declare module chrome.events {
* The chrome.extension API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in detail in Message Passing.
* Availability: Since Chrome 5.
*/
declare module chrome.extension {
declare namespace chrome.extension {
interface FetchProperties {
/** Optional. The window to restrict the search to. If omitted, returns all views. */
windowId?: number;
@@ -2531,7 +2531,7 @@ declare module chrome.extension {
* Permissions: "fileBrowserHandler"
* Important: This API works only on Chrome OS.
*/
declare module chrome.fileBrowserHandler {
declare namespace chrome.fileBrowserHandler {
interface SelectionParams {
/**
* Optional.
@@ -2584,7 +2584,7 @@ declare module chrome.fileBrowserHandler {
* Permissions: "fileSystemProvider"
* Important: This API works only on Chrome OS.
*/
declare module chrome.fileSystemProvider {
declare namespace chrome.fileSystemProvider {
interface OpenedFileInfo {
/** A request ID to be be used by consecutive read/write and close requests. */
openRequestId: number;
@@ -2935,7 +2935,7 @@ declare module chrome.fileSystemProvider {
* Availability: Since Chrome 22.
* Permissions: "fontSettings"
*/
declare module chrome.fontSettings {
declare namespace chrome.fontSettings {
/** Represents a font name. */
interface FontName {
/** The display name of the font. */
@@ -3102,7 +3102,7 @@ declare module chrome.fontSettings {
* Availability: Since Chrome 35.
* Permissions: "gcm"
*/
declare module chrome.gcm {
declare namespace chrome.gcm {
interface OutgoingMessage {
/** The ID of the server to send the message to as assigned by Google API Console. */
destinationId: string;
@@ -3190,7 +3190,7 @@ declare module chrome.gcm {
* Availability: Since Chrome 5.
* Permissions: "history"
*/
declare module chrome.history {
declare namespace chrome.history {
/** An object encapsulating one visit to a URL. */
interface VisitItem {
/** The transition type for this visit from its referrer. */
@@ -3305,7 +3305,7 @@ declare module chrome.history {
* Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension.
* @since Chrome 5.
*/
declare module chrome.i18n {
declare namespace chrome.i18n {
/**
* Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use i18n.getUILanguage.
* @param callback The callback parameter should be a function that looks like this:
@@ -3334,7 +3334,7 @@ declare module chrome.i18n {
* Permissions: "identity"
* @since Chrome 29.
*/
declare module chrome.identity {
declare namespace chrome.identity {
/** @since Chrome 32. */
interface AccountInfo {
/** A unique identifier for the account. This ID will not change for the lifetime of the account. */
@@ -3453,7 +3453,7 @@ declare module chrome.identity {
* Permissions: "idle"
* @since Chrome 6.
*/
declare module chrome.idle {
declare namespace chrome.idle {
interface IdleStateChangedEvent extends chrome.events.Event<(newState: string) => void> {}
/**
@@ -3483,7 +3483,7 @@ declare module chrome.idle {
* Permissions: "input"
* @since Chrome 21.
*/
declare module chrome.input.ime {
declare namespace chrome.input.ime {
/** See http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent */
interface KeyboardEvent {
/**
@@ -3880,7 +3880,7 @@ declare module chrome.input.ime {
* Permissions: "management"
* @since Chrome 8.
*/
declare module chrome.management {
declare namespace chrome.management {
/** Information about an installed extension, app, or theme. */
interface ExtensionInfo {
/**
@@ -4130,7 +4130,7 @@ declare module chrome.management {
* Important: This API works only on Chrome OS.
* @since Chrome 43.
*/
declare module chrome.networking.config {
declare namespace chrome.networking.config {
interface NetworkInfo {
/** Currently only WiFi supported. */
Type: string;
@@ -4183,7 +4183,7 @@ declare module chrome.networking.config {
* Permissions: "notifications"
* @since Chrome 28.
*/
declare module chrome.notifications {
declare namespace chrome.notifications {
interface ButtonOptions {
title: string;
iconUrl?: string;
@@ -4339,7 +4339,7 @@ declare module chrome.notifications {
* Manifest: "omnibox": {...}
* @since Chrome 9.
*/
declare module chrome.omnibox {
declare namespace chrome.omnibox {
/** A suggest result. */
interface SuggestResult {
/** The text that is put into the URL bar, and that is sent to the extension when the user chooses this entry. */
@@ -4385,7 +4385,7 @@ declare module chrome.omnibox {
* Manifest: "page_action": {...}
* @since Chrome 5.
*/
declare module chrome.pageAction {
declare namespace chrome.pageAction {
interface PageActionClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
interface TitleDetails {
@@ -4474,7 +4474,7 @@ declare module chrome.pageAction {
* Permissions: "pageCapture"
* @since Chrome 18.
*/
declare module chrome.pageCapture {
declare namespace chrome.pageCapture {
interface SaveDetails {
/** The id of the tab to save as MHTML. */
tabId: number;
@@ -4497,7 +4497,7 @@ declare module chrome.pageCapture {
* Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary.
* @since Chrome 16.
*/
declare module chrome.permissions {
declare namespace chrome.permissions {
interface Permissions {
/**
* Optional.
@@ -4573,7 +4573,7 @@ declare module chrome.permissions {
* Important: This API works only on Chrome OS.
* @since Chrome 45.
*/
declare module chrome.platformKeys {
declare namespace chrome.platformKeys {
interface Match {
/** The DER encoding of a X.509 certificate. */
certificate: ArrayBuffer;
@@ -4652,7 +4652,7 @@ declare module chrome.platformKeys {
* Permissions: "power"
* @since Chrome 27.
*/
declare module chrome.power {
declare namespace chrome.power {
/** Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request. */
export function requestKeepAwake(level: string): void;
/** Releases a request previously made via requestKeepAwake(). */
@@ -4667,7 +4667,7 @@ declare module chrome.power {
* Permissions: "printerProvider"
* @since Chrome 44.
*/
declare module chrome.printerProvider {
declare namespace chrome.printerProvider {
interface PrinterInfo {
/** Unique printer ID. */
id: string;
@@ -4726,7 +4726,7 @@ declare module chrome.printerProvider {
* The Chrome Privacy Whitepaper gives background detail regarding the features which this API can control.
* @since Chrome 18.
*/
declare module chrome.privacy {
declare namespace chrome.privacy {
interface Services {
/** since Chrome 20. */
spellingServiceEnabled: chrome.types.ChromeSetting;
@@ -4776,7 +4776,7 @@ declare module chrome.privacy {
* Permissions: "proxy"
* @since Chrome 13.
*/
declare module chrome.proxy {
declare namespace chrome.proxy {
/** An object holding proxy auto-config information. Exactly one of the fields should be non-empty. */
interface PacScript {
/** Optional. URL of the PAC file to be used. */
@@ -4852,7 +4852,7 @@ declare module chrome.proxy {
* Use the chrome.runtime API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
* @since Chrome 22
*/
declare module chrome.runtime {
declare namespace chrome.runtime {
/** This will be defined during an API method callback if there was an error */
var lastError: LastError;
/** The ID of the extension/app. */
@@ -4981,17 +4981,17 @@ declare module chrome.runtime {
interface RuntimeRestartRequiredEvent extends chrome.events.Event<(reason: string) => void> {}
interface RuntimeUpdateAvailableEvent extends chrome.events.Event<(details: UpdateAvailableDetails) => void> {}
interface ManifestIcons {
[size: number]: string;
}
interface ManifestAction {
default_icon?: ManifestIcons;
default_title?: string;
default_popup?: string;
}
interface SearchProvider {
name?: string;
keyword?: string;
@@ -5009,7 +5009,7 @@ declare module chrome.runtime {
prepopulated_id?: number;
is_default?: boolean;
}
interface Manifest {
// Required
manifest_version: number;
@@ -5354,7 +5354,7 @@ declare module chrome.runtime {
////////////////////
// Script Badge
////////////////////
declare module chrome.scriptBadge {
declare namespace chrome.scriptBadge {
interface GetPopupDetails {
tabId: number;
}
@@ -5385,7 +5385,7 @@ declare module chrome.scriptBadge {
* Permissions: "sessions"
* @since Chrome 37.
*/
declare module chrome.sessions {
declare namespace chrome.sessions {
interface Filter {
/**
* Optional.
@@ -5466,7 +5466,7 @@ declare module chrome.sessions {
* Permissions: "storage"
* @since Chrome 20.
*/
declare module chrome.storage {
declare namespace chrome.storage {
interface StorageArea {
/**
* Gets the amount of space (in bytes) being used by one or more items.
@@ -5599,7 +5599,7 @@ declare module chrome.storage {
////////////////////
// Socket
////////////////////
declare module chrome.socket {
declare namespace chrome.socket {
interface CreateInfo {
socketId: number;
}
@@ -5664,7 +5664,7 @@ declare module chrome.socket {
* Permissions: "system.cpu"
* @since Chrome 32.
*/
declare module chrome.system.cpu {
declare namespace chrome.system.cpu {
interface ProcessorUsage {
/** The cumulative time used by userspace programs on this processor. */
user: number;
@@ -5709,7 +5709,7 @@ declare module chrome.system.cpu {
* Permissions: "system.memory"
* @since Chrome 32.
*/
declare module chrome.system.memory {
declare namespace chrome.system.memory {
interface MemoryInfo {
/** The total amount of physical memory capacity, in bytes. */
capacity: number;
@@ -5729,7 +5729,7 @@ declare module chrome.system.memory {
* Permissions: "system.storage"
* @since Chrome 30.
*/
declare module chrome.system.storage {
declare namespace chrome.system.storage {
interface StorageUnitInfo {
/** The transient ID that uniquely identifies the storage device. This ID will be persistent within the same run of a single application. It will not be a persistent identifier between different runs of an application, or between different applications. */
id: string;
@@ -5785,7 +5785,7 @@ declare module chrome.system.storage {
* Permissions: "tabCapture"
* @since Chrome 31.
*/
declare module chrome.tabCapture {
declare namespace chrome.tabCapture {
interface CaptureInfo {
/** The id of the tab whose status changed. */
tabId: number;
@@ -5835,7 +5835,7 @@ declare module chrome.tabCapture {
* Permissions: The majority of the chrome.tabs API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab.
* @since Chrome 5.
*/
declare module chrome.tabs {
declare namespace chrome.tabs {
/**
* Tab muted state and the reason for the last state change.
* @since Chrome 46. Warning: this is the current Beta channel.
@@ -6580,7 +6580,7 @@ declare module chrome.tabs {
* Permissions: "topSites"
* @since Chrome 19.
*/
declare module chrome.topSites {
declare namespace chrome.topSites {
/** An object encapsulating a most visited URL, such as the URLs on the new tab page. */
interface MostVisitedURL {
/** The most visited URL. */
@@ -6601,7 +6601,7 @@ declare module chrome.topSites {
* Permissions: "tts"
* @since Chrome 14.
*/
declare module chrome.tts {
declare namespace chrome.tts {
/** An event from the TTS engine to communicate the status of an utterance. */
interface TtsEvent {
/** Optional. The index of the current character in the utterance. */
@@ -6716,7 +6716,7 @@ declare module chrome.tts {
* Permissions: "ttsEngine"
* @since Chrome 14.
*/
declare module chrome.ttsEngine {
declare namespace chrome.ttsEngine {
interface SpeakOptions {
/** Optional. The language to be used for synthesis, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */
lang?: string;
@@ -6763,7 +6763,7 @@ declare module chrome.ttsEngine {
* The chrome.types API contains type declarations for Chrome.
* @since Chrome 13.
*/
declare module chrome.types {
declare namespace chrome.types {
interface ChromeSettingClearDetails {
/**
* Optional.
@@ -6857,7 +6857,7 @@ declare module chrome.types {
* Important: This API works only on Chrome OS.
* @since Chrome 43.
*/
declare module chrome.vpnProvider {
declare namespace chrome.vpnProvider {
interface VpnSessionParameters {
/** IP address for the VPN interface in CIDR notation. IPv4 is currently the only supported mode. */
address: string;
@@ -6944,7 +6944,7 @@ declare module chrome.vpnProvider {
* Important: This API works only on Chrome OS.
* @since Chrome 43.
*/
declare module chrome.wallpaper {
declare namespace chrome.wallpaper {
interface WallpaperDetails {
/** Optional. The jpeg or png encoded wallpaper image. */
data?: any;
@@ -6977,7 +6977,7 @@ declare module chrome.wallpaper {
* Permissions: "webNavigation"
* @since Chrome 16.
*/
declare module chrome.webNavigation {
declare namespace chrome.webNavigation {
interface GetFrameDetails {
/**
* The ID of the process runs the renderer for this tab.
@@ -7145,7 +7145,7 @@ declare module chrome.webNavigation {
* Permissions: "webRequest", host permissions
* @since Chrome 17.
*/
declare module chrome.webRequest {
declare namespace chrome.webRequest {
interface AuthCredentials {
username: string;
password: string;
@@ -7371,7 +7371,7 @@ declare module chrome.webRequest {
* Use the chrome.webstore API to initiate app and extension installations "inline" from your site.
* @since Chrome 15.
*/
declare module chrome.webstore {
declare namespace chrome.webstore {
/**
* @param url Optional. If you have more than one <link> tag on your page with the chrome-webstore-item relation, you can choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page.
* @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension.
@@ -7472,7 +7472,7 @@ declare module chrome.webstore {
* Permissions: The chrome.windows API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab objects.
* @since Chrome 5.
*/
declare module chrome.windows {
declare namespace chrome.windows {
interface Window {
/** Array of tabs.Tab objects representing the current tabs in the window. */
tabs?: chrome.tabs.Tab[];