From 7de3e6aeb6778b03f4f7431eeece3db2a22466f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B8is=C3=A6ther=20Rasch?= Date: Tue, 22 Sep 2015 12:11:28 +0200 Subject: [PATCH] Added/Updated system.memory /w docs --- chrome/chrome.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index 5d7c79d12d..f9af3af941 100755 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -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 ////////////////////