OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // File-level comment to appease parser. Eventually this will not be necessary. | |
6 namespace experimental.systemInfo.cpu { | 5 namespace experimental.systemInfo.cpu { |
7 | 6 |
8 dictionary CpuInfo { | 7 dictionary CpuInfo { |
9 // The number of logical processors. | 8 // The number of logical processors. |
10 long numOfProcessors; | 9 long numOfProcessors; |
11 // The architecture name of the processors. | 10 // The architecture name of the processors. |
12 DOMString archName; | 11 DOMString archName; |
13 // The model name of the processors. | 12 // The model name of the processors. |
14 DOMString modelName; | 13 DOMString modelName; |
15 }; | 14 }; |
(...skipping 12 matching lines...) Expand all Loading... |
28 // Get CPU information. | 27 // Get CPU information. |
29 static void get(CpuInfoCallback callback); | 28 static void get(CpuInfoCallback callback); |
30 }; | 29 }; |
31 | 30 |
32 interface Events { | 31 interface Events { |
33 // Fired periodically to report CPU history usage information. The default | 32 // Fired periodically to report CPU history usage information. The default |
34 // period interval is 1 seconds. | 33 // period interval is 1 seconds. |
35 static void onUpdated(CpuUpdateInfo info); | 34 static void onUpdated(CpuUpdateInfo info); |
36 }; | 35 }; |
37 }; | 36 }; |
OLD | NEW |