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

Side by Side Diff: chrome/browser/accessibility_events.cc

Issue 1585011: Add menu and menu item events to the accessibility extension api, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/accessibility_events.h" 5 #include "chrome/browser/accessibility_events.h"
6 6
7 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" 7 #include "chrome/browser/extensions/extension_accessibility_api_constants.h"
8 #include "chrome/browser/profile.h" 8 #include "chrome/browser/profile.h"
9 #include "chrome/common/notification_service.h" 9 #include "chrome/common/notification_service.h"
10 #include "chrome/common/notification_type.h" 10 #include "chrome/common/notification_type.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 dict->SetInteger(keys::kSelectionEndKey, selection_end_); 80 dict->SetInteger(keys::kSelectionEndKey, selection_end_);
81 } 81 }
82 82
83 void AccessibilityListBoxInfo::SerializeToDict(DictionaryValue *dict) const { 83 void AccessibilityListBoxInfo::SerializeToDict(DictionaryValue *dict) const {
84 AccessibilityControlInfo::SerializeToDict(dict); 84 AccessibilityControlInfo::SerializeToDict(dict);
85 dict->SetString(keys::kTypeKey, keys::kTypeListBox); 85 dict->SetString(keys::kTypeKey, keys::kTypeListBox);
86 dict->SetString(keys::kValueKey, value_); 86 dict->SetString(keys::kValueKey, value_);
87 dict->SetInteger(keys::kItemIndexKey, item_index_); 87 dict->SetInteger(keys::kItemIndexKey, item_index_);
88 dict->SetInteger(keys::kItemCountKey, item_count_); 88 dict->SetInteger(keys::kItemCountKey, item_count_);
89 } 89 }
90
91 void AccessibilityMenuInfo::SerializeToDict(DictionaryValue *dict) const {
92 AccessibilityControlInfo::SerializeToDict(dict);
93 dict->SetString(keys::kTypeKey, keys::kTypeMenu);
94 }
95
96 void AccessibilityMenuItemInfo::SerializeToDict(DictionaryValue *dict) const {
97 AccessibilityControlInfo::SerializeToDict(dict);
98 dict->SetString(keys::kTypeKey, keys::kTypeMenuItem);
99 dict->SetBoolean(keys::kHasSubmenuKey, has_submenu_);
100 dict->SetInteger(keys::kItemIndexKey, item_index_);
101 dict->SetInteger(keys::kItemCountKey, item_count_);
102 }
OLDNEW
« no previous file with comments | « chrome/browser/accessibility_events.h ('k') | chrome/browser/extensions/extension_accessibility_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698