| OLD | NEW |
| 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" | |
| 10 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "platform/bindings/ScriptWrappable.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class ExceptionState; | 15 class ExceptionState; |
| 16 | 16 |
| 17 class CORE_EXPORT Iterator : public GarbageCollectedFinalized<Iterator>, | 17 class CORE_EXPORT Iterator : public GarbageCollectedFinalized<Iterator>, |
| 18 public ScriptWrappable { | 18 public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 Iterator() {} | 22 Iterator() {} |
| 23 virtual ~Iterator() {} | 23 virtual ~Iterator() {} |
| 24 | 24 |
| 25 virtual ScriptValue next(ScriptState*, ExceptionState&) = 0; | 25 virtual ScriptValue next(ScriptState*, ExceptionState&) = 0; |
| 26 virtual ScriptValue next(ScriptState*, | 26 virtual ScriptValue next(ScriptState*, |
| 27 ScriptValue /* value */, | 27 ScriptValue /* value */, |
| 28 ExceptionState&) = 0; | 28 ExceptionState&) = 0; |
| 29 Iterator* GetIterator(ScriptState*, ExceptionState&) { return this; } | 29 Iterator* GetIterator(ScriptState*, ExceptionState&) { return this; } |
| 30 | 30 |
| 31 DEFINE_INLINE_VIRTUAL_TRACE() {} | 31 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace blink | 34 } // namespace blink |
| 35 | 35 |
| 36 #endif // Iterator_h | 36 #endif // Iterator_h |
| OLD | NEW |