diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 13:46:24 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-06 13:46:24 +0000 |
commit | 83acf96f3a4632e4c962ebc3f0f84e3f989322df (patch) | |
tree | 1d56226dd349c3648a7675aef7e365556fe245fe /chrome/browser/accessibility_events.cc | |
parent | e80bea9a23243ddf8f58c0358df8118159800b53 (diff) | |
download | chromium_src-83acf96f3a4632e4c962ebc3f0f84e3f989322df.zip chromium_src-83acf96f3a4632e4c962ebc3f0f84e3f989322df.tar.gz chromium_src-83acf96f3a4632e4c962ebc3f0f84e3f989322df.tar.bz2 |
Add menu and menu item events to the accessibility extension api, and
generate menu item notifications for gtk menus.
The code to generate menu open and close events is a little more complicated
and will come in a future patch.
BUG=none
TEST=navigated menus with keyboard, watched notifications fire
Review URL: http://codereview.chromium.org/1585011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility_events.cc')
-rw-r--r-- | chrome/browser/accessibility_events.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/accessibility_events.cc b/chrome/browser/accessibility_events.cc index b300183..79d2af9 100644 --- a/chrome/browser/accessibility_events.cc +++ b/chrome/browser/accessibility_events.cc @@ -87,3 +87,16 @@ void AccessibilityListBoxInfo::SerializeToDict(DictionaryValue *dict) const { dict->SetInteger(keys::kItemIndexKey, item_index_); dict->SetInteger(keys::kItemCountKey, item_count_); } + +void AccessibilityMenuInfo::SerializeToDict(DictionaryValue *dict) const { + AccessibilityControlInfo::SerializeToDict(dict); + dict->SetString(keys::kTypeKey, keys::kTypeMenu); +} + +void AccessibilityMenuItemInfo::SerializeToDict(DictionaryValue *dict) const { + AccessibilityControlInfo::SerializeToDict(dict); + dict->SetString(keys::kTypeKey, keys::kTypeMenuItem); + dict->SetBoolean(keys::kHasSubmenuKey, has_submenu_); + dict->SetInteger(keys::kItemIndexKey, item_index_); + dict->SetInteger(keys::kItemCountKey, item_count_); +} |