OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 systemInfo.cpu { | 5 namespace 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 }; |
16 | 15 |
17 callback CpuInfoCallback = void (CpuInfo info); | 16 callback CpuInfoCallback = void (CpuInfo info); |
18 | 17 |
19 interface Functions { | 18 interface Functions { |
20 // Queries basic CPU information of the system. | 19 // Queries basic CPU information of the system. |
21 static void get(CpuInfoCallback callback); | 20 static void get(CpuInfoCallback callback); |
22 }; | 21 }; |
23 }; | 22 }; |
OLD | NEW |