Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: sky/engine/core/dom/DOMTokenList.h

Issue 788093003: Add clear() to Element.classList. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/dom/DOMTokenList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/DOMTokenList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698