| 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 22 matching lines...) Expand all Loading... |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class Element; | 35 class Element; |
| 36 class ExceptionState; | 36 class ExceptionState; |
| 37 | 37 |
| 38 class DOMTokenList : public NoBaseWillBeGarbageCollectedFinalized<DOMTokenList>,
public ScriptWrappable { | 38 class DOMTokenList : public NoBaseWillBeGarbageCollectedFinalized<DOMTokenList>,
public ScriptWrappable { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 41 WTF_MAKE_NONCOPYABLE(DOMTokenList); | 41 WTF_MAKE_NONCOPYABLE(DOMTokenList); |
| 42 public: | 42 public: |
| 43 DOMTokenList() | 43 DOMTokenList() { } |
| 44 { | |
| 45 ScriptWrappable::init(this); | |
| 46 } | |
| 47 virtual ~DOMTokenList() { } | 44 virtual ~DOMTokenList() { } |
| 48 | 45 |
| 49 #if !ENABLE(OILPAN) | 46 #if !ENABLE(OILPAN) |
| 50 virtual void ref() = 0; | 47 virtual void ref() = 0; |
| 51 virtual void deref() = 0; | 48 virtual void deref() = 0; |
| 52 #endif | 49 #endif |
| 53 | 50 |
| 54 virtual unsigned length() const = 0; | 51 virtual unsigned length() const = 0; |
| 55 virtual const AtomicString item(unsigned index) const = 0; | 52 virtual const AtomicString item(unsigned index) const = 0; |
| 56 | 53 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 80 static bool validateTokens(const Vector<String>&, ExceptionState&); | 77 static bool validateTokens(const Vector<String>&, ExceptionState&); |
| 81 static AtomicString addToken(const AtomicString&, const AtomicString&); | 78 static AtomicString addToken(const AtomicString&, const AtomicString&); |
| 82 static AtomicString addTokens(const AtomicString&, const Vector<String>&); | 79 static AtomicString addTokens(const AtomicString&, const Vector<String>&); |
| 83 static AtomicString removeToken(const AtomicString&, const AtomicString&); | 80 static AtomicString removeToken(const AtomicString&, const AtomicString&); |
| 84 static AtomicString removeTokens(const AtomicString&, const Vector<String>&)
; | 81 static AtomicString removeTokens(const AtomicString&, const Vector<String>&)
; |
| 85 }; | 82 }; |
| 86 | 83 |
| 87 } // namespace blink | 84 } // namespace blink |
| 88 | 85 |
| 89 #endif // DOMTokenList_h | 86 #endif // DOMTokenList_h |
| OLD | NEW |