OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2017 Google Inc. All rights reserved. | 2 * Copyright (C) 2017 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 19 matching lines...) Expand all Loading... |
30 */ | 30 */ |
31 | 31 |
32 #ifndef V8BindingForCore_h | 32 #ifndef V8BindingForCore_h |
33 #define V8BindingForCore_h | 33 #define V8BindingForCore_h |
34 | 34 |
35 #include "bindings/core/v8/ExceptionMessages.h" | 35 #include "bindings/core/v8/ExceptionMessages.h" |
36 #include "bindings/core/v8/ExceptionState.h" | 36 #include "bindings/core/v8/ExceptionState.h" |
37 #include "bindings/core/v8/NativeValueTraits.h" | 37 #include "bindings/core/v8/NativeValueTraits.h" |
38 #include "bindings/core/v8/ScriptValue.h" | 38 #include "bindings/core/v8/ScriptValue.h" |
39 #include "bindings/core/v8/ToV8ForCore.h" | 39 #include "bindings/core/v8/ToV8ForCore.h" |
40 #include "bindings/core/v8/V8PerIsolateData.h" | |
41 #include "bindings/core/v8/V8ScriptRunner.h" | 40 #include "bindings/core/v8/V8ScriptRunner.h" |
42 #include "bindings/core/v8/V8StringResource.h" | 41 #include "bindings/core/v8/V8StringResource.h" |
43 #include "bindings/core/v8/V8ThrowException.h" | |
44 #include "bindings/core/v8/V8ValueCache.h" | |
45 #include "core/CoreExport.h" | 42 #include "core/CoreExport.h" |
46 #include "core/dom/ArrayBufferViewHelpers.h" | 43 #include "core/dom/ArrayBufferViewHelpers.h" |
47 #include "core/dom/Node.h" | 44 #include "core/dom/Node.h" |
48 #include "platform/bindings/DOMDataStore.h" | 45 #include "platform/bindings/DOMDataStore.h" |
49 #include "platform/bindings/DOMWrapperWorld.h" | 46 #include "platform/bindings/DOMWrapperWorld.h" |
50 #include "platform/bindings/ScriptState.h" | 47 #include "platform/bindings/ScriptState.h" |
51 #include "platform/bindings/ScriptWrappable.h" | 48 #include "platform/bindings/ScriptWrappable.h" |
52 #include "platform/bindings/V8Binding.h" | 49 #include "platform/bindings/V8Binding.h" |
53 #include "platform/bindings/V8BindingMacros.h" | 50 #include "platform/bindings/V8BindingMacros.h" |
| 51 #include "platform/bindings/V8PerIsolateData.h" |
| 52 #include "platform/bindings/V8ThrowException.h" |
| 53 #include "platform/bindings/V8ValueCache.h" |
54 #include "platform/heap/Handle.h" | 54 #include "platform/heap/Handle.h" |
55 #include "platform/wtf/text/AtomicString.h" | 55 #include "platform/wtf/text/AtomicString.h" |
56 #include "platform/wtf/text/StringView.h" | 56 #include "platform/wtf/text/StringView.h" |
57 #include "v8/include/v8.h" | 57 #include "v8/include/v8.h" |
58 | 58 |
59 namespace blink { | 59 namespace blink { |
60 | 60 |
61 // This file contains core-specific bindings utility functions. For functions | 61 // This file contains core-specific bindings utility functions. For functions |
62 // that are core independent, see platform/bindings/V8Binding.h. When adding a | 62 // that are core independent, see platform/bindings/V8Binding.h. When adding a |
63 // new utility function, consider adding it to V8Binding.h instead unless it has | 63 // new utility function, consider adding it to V8Binding.h instead unless it has |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 ExceptionState& exception_state) { | 614 ExceptionState& exception_state) { |
615 using DOMTypedArray = typename MaybeSharedType::TypedArrayType; | 615 using DOMTypedArray = typename MaybeSharedType::TypedArrayType; |
616 DOMTypedArray* dom_typed_array = | 616 DOMTypedArray* dom_typed_array = |
617 V8TypeOf<DOMTypedArray>::Type::toImplWithTypeCheck(isolate, value); | 617 V8TypeOf<DOMTypedArray>::Type::toImplWithTypeCheck(isolate, value); |
618 return MaybeSharedType(dom_typed_array); | 618 return MaybeSharedType(dom_typed_array); |
619 } | 619 } |
620 | 620 |
621 } // namespace blink | 621 } // namespace blink |
622 | 622 |
623 #endif // V8BindingForCore_h | 623 #endif // V8BindingForCore_h |
OLD | NEW |