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

Unified Diff: chrome/browser/extensions/extension_accessibility_api_constants.cc

Issue 7708025: Adds extension APIs of events on changing volume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/browser/extensions/extension_accessibility_api_constants.cc
diff --git a/chrome/browser/extensions/extension_accessibility_api_constants.cc b/chrome/browser/extensions/extension_accessibility_api_constants.cc
index 6cad35e6cff72bf02a76035530ccdcfcd02694f7..2c0729f0e439b1e91becf780a1dca7fcf273cfb6 100644
--- a/chrome/browser/extensions/extension_accessibility_api_constants.cc
+++ b/chrome/browser/extensions/extension_accessibility_api_constants.cc
@@ -18,6 +18,8 @@ const char kSelectionStartKey[] = "details.selectionStart";
const char kSelectionEndKey[] = "details.selectionEnd";
const char kCheckedKey[] = "details.isChecked";
const char kHasSubmenuKey[] = "details.hasSubmenu";
+const char kVolumeKey[] = "details.volume";
+const char kIsVolumeMuteKey[] = "details.isVolumeMute";
dmazzoni 2011/08/24 14:49:02 Should be: isVolumeMuted
yoshiki 2011/08/29 09:16:16 Done.
// Events.
const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened";
@@ -27,6 +29,9 @@ const char kOnControlAction[] = "experimental.accessibility.onControlAction";
const char kOnTextChanged[] = "experimental.accessibility.onTextChanged";
const char kOnMenuOpened[] = "experimental.accessibility.onMenuOpened";
const char kOnMenuClosed[] = "experimental.accessibility.onMenuClosed";
+const char kOnVolumeUp[] = "experimental.accessibility.onVolumeUp";
+const char kOnVolumeDown[] = "experimental.accessibility.onVolumeDown";
+const char kOnVolumeMute[] = "experimental.accessibility.onVolumeMute";
dmazzoni 2011/08/24 14:49:02 This one is correct as-is: onVolumeMute
yoshiki 2011/08/29 09:16:16 onVolume(Up|Down|Mute) was replaced with onVolumeC
// Types of controls that can receive accessibility events.
const char kTypeButton[] = "button";
@@ -40,5 +45,6 @@ const char kTypeRadioButton[] = "radiobutton";
const char kTypeTab[] = "tab";
const char kTypeTextBox[] = "textbox";
const char kTypeWindow[] = "window";
+const char kTypeVolume[] = "volume";
Zachary Kuznia 2011/08/25 06:14:07 nit: volume should come before window.
yoshiki 2011/08/29 09:16:16 Done.
} // namespace extension_accessibility_api_constants

Powered by Google App Engine
This is Rietveld 408576698