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

Side by Side Diff: Source/core/dom/DOMTokenList.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/DOMStringMap.h ('k') | Source/core/dom/DOMURL.h » ('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 18 matching lines...) Expand all
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 #include "wtf/Vector.h" 30 #include "wtf/Vector.h"
31 #include "wtf/text/AtomicString.h" 31 #include "wtf/text/AtomicString.h"
32 32
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();
40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
39 WTF_MAKE_NONCOPYABLE(DOMTokenList); 41 WTF_MAKE_NONCOPYABLE(DOMTokenList);
40 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
41 public: 42 public:
42 DOMTokenList() 43 DOMTokenList()
43 { 44 {
44 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
45 } 46 }
46 virtual ~DOMTokenList() { } 47 virtual ~DOMTokenList() { }
47 48
48 #if !ENABLE(OILPAN) 49 #if !ENABLE(OILPAN)
49 virtual void ref() = 0; 50 virtual void ref() = 0;
50 virtual void deref() = 0; 51 virtual void deref() = 0;
(...skipping 28 matching lines...) Expand all
79 static bool validateTokens(const Vector<String>&, ExceptionState&); 80 static bool validateTokens(const Vector<String>&, ExceptionState&);
80 static AtomicString addToken(const AtomicString&, const AtomicString&); 81 static AtomicString addToken(const AtomicString&, const AtomicString&);
81 static AtomicString addTokens(const AtomicString&, const Vector<String>&); 82 static AtomicString addTokens(const AtomicString&, const Vector<String>&);
82 static AtomicString removeToken(const AtomicString&, const AtomicString&); 83 static AtomicString removeToken(const AtomicString&, const AtomicString&);
83 static AtomicString removeTokens(const AtomicString&, const Vector<String>&) ; 84 static AtomicString removeTokens(const AtomicString&, const Vector<String>&) ;
84 }; 85 };
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // DOMTokenList_h 89 #endif // DOMTokenList_h
OLDNEW
« no previous file with comments | « Source/core/dom/DOMStringMap.h ('k') | Source/core/dom/DOMURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698