| Index: third_party/chrome/idl/experimental_system_info_cpu.idl
|
| diff --git a/third_party/chrome/idl/experimental_system_info_cpu.idl b/third_party/chrome/idl/experimental_system_info_cpu.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e2308b3c0ce558b8bd6ac46bc68eb7ed6d0a7d5
|
| --- /dev/null
|
| +++ b/third_party/chrome/idl/experimental_system_info_cpu.idl
|
| @@ -0,0 +1,37 @@
|
| +// 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 CpuInfo {
|
| + // 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 info);
|
| +
|
| + interface Functions {
|
| + // Get CPU information.
|
| + static void get(CpuInfoCallback callback);
|
| + };
|
| +
|
| + interface Events {
|
| + // Fired periodically to report CPU history usage information. The default
|
| + // period interval is 1 seconds.
|
| + static void onUpdated(CpuUpdateInfo info);
|
| + };
|
| +};
|
|
|