Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: extensions/common/api/system_memory.idl

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/common/api/system_display.idl ('k') | extensions/common/api/system_network.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // The <code>chrome.system.memory</code> API. 5 // The <code>chrome.system.memory</code> API.
6 namespace system.memory { 6 namespace system.memory {
7 7
8 dictionary MemoryInfo { 8 dictionary MemoryInfo {
9 // The total amount of physical memory capacity, in bytes. 9 // The total amount of physical memory capacity, in bytes.
10 double capacity; 10 double capacity;
11 // The amount of available capacity, in bytes. 11 // The amount of available capacity, in bytes.
12 double availableCapacity; 12 double availableCapacity;
13 }; 13 };
14 14
15 callback MemoryInfoCallback = void (MemoryInfo info); 15 callback MemoryInfoCallback = void (MemoryInfo info);
16 16
17 interface Functions { 17 interface Functions {
18 // Get physical memory information. 18 // Get physical memory information.
19 static void getInfo(MemoryInfoCallback callback); 19 static void getInfo(MemoryInfoCallback callback);
20 }; 20 };
21 }; 21 };
OLDNEW
« no previous file with comments | « extensions/common/api/system_display.idl ('k') | extensions/common/api/system_network.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698