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

Side by Side Diff: chrome/common/extensions/api/idle.json

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing issues with experimental_APIs Created 7 years, 9 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 (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 [ 5 [
6 { 6 {
7 "namespace": "idle", 7 "namespace": "idle",
8 "description": "Use the <code>chrome.idle</code> module to detect when the m achine's idle state changes.",
9 "availability": "6",
8 "types": [], 10 "types": [],
9 "functions": [ 11 "functions": [
10 { 12 {
11 "name": "queryState", 13 "name": "queryState",
12 "type": "function", 14 "type": "function",
13 "description": "Returns \"locked\" if the system is locked, \"idle\" if the user has not generated any input for a specified number of seconds, or \"act ive\" otherwise.", 15 "description": "Returns \"locked\" if the system is locked, \"idle\" if the user has not generated any input for a specified number of seconds, or \"act ive\" otherwise.",
14 "parameters": [ 16 "parameters": [
15 { 17 {
16 "name": "detectionIntervalInSeconds", 18 "name": "detectionIntervalInSeconds",
17 "type": "integer", 19 "type": "integer",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 { 56 {
55 "name": "newState", 57 "name": "newState",
56 "type": "string", 58 "type": "string",
57 "enum": ["active", "idle", "locked"] 59 "enum": ["active", "idle", "locked"]
58 } 60 }
59 ] 61 ]
60 } 62 }
61 ] 63 ]
62 } 64 }
63 ] 65 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698