| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 | 27 |
| 28 #include "core/dom/DOMTokenList.h" | 28 #include "core/dom/DOMTokenList.h" |
| 29 #include "core/dom/SpaceSplitString.h" | 29 #include "core/dom/SpaceSplitString.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "wtf/RefCounted.h" | 31 #include "wtf/RefCounted.h" |
| 32 #include "wtf/text/AtomicString.h" | 32 #include "wtf/text/AtomicString.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class ExceptionState; | 36 class ExceptionState; |
| 37 | 37 class DOMSettableTokenListObserver; |
| 38 class DOMSettableTokenListObserver : public WillBeGarbageCollectedMixin { | |
| 39 public: | |
| 40 virtual void valueChanged() = 0; | |
| 41 | |
| 42 DEFINE_INLINE_VIRTUAL_TRACE() { } | |
| 43 }; | |
| 44 | 38 |
| 45 class DOMSettableTokenList final | 39 class DOMSettableTokenList final |
| 46 : public DOMTokenList | 40 : public DOMTokenList |
| 47 #if !ENABLE(OILPAN) | 41 #if !ENABLE(OILPAN) |
| 48 , public RefCounted<DOMSettableTokenList> | 42 , public RefCounted<DOMSettableTokenList> |
| 49 #endif | 43 #endif |
| 50 { | 44 { |
| 51 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 52 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DOMSettableTokenList); | 46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DOMSettableTokenList); |
| 53 public: | 47 public: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 82 private: | 76 private: |
| 83 virtual void addInternal(const AtomicString&) override; | 77 virtual void addInternal(const AtomicString&) override; |
| 84 virtual bool containsInternal(const AtomicString&) const override; | 78 virtual bool containsInternal(const AtomicString&) const override; |
| 85 virtual void removeInternal(const AtomicString&) override; | 79 virtual void removeInternal(const AtomicString&) override; |
| 86 | 80 |
| 87 AtomicString m_value; | 81 AtomicString m_value; |
| 88 SpaceSplitString m_tokens; | 82 SpaceSplitString m_tokens; |
| 89 RawPtrWillBeWeakMember<DOMSettableTokenListObserver> m_observer; | 83 RawPtrWillBeWeakMember<DOMSettableTokenListObserver> m_observer; |
| 90 }; | 84 }; |
| 91 | 85 |
| 86 class DOMSettableTokenListObserver : public WillBeGarbageCollectedMixin { |
| 87 public: |
| 88 virtual void valueChanged(DOMSettableTokenList*) = 0; |
| 89 |
| 90 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 91 }; |
| 92 |
| 92 } // namespace blink | 93 } // namespace blink |
| 93 | 94 |
| 94 #endif // DOMSettableTokenList_h | 95 #endif // DOMSettableTokenList_h |
| OLD | NEW |