| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 return; | 87 return; |
| 88 | 88 |
| 89 m_element->setSelected(b); | 89 m_element->setSelected(b); |
| 90 } | 90 } |
| 91 | 91 |
| 92 bool AXMenuListOption::canSetSelectedAttribute() const | 92 bool AXMenuListOption::canSetSelectedAttribute() const |
| 93 { | 93 { |
| 94 return isEnabled(); | 94 return isEnabled(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool AXMenuListOption::computeAccessibilityIsIgnored() const | 97 bool AXMenuListOption::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::Arr
ay<TypeBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 98 { | 98 { |
| 99 return accessibilityIsIgnoredByDefault(); | 99 return accessibilityIsIgnoredByDefault(ignoredReasons); |
| 100 } | 100 } |
| 101 | 101 |
| 102 LayoutRect AXMenuListOption::elementRect() const | 102 LayoutRect AXMenuListOption::elementRect() const |
| 103 { | 103 { |
| 104 AXObject* parent = parentObject(); | 104 AXObject* parent = parentObject(); |
| 105 ASSERT(parent->isMenuListPopup()); | 105 ASSERT(parent->isMenuListPopup()); |
| 106 | 106 |
| 107 AXObject* grandparent = parent->parentObject(); | 107 AXObject* grandparent = parent->parentObject(); |
| 108 ASSERT(grandparent->isMenuList()); | 108 ASSERT(grandparent->isMenuList()); |
| 109 | 109 |
| 110 return grandparent->elementRect(); | 110 return grandparent->elementRect(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 String AXMenuListOption::stringValue() const | 113 String AXMenuListOption::stringValue() const |
| 114 { | 114 { |
| 115 return m_element->text(); | 115 return m_element->text(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| OLD | NEW |