Chromium Code Reviews| Index: Source/core/dom/Iterator.h |
| diff --git a/Source/core/dom/Iterator.h b/Source/core/dom/Iterator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..22fd75730fafe468707d04cc978a0febdd403042 |
| --- /dev/null |
| +++ b/Source/core/dom/Iterator.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef Iterator_h |
| +#define Iterator_h |
| + |
| +#include "bindings/core/v8/ScriptValue.h" |
| +#include "bindings/core/v8/ScriptWrappable.h" |
| +#include "platform/heap/Handle.h" |
| + |
| +namespace blink { |
| + |
| +class ExceptionState; |
| + |
| +class Iterator : public GarbageCollectedFinalized<Iterator>, public ScriptWrappable { |
| +public: |
| + Iterator() { ScriptWrappable::init(this); } |
| + virtual ~Iterator() { } |
| + |
| + virtual ScriptValue next(ScriptState*, ExceptionState&) = 0; |
| + virtual ScriptValue next(ScriptState*, ScriptValue /* value */, ExceptionState&) = 0; |
| + Iterator* iterator(ScriptState*, ExceptionState&) { return this; } |
|
arv (Not doing code reviews)
2014/09/02 14:31:24
This seems acceptable since our infrastructure mak
|
| + |
| + virtual void trace(Visitor*) { } |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |
| + |