diff options
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityListBox.h')
-rw-r--r-- | Source/WebCore/accessibility/AccessibilityListBox.h | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityListBox.h b/Source/WebCore/accessibility/AccessibilityListBox.h index 2f56bf60d..ab91d9376 100644 --- a/Source/WebCore/accessibility/AccessibilityListBox.h +++ b/Source/WebCore/accessibility/AccessibilityListBox.h @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,39 +26,34 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef AccessibilityListBox_h -#define AccessibilityListBox_h +#pragma once #include "AccessibilityRenderObject.h" namespace WebCore { -class AccessibilityListBox : public AccessibilityRenderObject { - -private: - explicit AccessibilityListBox(RenderObject*); +class AccessibilityListBox final : public AccessibilityRenderObject { public: - static PassRefPtr<AccessibilityListBox> create(RenderObject*); + static Ref<AccessibilityListBox> create(RenderObject*); virtual ~AccessibilityListBox(); - virtual bool isListBox() const override { return true; } - - virtual bool canSetSelectedChildrenAttribute() const override; + bool canSetSelectedChildrenAttribute() const override; void setSelectedChildren(const AccessibilityChildrenVector&); - virtual AccessibilityRole roleValue() const override { return ListBoxRole; } + AccessibilityRole roleValue() const override { return ListBoxRole; } - virtual void selectedChildren(AccessibilityChildrenVector&) override; - virtual void visibleChildren(AccessibilityChildrenVector&) override; + void selectedChildren(AccessibilityChildrenVector&) override; + void visibleChildren(AccessibilityChildrenVector&) override; - virtual void addChildren() override; + void addChildren() override; -private: +private: + explicit AccessibilityListBox(RenderObject*); + + bool isNativeListBox() const override { return true; } AccessibilityObject* listBoxOptionAccessibilityObject(HTMLElement*) const; - virtual AccessibilityObject* elementAccessibilityHitTest(const IntPoint&) const override; + AccessibilityObject* elementAccessibilityHitTest(const IntPoint&) const override; }; - -ACCESSIBILITY_OBJECT_TYPE_CASTS(AccessibilityListBox, isListBox()) } // namespace WebCore -#endif // AccessibilityListBox_h +SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityListBox, isNativeListBox()) |