OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 static AXListBoxOption* Create(LayoutObject*, AXObjectCacheImpl&); | 48 static AXListBoxOption* Create(LayoutObject*, AXObjectCacheImpl&); |
49 ~AXListBoxOption() override; | 49 ~AXListBoxOption() override; |
50 | 50 |
51 bool IsAXListBoxOption() const override { return true; } | 51 bool IsAXListBoxOption() const override { return true; } |
52 AccessibilityRole DetermineAccessibilityRole() final; | 52 AccessibilityRole DetermineAccessibilityRole() final; |
53 bool IsSelected() const override; | 53 bool IsSelected() const override; |
54 bool IsEnabled() const override; | 54 bool IsEnabled() const override; |
55 bool IsSelectedOptionActive() const override; | 55 bool IsSelectedOptionActive() const override; |
56 void SetSelected(bool) override; | 56 void SetSelected(bool) override; |
57 bool CanSetSelectedAttribute() const override; | 57 bool CanSetSelectedAttribute() const override; |
| 58 bool CanSetFocusAttribute() const override; |
| 59 |
58 String TextAlternative(bool recursive, | 60 String TextAlternative(bool recursive, |
59 bool in_aria_labelled_by_traversal, | 61 bool in_aria_labelled_by_traversal, |
60 AXObjectSet& visited, | 62 AXObjectSet& visited, |
61 AXNameFrom&, | 63 AXNameFrom&, |
62 AXRelatedObjectVector*, | 64 AXRelatedObjectVector*, |
63 NameSources*) const override; | 65 NameSources*) const override; |
64 | 66 |
65 private: | 67 private: |
66 bool CanHaveChildren() const override { return false; } | 68 bool CanHaveChildren() const override { return false; } |
67 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; | 69 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; |
68 | 70 |
69 HTMLSelectElement* ListBoxOptionParentNode() const; | 71 HTMLSelectElement* ListBoxOptionParentNode() const; |
70 bool IsParentPresentationalRole() const; | 72 bool IsParentPresentationalRole() const; |
71 }; | 73 }; |
72 | 74 |
73 } // namespace blink | 75 } // namespace blink |
74 | 76 |
75 #endif // AXListBoxOption_h | 77 #endif // AXListBoxOption_h |
OLD | NEW |