| 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..cc01114db9282dfc4be9e3fa75183b355fa3c2f9 100644
|
| --- a/chrome/common/extensions/api/experimental_system_info_cpu.idl
|
| +++ b/chrome/common/extensions/api/experimental_system_info_cpu.idl
|
| @@ -5,21 +5,27 @@
|
| // 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 usage percent of all processors, as a number
|
| + // between 0 and 100.
|
| + double averageUsage;
|
| + // The CPU usage array for each logic processor.
|
| + double[] usagePerProcessor;
|
| };
|
|
|
| - 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);
|
| };
|
| };
|
|
|