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

Side by Side Diff: extensions/common/api/system_cpu.idl

Issue 2802593005: extensions: Add CPU temperatures field to system.cpu.getInfo() function (Closed)
Patch Set: Responded to tbarzic's feedback Created 3 years, 7 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
OLDNEW
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 // Use the <code>system.cpu</code> API to query CPU metadata. 5 // Use the <code>system.cpu</code> API to query CPU metadata.
6 namespace system.cpu { 6 namespace system.cpu {
7 7
8 // Counters for assessing CPU utilization. Each field is monotonically 8 // Counters for assessing CPU utilization. Each field is monotonically
9 // increasing while the processor is powered on. Values are in milliseconds. 9 // increasing while the processor is powered on. Values are in milliseconds.
10 dictionary CpuTime { 10 dictionary CpuTime {
(...skipping 26 matching lines...) Expand all
37 // The model name of the processors. 37 // The model name of the processors.
38 DOMString modelName; 38 DOMString modelName;
39 39
40 // A set of feature codes indicating some of the processor's capabilities. 40 // A set of feature codes indicating some of the processor's capabilities.
41 // The currently supported codes are "mmx", "sse", "sse2", "sse3", "ssse3", 41 // The currently supported codes are "mmx", "sse", "sse2", "sse3", "ssse3",
42 // "sse4_1", "sse4_2", and "avx". 42 // "sse4_1", "sse4_2", and "avx".
43 DOMString[] features; 43 DOMString[] features;
44 44
45 // Information about each logical processor. 45 // Information about each logical processor.
46 ProcessorInfo[] processors; 46 ProcessorInfo[] processors;
47
48 // List of CPU temperature readings from each thermal zone of the CPU.
49 // Temperatures are in degrees Celsius.
50 //
51 // <b>Currently supported on Chrome OS only.</b>
52 double[] temperatures;
47 }; 53 };
48 54
49 callback CpuInfoCallback = void (CpuInfo info); 55 callback CpuInfoCallback = void (CpuInfo info);
50 56
51 interface Functions { 57 interface Functions {
52 // Queries basic CPU information of the system. 58 // Queries basic CPU information of the system.
53 static void getInfo(CpuInfoCallback callback); 59 static void getInfo(CpuInfoCallback callback);
54 }; 60 };
55 }; 61 };
OLDNEW
« no previous file with comments | « extensions/browser/api/system_cpu/system_cpu_apitest.cc ('k') | extensions/test/data/system/cpu/test_cpu_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698