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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class RenderMenuList; | 33 class RenderMenuList; |
34 | 34 |
35 class AXMenuList final : public AXRenderObject { | 35 class AXMenuList final : public AXRenderObject { |
36 public: | 36 public: |
37 static PassRefPtr<AXMenuList> create(RenderMenuList* renderer); | 37 static PassRefPtr<AXMenuList> create(RenderMenuList* renderer); |
38 | 38 |
39 virtual bool isCollapsed() const override; | 39 virtual bool isCollapsed() const override; |
| 40 virtual AccessibilityExpanded isExpanded() const override final; |
40 virtual bool press() const override; | 41 virtual bool press() const override; |
41 | 42 |
42 void didUpdateActiveOption(int optionIndex); | 43 void didUpdateActiveOption(int optionIndex); |
43 | 44 |
44 private: | 45 private: |
45 explicit AXMenuList(RenderMenuList*); | 46 explicit AXMenuList(RenderMenuList*); |
46 | 47 |
47 virtual bool isMenuList() const override { return true; } | 48 virtual bool isMenuList() const override { return true; } |
48 virtual AccessibilityRole roleValue() const override { return PopUpButtonRol
e; } | 49 virtual AccessibilityRole roleValue() const override { return PopUpButtonRol
e; } |
49 virtual bool canSetFocusAttribute() const override; | 50 virtual bool canSetFocusAttribute() const override; |
50 | 51 |
51 virtual void addChildren() override; | 52 virtual void addChildren() override; |
52 virtual void childrenChanged() override; | 53 virtual void childrenChanged() override; |
53 }; | 54 }; |
54 | 55 |
55 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, isMenuList()); | 56 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuList, isMenuList()); |
56 | 57 |
57 } // namespace blink | 58 } // namespace blink |
58 | 59 |
59 #endif // AXMenuList_h | 60 #endif // AXMenuList_h |
OLD | NEW |