OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |