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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 7708025: Adds extension APIs of events on changing volume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix (to be commited) Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 1326a40552d834dd83525b02f525d4f03fdf5d0f..3b36c1163b1d22479f133c13a0a7d1b863a8558a 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -382,6 +382,15 @@
"selectionStart": {"type": "integer", "description": "The index of the character where the selection starts, if this control contains editable text."},
"selectionEnd": {"type": "integer", "description": "The index of the character where the selection ends, if this control contains editable text."}
}
+ },
+ {
+ "id": "AccessibilityVolumeInfo",
+ "type": "object",
+ "description": "Information about the volume.",
+ "properties": {
+ "volume": {"type": "double", "description": "The value of the volume percent. This must be between 0.0 and 100.0."},
Ben Olmstead 2011/08/30 18:12:18 Is the value log scale or linear scale?
+ "isVolumeMuted": {"type": "boolean", "description": "True if the volume is muted."}
+ }
}
],
"functions": [
@@ -503,6 +512,18 @@
"description": "Information about the menu that was closed."
}
]
+ },
+ {
+ "name": "onVolumeChanged",
+ "type": "function",
+ "description": "Fired when the volume is changed.",
+ "parameters": [
+ {
+ "$ref": "AccessibilityVolumeInfo",
+ "name": "volume",
+ "description": "Information about the current volume level and the volume being muted."
Ben Olmstead 2011/08/30 18:12:18 "The current state of the system volume control, i
+ }
+ ]
}
]
},
« chrome/browser/accessibility_events.h ('K') | « chrome/common/chrome_notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698