- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / system_cpu.idl
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
3 // found in the LICENSE file.
4
5 // Use the <code>system.cpu</code> API to query CPU metadata.
6 namespace system.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   callback CpuInfoCallback = void (CpuInfo info);
18
19   interface Functions {
20     // Queries basic CPU information of the system.
21     static void getInfo(CpuInfoCallback callback);
22   };
23 };