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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. 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/Element.cpp ('k') | Source/core/dom/MessageChannel.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Iterator_h 5 #ifndef Iterator_h
6 #define Iterator_h 6 #define Iterator_h
7 7
8 #include "bindings/core/v8/ScriptValue.h" 8 #include "bindings/core/v8/ScriptValue.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExceptionState; 14 class ExceptionState;
15 15
16 class Iterator : public GarbageCollectedFinalized<Iterator>, public ScriptWrappa ble { 16 class Iterator : public GarbageCollectedFinalized<Iterator>, public ScriptWrappa ble {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 public: 18 public:
19 Iterator() { ScriptWrappable::init(this); } 19 Iterator() { }
20 virtual ~Iterator() { } 20 virtual ~Iterator() { }
21 21
22 virtual ScriptValue next(ScriptState*, ExceptionState&) = 0; 22 virtual ScriptValue next(ScriptState*, ExceptionState&) = 0;
23 virtual ScriptValue next(ScriptState*, ScriptValue /* value */, ExceptionSta te&) = 0; 23 virtual ScriptValue next(ScriptState*, ScriptValue /* value */, ExceptionSta te&) = 0;
24 Iterator* iterator(ScriptState*, ExceptionState&) { return this; } 24 Iterator* iterator(ScriptState*, ExceptionState&) { return this; }
25 25
26 virtual void trace(Visitor*) { } 26 virtual void trace(Visitor*) { }
27 }; 27 };
28 28
29 } // namespace blink 29 } // namespace blink
30 30
31 #endif 31 #endif // Iterator_h
32
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/MessageChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698