OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 return; | 70 return; |
71 | 71 |
72 // There's no reason to clear our AXMenuListPopup child. If we get a | 72 // There's no reason to clear our AXMenuListPopup child. If we get a |
73 // call to clearChildren, it's because the options might have changed, | 73 // call to clearChildren, it's because the options might have changed, |
74 // so call it on our popup. | 74 // so call it on our popup. |
75 ASSERT(m_children.size() == 1); | 75 ASSERT(m_children.size() == 1); |
76 m_children[0]->clearChildren(); | 76 m_children[0]->clearChildren(); |
77 m_childrenDirty = false; | 77 m_childrenDirty = false; |
78 } | 78 } |
79 | 79 |
| 80 bool AXMenuList::nameFromContents() const |
| 81 { |
| 82 return false; |
| 83 } |
| 84 |
80 void AXMenuList::addChildren() | 85 void AXMenuList::addChildren() |
81 { | 86 { |
82 ASSERT(!isDetached()); | 87 ASSERT(!isDetached()); |
83 m_haveChildren = true; | 88 m_haveChildren = true; |
84 | 89 |
85 AXObjectCacheImpl& cache = axObjectCache(); | 90 AXObjectCacheImpl& cache = axObjectCache(); |
86 | 91 |
87 AXObject* list = cache.getOrCreate(MenuListPopupRole); | 92 AXObject* list = cache.getOrCreate(MenuListPopupRole); |
88 if (!list) | 93 if (!list) |
89 return; | 94 return; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return; | 161 return; |
157 | 162 |
158 AXMenuListPopup* popup = toAXMenuListPopup(children()[0].get()); | 163 AXMenuListPopup* popup = toAXMenuListPopup(children()[0].get()); |
159 popup->didHide(); | 164 popup->didHide(); |
160 | 165 |
161 if (node() && node()->focused()) | 166 if (node() && node()->focused()) |
162 axObjectCache().postNotification(this, AXObjectCacheImpl::AXFocusedUIEle
mentChanged); | 167 axObjectCache().postNotification(this, AXObjectCacheImpl::AXFocusedUIEle
mentChanged); |
163 } | 168 } |
164 | 169 |
165 } // namespace blink | 170 } // namespace blink |
OLD | NEW |