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 V8IteratorResultValue_h | 5 #ifndef V8IteratorResultValue_h |
6 #define V8IteratorResultValue_h | 6 #define V8IteratorResultValue_h |
7 | 7 |
8 #include <v8.h> | 8 #include <v8.h> |
9 #include "bindings/core/v8/ScriptValue.h" | 9 #include "bindings/core/v8/ScriptValue.h" |
10 #include "bindings/core/v8/ToV8.h" | 10 #include "bindings/core/v8/ToV8.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 template <typename T> | 27 template <typename T> |
28 inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value) { | 28 inline ScriptValue v8IteratorResult(ScriptState* scriptState, const T& value) { |
29 return ScriptValue( | 29 return ScriptValue( |
30 scriptState, | 30 scriptState, |
31 v8IteratorResultValue(scriptState->isolate(), false, | 31 v8IteratorResultValue(scriptState->isolate(), false, |
32 ToV8(value, scriptState->context()->Global(), | 32 ToV8(value, scriptState->context()->Global(), |
33 scriptState->isolate()))); | 33 scriptState->isolate()))); |
34 } | 34 } |
35 | 35 |
36 inline ScriptValue v8IteratorResultDone(ScriptState* scriptState) { | 36 inline ScriptValue v8IteratorResultDone(ScriptState* scriptState) { |
37 return ScriptValue(scriptState, v8IteratorResultValue( | 37 return ScriptValue( |
38 scriptState->isolate(), true, | 38 scriptState, |
39 v8::Undefined(scriptState->isolate()))); | 39 v8IteratorResultValue(scriptState->isolate(), true, |
| 40 v8::Undefined(scriptState->isolate()))); |
40 } | 41 } |
41 | 42 |
42 } // namespace blink | 43 } // namespace blink |
43 | 44 |
44 #endif // V8IteratorResultValue_h | 45 #endif // V8IteratorResultValue_h |
OLD | NEW |