summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-25 10:09:46 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-25 10:09:46 +0000
commit770295dc4b14a3c64e0026a249a84c7e5fb23e18 (patch)
treed9c0db87d22627feffac75e2d5ef4d888e0b3541 /chrome/common
parenta4293e8cb1774d1722922da0c04ff8d960d74b77 (diff)
downloadchromium_src-770295dc4b14a3c64e0026a249a84c7e5fb23e18.zip
chromium_src-770295dc4b14a3c64e0026a249a84c7e5fb23e18.tar.gz
chromium_src-770295dc4b14a3c64e0026a249a84c7e5fb23e18.tar.bz2
Add an extension API event about screen brightness change.
BUG=chromium-os:20007 TEST=None Review URL: http://codereview.chromium.org/9193005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/api/systemPrivate.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/systemPrivate.json b/chrome/common/extensions/api/systemPrivate.json
index 9f8f007..3c507f1 100644
--- a/chrome/common/extensions/api/systemPrivate.json
+++ b/chrome/common/extensions/api/systemPrivate.json
@@ -27,6 +27,21 @@
"volume": {"type": "double", "description": "The value of the volume percent. This must be between 0.0 and 100.0."},
"isVolumeMuted": {"type": "boolean", "description": "True if the volume is muted."}
}
+ },
+ {
+ "id": "BrightnessChangeInfo",
+ "type": "object",
+ "description": "Information about a change to the screen brightness.",
+ "properties": {
+ "brightness": {
+ "type": "number",
+ "description": "The value of the current screen brightness in percent, between 0.0 and 100.0."
+ },
+ "userInitiated": {
+ "type": "boolean",
+ "description": "Whether this change was initiated by user."
+ }
+ }
}
],
"functions": [
@@ -83,6 +98,18 @@
]
},
{
+ "name": "onBrightnessChanged",
+ "type": "function",
+ "description": "Fired when the screen brightness is changed.",
+ "parameters": [
+ {
+ "$ref": "BrightnessChangeInfo",
+ "name": "brightness",
+ "description": "Information about a change to the screen brightness."
+ }
+ ]
+ },
+ {
"name": "onScreenUnlocked",
"type": "function",
"description": "Fired when the screen is unlocked.",