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

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: Add AccessibilityVolumeInfo to the types section. 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..dd6d8a5a189172e8d56df3d6016fe5396656af1f 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";
dmazzoni 2011/08/29 22:24:06 I think this should just be "volume", and same wit
yoshiki 2011/08/30 06:43:30 Done.
+const char kIsVolumeMutedKey[] = "details.isVolumeMuted";
// Events.
const char kOnWindowOpened[] = "experimental.accessibility.onWindowOpened";
@@ -27,6 +29,7 @@ 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 kOnVolumeChanged[] = "experimental.accessibility.onVolumeChanged";
// Types of controls that can receive accessibility events.
const char kTypeButton[] = "button";
@@ -39,6 +42,7 @@ const char kTypeMenuItem[] = "menuitem";
const char kTypeRadioButton[] = "radiobutton";
const char kTypeTab[] = "tab";
const char kTypeTextBox[] = "textbox";
+const char kTypeVolume[] = "volume";
dmazzoni 2011/08/29 22:24:06 Delete this now that AccessibilityVolumeInfo is no
yoshiki 2011/08/30 06:43:30 Done.
const char kTypeWindow[] = "window";
} // namespace extension_accessibility_api_constants

Powered by Google App Engine
This is Rietveld 408576698