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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 unsigned length() const; | 55 unsigned length() const; |
56 const AtomicString item(unsigned index) const; | 56 const AtomicString item(unsigned index) const; |
57 | 57 |
58 bool contains(const AtomicString&, ExceptionState&) const; | 58 bool contains(const AtomicString&, ExceptionState&) const; |
59 void add(const Vector<String>&, ExceptionState&); | 59 void add(const Vector<String>&, ExceptionState&); |
60 void add(const AtomicString&, ExceptionState&); | 60 void add(const AtomicString&, ExceptionState&); |
61 void remove(const Vector<String>&, ExceptionState&); | 61 void remove(const Vector<String>&, ExceptionState&); |
62 void remove(const AtomicString&, ExceptionState&); | 62 void remove(const AtomicString&, ExceptionState&); |
63 bool toggle(const AtomicString&, ExceptionState&); | 63 bool toggle(const AtomicString&, ExceptionState&); |
64 bool toggle(const AtomicString&, bool force, ExceptionState&); | 64 bool toggle(const AtomicString&, bool force, ExceptionState&); |
| 65 void clear(); |
65 | 66 |
66 const AtomicString& toString() const { return value(); } | 67 const AtomicString& toString() const { return value(); } |
67 | 68 |
68 Element* element() { return m_element.get(); } | 69 Element* element() { return m_element.get(); } |
69 | 70 |
70 const AtomicString& value() const; | 71 const AtomicString& value() const; |
71 void setValue(const AtomicString& value); | 72 void setValue(const AtomicString& value); |
72 | 73 |
73 private: | 74 private: |
74 DOMTokenList(Element&); | 75 DOMTokenList(Element&); |
(...skipping 10 matching lines...) Expand all Loading... |
85 static AtomicString addTokens(const AtomicString&, const Vector<String>&); | 86 static AtomicString addTokens(const AtomicString&, const Vector<String>&); |
86 static AtomicString removeToken(const AtomicString&, const AtomicString&); | 87 static AtomicString removeToken(const AtomicString&, const AtomicString&); |
87 static AtomicString removeTokens(const AtomicString&, const Vector<String>&)
; | 88 static AtomicString removeTokens(const AtomicString&, const Vector<String>&)
; |
88 | 89 |
89 RawPtr<Element> m_element; | 90 RawPtr<Element> m_element; |
90 }; | 91 }; |
91 | 92 |
92 } // namespace blink | 93 } // namespace blink |
93 | 94 |
94 #endif // SKY_ENGINE_CORE_DOM_DOMTOKENLIST_H_ | 95 #endif // SKY_ENGINE_CORE_DOM_DOMTOKENLIST_H_ |
OLD | NEW |