| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool AXMenuList::NameFromContents() const { | 75 bool AXMenuList::NameFromContents() const { |
| 76 return false; | 76 return false; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void AXMenuList::AddChildren() { | 79 void AXMenuList::AddChildren() { |
| 80 DCHECK(!IsDetached()); | 80 DCHECK(!IsDetached()); |
| 81 have_children_ = true; | 81 have_children_ = true; |
| 82 | 82 |
| 83 AXObjectCacheImpl& cache = AxObjectCache(); | 83 AXObjectCacheImpl& cache = AxObjectCache(); |
| 84 | 84 |
| 85 AXObjectImpl* list = cache.GetOrCreate(kMenuListPopupRole); | 85 AXObject* list = cache.GetOrCreate(kMenuListPopupRole); |
| 86 if (!list) | 86 if (!list) |
| 87 return; | 87 return; |
| 88 | 88 |
| 89 ToAXMockObject(list)->SetParent(this); | 89 ToAXMockObject(list)->SetParent(this); |
| 90 if (list->AccessibilityIsIgnored()) { | 90 if (list->AccessibilityIsIgnored()) { |
| 91 cache.Remove(list->AxObjectID()); | 91 cache.Remove(list->AxObjectID()); |
| 92 return; | 92 return; |
| 93 } | 93 } |
| 94 | 94 |
| 95 children_.push_back(list); | 95 children_.push_back(list); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 AXMenuListPopup* popup = ToAXMenuListPopup(Children()[0].Get()); | 151 AXMenuListPopup* popup = ToAXMenuListPopup(Children()[0].Get()); |
| 152 popup->DidHide(); | 152 popup->DidHide(); |
| 153 | 153 |
| 154 if (GetNode() && GetNode()->IsFocused()) | 154 if (GetNode() && GetNode()->IsFocused()) |
| 155 AxObjectCache().PostNotification( | 155 AxObjectCache().PostNotification( |
| 156 this, AXObjectCacheImpl::kAXFocusedUIElementChanged); | 156 this, AXObjectCacheImpl::kAXFocusedUIElementChanged); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |