OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. | 3 * Copyright (C) 2012 Ericsson AB. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "bindings/core/v8/ExceptionState.h" | 37 #include "bindings/core/v8/ExceptionState.h" |
38 #include "bindings/core/v8/ScriptValue.h" | 38 #include "bindings/core/v8/ScriptValue.h" |
39 #include "bindings/core/v8/ScriptWrappable.h" | 39 #include "bindings/core/v8/ScriptWrappable.h" |
40 #include "bindings/core/v8/V8BindingMacros.h" | 40 #include "bindings/core/v8/V8BindingMacros.h" |
41 #include "bindings/core/v8/V8PerIsolateData.h" | 41 #include "bindings/core/v8/V8PerIsolateData.h" |
42 #include "bindings/core/v8/V8StringResource.h" | 42 #include "bindings/core/v8/V8StringResource.h" |
43 #include "bindings/core/v8/V8ThrowException.h" | 43 #include "bindings/core/v8/V8ThrowException.h" |
44 #include "bindings/core/v8/V8ValueCache.h" | 44 #include "bindings/core/v8/V8ValueCache.h" |
45 #include "platform/heap/Heap.h" | 45 #include "platform/heap/Heap.h" |
46 #include "wtf/GetPtr.h" | 46 #include "wtf/GetPtr.h" |
47 #include "wtf/MathExtras.h" | |
48 #include "wtf/text/AtomicString.h" | 47 #include "wtf/text/AtomicString.h" |
49 #include <v8.h> | 48 #include <v8.h> |
50 | 49 |
51 namespace blink { | 50 namespace blink { |
52 | 51 |
53 class LocalDOMWindow; | 52 class LocalDOMWindow; |
54 class Document; | 53 class Document; |
55 class EventListener; | 54 class EventListener; |
56 class ExecutionContext; | 55 class ExecutionContext; |
57 class ExceptionState; | 56 class ExceptionState; |
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); | 1017 v8::Local<v8::Value> v8IteratorResult(v8::Isolate*, v8::Handle<v8::Value>); |
1019 template <typename T> | 1018 template <typename T> |
1020 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) | 1019 v8::Local<v8::Value> v8IteratorResult(ScriptState* scriptState, const T& value) |
1021 { | 1020 { |
1022 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value(
value, scriptState->context()->Global(), scriptState->isolate())); | 1021 return v8IteratorResult(scriptState->isolate(), V8ValueTraits<T>::toV8Value(
value, scriptState->context()->Global(), scriptState->isolate())); |
1023 } | 1022 } |
1024 | 1023 |
1025 } // namespace blink | 1024 } // namespace blink |
1026 | 1025 |
1027 #endif // V8Binding_h | 1026 #endif // V8Binding_h |
OLD | NEW |