| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool AXMenuListPopup::isEnabled() const | 55 bool AXMenuListPopup::isEnabled() const |
| 56 { | 56 { |
| 57 if (!m_parent) | 57 if (!m_parent) |
| 58 return false; | 58 return false; |
| 59 | 59 |
| 60 return m_parent->isEnabled(); | 60 return m_parent->isEnabled(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool AXMenuListPopup::computeAccessibilityIsIgnored() const | 63 bool AXMenuListPopup::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::Arra
y<TypeBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 64 { | 64 { |
| 65 return accessibilityIsIgnoredByDefault(); | 65 return accessibilityIsIgnoredByDefault(ignoredReasons); |
| 66 } | 66 } |
| 67 | 67 |
| 68 AXMenuListOption* AXMenuListPopup::menuListOptionAXObject(HTMLElement* element)
const | 68 AXMenuListOption* AXMenuListPopup::menuListOptionAXObject(HTMLElement* element)
const |
| 69 { | 69 { |
| 70 ASSERT(element); | 70 ASSERT(element); |
| 71 if (!isHTMLOptionElement(*element)) | 71 if (!isHTMLOptionElement(*element)) |
| 72 return 0; | 72 return 0; |
| 73 | 73 |
| 74 AXObject* object = axObjectCache()->getOrCreate(element); | 74 AXObject* object = axObjectCache()->getOrCreate(element); |
| 75 if (!object) | 75 if (!object) |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 AXObject* AXMenuListPopup::activeChild() | 180 AXObject* AXMenuListPopup::activeChild() |
| 181 { | 181 { |
| 182 if (m_activeIndex < 0 || m_activeIndex >= static_cast<int>(children().size()
)) | 182 if (m_activeIndex < 0 || m_activeIndex >= static_cast<int>(children().size()
)) |
| 183 return nullptr; | 183 return nullptr; |
| 184 | 184 |
| 185 return m_children[m_activeIndex].get(); | 185 return m_children[m_activeIndex].get(); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| OLD | NEW |