Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef Iterator_h | |
| 6 #define Iterator_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptValue.h" | |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | |
| 10 #include "platform/heap/Handle.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class ExceptionState; | |
| 15 | |
| 16 class Iterator : public GarbageCollectedFinalized<Iterator>, public ScriptWrappa ble { | |
| 17 public: | |
| 18 Iterator() { ScriptWrappable::init(this); } | |
| 19 virtual ~Iterator() { } | |
| 20 | |
| 21 virtual ScriptValue next(ScriptState*, ExceptionState&) = 0; | |
| 22 virtual ScriptValue next(ScriptState*, ScriptValue /* value */, ExceptionSta te&) = 0; | |
| 23 Iterator* iterator(ScriptState*, ExceptionState&) { return this; } | |
|
arv (Not doing code reviews)
2014/09/02 14:31:24
This seems acceptable since our infrastructure mak
| |
| 24 | |
| 25 virtual void trace(Visitor*) { } | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif | |
| 31 | |
| OLD | NEW |