| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..16c74027dbb7af1158f1972078a8a1bd12f2804c
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/experimental_system_info_cpu.idl
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// 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;
|
| + };
|
| +
|
| + callback CpuInfoCallback = void (CpuInfo prop);
|
| + callback CpuUpdateCallback = void (ChangeInfo info);
|
| +
|
| + interface Functions {
|
| + // Get CPU property.
|
| + static void get(CpuInfoCallback callback);
|
| + };
|
| +};
|
|
|