Added/Updated system.memory /w docs

This commit is contained in:
Fredrik Høisæther Rasch
2015-09-22 12:11:28 +02:00
parent d60a111f6c
commit 7de3e6aeb6
+20
View File
@@ -6106,6 +6106,26 @@ declare module chrome.system.cpu {
export function getInfo(callback: (info: CpuInfo) => void): void;
}
////////////////////
// System Memory
////////////////////
/**
* The chrome.system.memory API.
* Permissions: "system.memory"
* @since Chrome 32.
*/
declare module chrome.system.memory {
interface MemoryInfo {
/** The total amount of physical memory capacity, in bytes. */
capacity: number;
/** The amount of available capacity, in bytes. */
availableCapacity: number;
}
/** Get physical memory information. */
export function getInfo(callback: (info: MemoryInfo) => void): void;
}
////////////////////
// TabCapture
////////////////////