| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 #include "core/html/HTMLAreaElement.h" | 32 #include "core/html/HTMLAreaElement.h" |
| 33 #include "core/html/HTMLMapElement.h" | 33 #include "core/html/HTMLMapElement.h" |
| 34 #include "modules/accessibility/AXNodeObject.h" | 34 #include "modules/accessibility/AXNodeObject.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class AXObjectCacheImpl; | 38 class AXObjectCacheImpl; |
| 39 | 39 |
| 40 class AXImageMapLink final : public AXNodeObject { | 40 class AXImageMapLink final : public AXNodeObject { |
| 41 WTF_MAKE_NONCOPYABLE(AXImageMapLink); |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 explicit AXImageMapLink(HTMLAreaElement*, AXObjectCacheImpl&); | 44 explicit AXImageMapLink(HTMLAreaElement*, AXObjectCacheImpl&); |
| 44 | 45 |
| 45 public: | 46 public: |
| 46 static AXImageMapLink* create(HTMLAreaElement*, AXObjectCacheImpl&); | 47 static AXImageMapLink* create(HTMLAreaElement*, AXObjectCacheImpl&); |
| 47 ~AXImageMapLink() override; | 48 ~AXImageMapLink() override; |
| 48 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
| 49 | 50 |
| 50 HTMLAreaElement* areaElement() const { return toHTMLAreaElement(getNode());
} | 51 HTMLAreaElement* areaElement() const { return toHTMLAreaElement(getNode());
} |
| (...skipping 15 matching lines...) Expand all Loading... |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 bool isImageMapLink() const override { return true; } | 69 bool isImageMapLink() const override { return true; } |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 DEFINE_AX_OBJECT_TYPE_CASTS(AXImageMapLink, isImageMapLink()); | 72 DEFINE_AX_OBJECT_TYPE_CASTS(AXImageMapLink, isImageMapLink()); |
| 72 | 73 |
| 73 } // namespace blink | 74 } // namespace blink |
| 74 | 75 |
| 75 #endif // AXImageMapLink_h | 76 #endif // AXImageMapLink_h |
| OLD | NEW |