| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 public: | 53 public: |
| 54 static DOMTokenList* Create(DOMTokenListObserver* observer = nullptr) { | 54 static DOMTokenList* Create(DOMTokenListObserver* observer = nullptr) { |
| 55 return new DOMTokenList(observer); | 55 return new DOMTokenList(observer); |
| 56 } | 56 } |
| 57 | 57 |
| 58 virtual ~DOMTokenList() {} | 58 virtual ~DOMTokenList() {} |
| 59 | 59 |
| 60 virtual unsigned length() const { return tokens_.size(); } | 60 virtual unsigned length() const { return tokens_.size(); } |
| 61 virtual const AtomicString item(unsigned index) const; | 61 virtual const AtomicString item(unsigned index) const; |
| 62 | 62 |
| 63 bool contains(const AtomicString&, ExceptionState&) const; | 63 bool contains(const AtomicString&) const; |
| 64 virtual void add(const Vector<String>&, ExceptionState&); | 64 virtual void add(const Vector<String>&, ExceptionState&); |
| 65 void add(const AtomicString&, ExceptionState&); | 65 void add(const AtomicString&, ExceptionState&); |
| 66 virtual void remove(const Vector<String>&, ExceptionState&); | 66 virtual void remove(const Vector<String>&, ExceptionState&); |
| 67 void remove(const AtomicString&, ExceptionState&); | 67 void remove(const AtomicString&, ExceptionState&); |
| 68 bool toggle(const AtomicString&, ExceptionState&); | 68 bool toggle(const AtomicString&, ExceptionState&); |
| 69 bool toggle(const AtomicString&, bool force, ExceptionState&); | 69 bool toggle(const AtomicString&, bool force, ExceptionState&); |
| 70 bool supports(const AtomicString&, ExceptionState&); | 70 bool supports(const AtomicString&, ExceptionState&); |
| 71 | 71 |
| 72 virtual const AtomicString& value() const { return value_; } | 72 virtual const AtomicString& value() const { return value_; } |
| 73 virtual void setValue(const AtomicString&); | 73 virtual void setValue(const AtomicString&); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 SpaceSplitString tokens_; | 98 SpaceSplitString tokens_; |
| 99 AtomicString value_; | 99 AtomicString value_; |
| 100 WeakMember<DOMTokenListObserver> observer_; | 100 WeakMember<DOMTokenListObserver> observer_; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // DOMTokenList_h | 105 #endif // DOMTokenList_h |
| OLD | NEW |