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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // File-level comment to appease parser. Eventually this will not be necessary.
6 namespace experimental.systemInfo.cpu {
7
8 dictionary CpuInfo {
9 // The number of logical processors.
10 long numOfProcessors;
11 // The architecture name of the processors.
12 DOMString archName;
13 // The model name of the processors.
14 DOMString modelName;
15 };
16
17 dictionary CpuUpdateInfo {
18 // The average usage percent of all processors, as a number
19 // between 0 and 100.
20 double averageUsage;
21 // The CPU usage array for each logic processor.
22 double[] usagePerProcessor;
23 };
24
25 callback CpuInfoCallback = void (CpuInfo info);
26
27 interface Functions {
28 // Get CPU information.
29 static void get(CpuInfoCallback callback);
30 };
31
32 interface Events {
33 // Fired periodically to report CPU history usage information. The default
34 // period interval is 1 seconds.
35 static void onUpdated(CpuUpdateInfo info);
36 };
37 };
OLDNEW
« 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