summaryrefslogtreecommitdiffstats
path: root/chrome/browser/accessibility_events.cc
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 17:04:35 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 17:04:35 +0000
commit2b8002791e925dcdab88ebe1b74eb416f3b2d585 (patch)
tree3a7cdaad36988199d0499e12d7b561b31806ed87 /chrome/browser/accessibility_events.cc
parentbf767417d66c4d54761dd619cfb93838bdc2353a (diff)
downloadchromium_src-2b8002791e925dcdab88ebe1b74eb416f3b2d585.zip
chromium_src-2b8002791e925dcdab88ebe1b74eb416f3b2d585.tar.gz
chromium_src-2b8002791e925dcdab88ebe1b74eb416f3b2d585.tar.bz2
Add support for more types of controls and events to GTK implementation of
accessibility extension API. Enable accessibility API for all subdialogs of the main Options dialog. BUG=none TEST=none Review URL: http://codereview.chromium.org/651037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility_events.cc')
-rw-r--r--chrome/browser/accessibility_events.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/accessibility_events.cc b/chrome/browser/accessibility_events.cc
index fa1820a..b300183 100644
--- a/chrome/browser/accessibility_events.cc
+++ b/chrome/browser/accessibility_events.cc
@@ -79,3 +79,11 @@ void AccessibilityTextBoxInfo::SerializeToDict(DictionaryValue *dict) const {
dict->SetInteger(keys::kSelectionStartKey, selection_start_);
dict->SetInteger(keys::kSelectionEndKey, selection_end_);
}
+
+void AccessibilityListBoxInfo::SerializeToDict(DictionaryValue *dict) const {
+ AccessibilityControlInfo::SerializeToDict(dict);
+ dict->SetString(keys::kTypeKey, keys::kTypeListBox);
+ dict->SetString(keys::kValueKey, value_);
+ dict->SetInteger(keys::kItemIndexKey, item_index_);
+ dict->SetInteger(keys::kItemCountKey, item_count_);
+}