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

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

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « extensions/common/api/sockets_udp.idl ('k') | extensions/common/api/system_display.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [use_movable_types=true] 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 {
11 // The cumulative time used by userspace programs on this processor. 11 // The cumulative time used by userspace programs on this processor.
12 double user; 12 double user;
13 13
14 // The cumulative time used by kernel programs on this processor. 14 // The cumulative time used by kernel programs on this processor.
15 double kernel; 15 double kernel;
16 16
(...skipping 29 matching lines...) Expand all
46 ProcessorInfo[] processors; 46 ProcessorInfo[] processors;
47 }; 47 };
48 48
49 callback CpuInfoCallback = void (CpuInfo info); 49 callback CpuInfoCallback = void (CpuInfo info);
50 50
51 interface Functions { 51 interface Functions {
52 // Queries basic CPU information of the system. 52 // Queries basic CPU information of the system.
53 static void getInfo(CpuInfoCallback callback); 53 static void getInfo(CpuInfoCallback callback);
54 }; 54 };
55 }; 55 };
OLDNEW
« no previous file with comments | « extensions/common/api/sockets_udp.idl ('k') | extensions/common/api/system_display.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698