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

Unified Diff: third_party/chrome/idl/experimental_system_info_cpu.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
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);
+ };
+};
« no previous file with comments | « third_party/chrome/idl/experimental_speech_input.json ('k') | third_party/chrome/idl/experimental_system_info_display.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698