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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceEventInit.h" | 8 #include "V8TestInterfaceEventInit.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 if (!stringMemberValue.IsEmpty() && !isUndefinedOrNull(stringMemberValue)) { | 31 if (!stringMemberValue.IsEmpty() && !isUndefinedOrNull(stringMemberValue)) { |
32 TOSTRING_VOID(V8StringResource<>, stringMember, stringMemberValue); | 32 TOSTRING_VOID(V8StringResource<>, stringMember, stringMemberValue); |
33 impl.setStringMember(stringMember); | 33 impl.setStringMember(stringMember); |
34 } else if (block.HasCaught()) { | 34 } else if (block.HasCaught()) { |
35 exceptionState.rethrowV8Exception(block.Exception()); | 35 exceptionState.rethrowV8Exception(block.Exception()); |
36 return; | 36 return; |
37 } | 37 } |
38 | 38 |
39 } | 39 } |
40 | 40 |
41 v8::Handle<v8::Value> toV8(TestInterfaceEventInit& impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 41 v8::Handle<v8::Value> toV8(const TestInterfaceEventInit& impl, v8::Handle<v8::Ob
ject> creationContext, v8::Isolate* isolate) |
42 { | 42 { |
43 v8::Handle<v8::Object> v8Object = v8::Object::New(isolate); | 43 v8::Handle<v8::Object> v8Object = v8::Object::New(isolate); |
44 toV8EventInitDictionary(impl, v8Object, creationContext, isolate); | 44 toV8EventInitDictionary(impl, v8Object, creationContext, isolate); |
45 toV8TestInterfaceEventInit(impl, v8Object, creationContext, isolate); | 45 toV8TestInterfaceEventInit(impl, v8Object, creationContext, isolate); |
46 return v8Object; | 46 return v8Object; |
47 } | 47 } |
48 | 48 |
49 void toV8TestInterfaceEventInit(TestInterfaceEventInit& impl, v8::Handle<v8::Obj
ect> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 49 template<> |
| 50 v8::Handle<v8::Value> toV8NoInline(const TestInterfaceEventInit* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) |
| 51 { |
| 52 return toV8(*impl, creationContext, isolate); |
| 53 } |
| 54 |
| 55 void toV8TestInterfaceEventInit(const TestInterfaceEventInit& impl, v8::Handle<v
8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate* isol
ate) |
50 { | 56 { |
51 if (impl.hasStringMember()) { | 57 if (impl.hasStringMember()) { |
52 dictionary->Set(v8String(isolate, "stringMember"), v8String(isolate, imp
l.stringMember())); | 58 dictionary->Set(v8String(isolate, "stringMember"), v8String(isolate, imp
l.stringMember())); |
53 } | 59 } |
54 | 60 |
55 } | 61 } |
56 | 62 |
| 63 TestInterfaceEventInit NativeValueTraits<TestInterfaceEventInit>::nativeValue(co
nst v8::Handle<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptio
nState) |
| 64 { |
| 65 TestInterfaceEventInit impl; |
| 66 V8TestInterfaceEventInit::toImpl(isolate, value, impl, exceptionState); |
| 67 return impl; |
| 68 } |
| 69 |
57 } // namespace blink | 70 } // namespace blink |
OLD | NEW |