| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); | 47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); |
| 48 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
| 49 | 49 |
| 50 bool isMenuListOption() const override { return true; } | 50 bool isMenuListOption() const override { return true; } |
| 51 | 51 |
| 52 Node* getNode() const override { return m_element; } | 52 Node* getNode() const override { return m_element; } |
| 53 void detach() override; | 53 void detach() override; |
| 54 bool isDetached() const override { return !m_element; } | 54 bool isDetached() const override { return !m_element; } |
| 55 AccessibilityRole roleValue() const override; | 55 AccessibilityRole roleValue() const override; |
| 56 bool canHaveChildren() const override { return false; } | 56 bool canHaveChildren() const override { return false; } |
| 57 AXObject* computeParent() const override; |
| 57 | 58 |
| 58 Element* actionElement() const override; | 59 Element* actionElement() const override; |
| 59 bool isEnabled() const override; | 60 bool isEnabled() const override; |
| 60 bool isVisible() const override; | 61 bool isVisible() const override; |
| 61 bool isOffScreen() const override; | 62 bool isOffScreen() const override; |
| 62 bool isSelected() const override; | 63 bool isSelected() const override; |
| 63 void setSelected(bool) override; | 64 void setSelected(bool) override; |
| 64 bool canSetSelectedAttribute() const override; | 65 bool canSetSelectedAttribute() const override; |
| 65 void getRelativeBounds(AXObject** outContainer, | 66 void getRelativeBounds(AXObject** outContainer, |
| 66 FloatRect& outBoundsInContainer, | 67 FloatRect& outBoundsInContainer, |
| 67 SkMatrix44& outContainerTransform) const override; | 68 SkMatrix44& outContainerTransform) const override; |
| 68 String textAlternative(bool recursive, | 69 String textAlternative(bool recursive, |
| 69 bool inAriaLabelledByTraversal, | 70 bool inAriaLabelledByTraversal, |
| 70 AXObjectSet& visited, | 71 AXObjectSet& visited, |
| 71 AXNameFrom&, | 72 AXNameFrom&, |
| 72 AXRelatedObjectVector*, | 73 AXRelatedObjectVector*, |
| 73 NameSources*) const override; | 74 NameSources*) const override; |
| 74 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; | 75 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
| 75 | 76 |
| 76 Member<HTMLOptionElement> m_element; | 77 Member<HTMLOptionElement> m_element; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); | 80 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); |
| 80 | 81 |
| 81 } // namespace blink | 82 } // namespace blink |
| 82 | 83 |
| 83 #endif // AXMenuListOption_h | 84 #endif // AXMenuListOption_h |
| OLD | NEW |