| 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 16 matching lines...) Expand all Loading... |
| 27 #define AXMenuListOption_h | 27 #define AXMenuListOption_h |
| 28 | 28 |
| 29 #include "core/html/HTMLOptionElement.h" | 29 #include "core/html/HTMLOptionElement.h" |
| 30 #include "modules/accessibility/AXMockObject.h" | 30 #include "modules/accessibility/AXMockObject.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class AXObjectCacheImpl; | 34 class AXObjectCacheImpl; |
| 35 | 35 |
| 36 class AXMenuListOption final : public AXMockObject { | 36 class AXMenuListOption final : public AXMockObject { |
| 37 WTF_MAKE_NONCOPYABLE(AXMenuListOption); |
| 38 |
| 37 public: | 39 public: |
| 38 static AXMenuListOption* create(HTMLOptionElement* element, AXObjectCacheImp
l& axObjectCache) { return new AXMenuListOption(element, axObjectCache); } | 40 static AXMenuListOption* create(HTMLOptionElement* element, AXObjectCacheImp
l& axObjectCache) { return new AXMenuListOption(element, axObjectCache); } |
| 39 ~AXMenuListOption() override; | 41 ~AXMenuListOption() override; |
| 40 | 42 |
| 41 private: | 43 private: |
| 42 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); | 44 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); |
| 43 DECLARE_VIRTUAL_TRACE(); | 45 DECLARE_VIRTUAL_TRACE(); |
| 44 | 46 |
| 45 bool isMenuListOption() const override { return true; } | 47 bool isMenuListOption() const override { return true; } |
| 46 | 48 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; | 64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; |
| 63 | 65 |
| 64 Member<HTMLOptionElement> m_element; | 66 Member<HTMLOptionElement> m_element; |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); | 69 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); |
| 68 | 70 |
| 69 } // namespace blink | 71 } // namespace blink |
| 70 | 72 |
| 71 #endif // AXMenuListOption_h | 73 #endif // AXMenuListOption_h |
| OLD | NEW |