Chromium Code Reviews| Index: chrome/common/extensions/api/experimental_system_info_cpu.idl |
| diff --git a/chrome/common/extensions/api/experimental_system_info_cpu.idl b/chrome/common/extensions/api/experimental_system_info_cpu.idl |
| index 16c74027dbb7af1158f1972078a8a1bd12f2804c..c23cd52e42d362e58e143a4db1af38db9654c1f1 100644 |
| --- a/chrome/common/extensions/api/experimental_system_info_cpu.idl |
| +++ b/chrome/common/extensions/api/experimental_system_info_cpu.idl |
| @@ -5,21 +5,26 @@ |
| // File-level comment to appease parser. Eventually this will not be necessary. |
| namespace experimental.systemInfo.cpu { |
| - dictionary CpuCoreInfo { |
| - // Indicates the load of CPU core, as a number between 0 and 100. |
| - long load; |
| - }; |
| - |
| dictionary CpuInfo { |
| - // The array of the CPU processors in the system. |
| - CpuCoreInfo[] cores; |
| + // The number of logical processors. |
| + long numOfProcessors; |
| + // The architecture name of the processors. |
| + DOMString archName; |
| + // The model name of the processors. |
| + DOMString modelName; |
| + }; |
| + |
| + dictionary CpuUpdateInfo { |
| + // The average load of all processors, in percent number. |
| + long avgLoad; |
|
Mihai Parparita -not on Chrome
2012/09/04 20:23:47
Don't abbreviate "average".
Also, "load" seems li
Hongbo Min
2012/09/05 05:31:03
Done.
|
| + // The load array for each logic processors, in percent number. |
| + long[] loadsPerProcessor; |
| }; |
| - callback CpuInfoCallback = void (CpuInfo prop); |
| - callback CpuUpdateCallback = void (ChangeInfo info); |
| + callback CpuInfoCallback = void (CpuInfo info); |
| interface Functions { |
| - // Get CPU property. |
| + // Get CPU information. |
| static void get(CpuInfoCallback callback); |
| }; |
| }; |