| 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 element_; } | 52 Node* GetNode() const override { return element_; } |
| 53 void Detach() override; | 53 void Detach() override; |
| 54 bool IsDetached() const override { return !element_; } | 54 bool IsDetached() const override { return !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 AXObjectImpl* ComputeParent() const override; | |
| 58 | 57 |
| 59 Element* ActionElement() const override; | 58 Element* ActionElement() const override; |
| 60 bool IsEnabled() const override; | 59 bool IsEnabled() const override; |
| 61 bool IsVisible() const override; | 60 bool IsVisible() const override; |
| 62 bool IsOffScreen() const override; | 61 bool IsOffScreen() const override; |
| 63 bool IsSelected() const override; | 62 bool IsSelected() const override; |
| 64 void SetSelected(bool) override; | 63 void SetSelected(bool) override; |
| 65 bool CanSetSelectedAttribute() const override; | 64 bool CanSetSelectedAttribute() const override; |
| 66 void GetRelativeBounds(AXObjectImpl** out_container, | 65 void GetRelativeBounds(AXObjectImpl** out_container, |
| 67 FloatRect& out_bounds_in_container, | 66 FloatRect& out_bounds_in_container, |
| 68 SkMatrix44& out_container_transform) const override; | 67 SkMatrix44& out_container_transform) const override; |
| 69 String TextAlternative(bool recursive, | 68 String TextAlternative(bool recursive, |
| 70 bool in_aria_labelled_by_traversal, | 69 bool in_aria_labelled_by_traversal, |
| 71 AXObjectSet& visited, | 70 AXObjectSet& visited, |
| 72 AXNameFrom&, | 71 AXNameFrom&, |
| 73 AXRelatedObjectVector*, | 72 AXRelatedObjectVector*, |
| 74 NameSources*) const override; | 73 NameSources*) const override; |
| 75 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; | 74 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
| 76 | 75 |
| 77 Member<HTMLOptionElement> element_; | 76 Member<HTMLOptionElement> element_; |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); | 79 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); |
| 81 | 80 |
| 82 } // namespace blink | 81 } // namespace blink |
| 83 | 82 |
| 84 #endif // AXMenuListOption_h | 83 #endif // AXMenuListOption_h |
| OLD | NEW |