Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp

Issue 542113003: bindings: Introduces ScriptWrappable::associateWithWrapper in addition to wrap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "V8TestInterfaceConstructor4.h" 8 #include "V8TestInterfaceConstructor4.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) 50 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
51 { 51 {
52 TestInterfaceConstructor4* testInterface4Arg; 52 TestInterfaceConstructor4* testInterface4Arg;
53 { 53 {
54 v8::TryCatch block; 54 v8::TryCatch block;
55 V8RethrowTryCatchScope rethrow(block); 55 V8RethrowTryCatchScope rethrow(block);
56 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t oImplWithTypeCheck(info.GetIsolate(), info[0])); 56 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t oImplWithTypeCheck(info.GetIsolate(), info[0]));
57 } 57 }
58 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t estInterface4Arg); 58 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t estInterface4Arg);
59 v8::Handle<v8::Object> wrapper = info.Holder(); 59 v8::Handle<v8::Object> wrapper = info.Holder();
60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat e()); 60 impl.get()->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeIn fo, wrapper, info.GetIsolate());
61 v8SetReturnValue(info, wrapper); 61 v8SetReturnValue(info, wrapper);
62 } 62 }
63 63
64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
65 { 65 {
66 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor4", info.Holder(), info.GetIsolate()); 66 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor4", info.Holder(), info.GetIsolate());
67 V8StringResource<> scalarValueStringArg; 67 V8StringResource<> scalarValueStringArg;
68 { 68 {
69 v8::TryCatch block; 69 v8::TryCatch block;
70 V8RethrowTryCatchScope rethrow(block); 70 V8RethrowTryCatchScope rethrow(block);
71 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu eString(info[0], exceptionState), exceptionState); 71 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu eString(info[0], exceptionState), exceptionState);
72 } 72 }
73 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s calarValueStringArg); 73 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s calarValueStringArg);
74 v8::Handle<v8::Object> wrapper = info.Holder(); 74 v8::Handle<v8::Object> wrapper = info.Holder();
75 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat e()); 75 impl.get()->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeIn fo, wrapper, info.GetIsolate());
76 v8SetReturnValue(info, wrapper); 76 v8SetReturnValue(info, wrapper);
77 } 77 }
78 78
79 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 79 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
80 { 80 {
81 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor4", info.Holder(), info.GetIsolate()); 81 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor4", info.Holder(), info.GetIsolate());
82 switch (std::min(1, info.Length())) { 82 switch (std::min(1, info.Length())) {
83 case 1: 83 case 1:
84 if (V8TestInterfaceConstructor4::hasInstance(info[0], info.GetIsolate()) ) { 84 if (V8TestInterfaceConstructor4::hasInstance(info[0], info.GetIsolate()) ) {
85 TestInterfaceConstructor4V8Internal::constructor1(info); 85 TestInterfaceConstructor4V8Internal::constructor1(info);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return 0; 173 return 0;
174 } 174 }
175 175
176 template<> 176 template<>
177 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 177 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
178 { 178 {
179 return toV8(impl, creationContext, isolate); 179 return toV8(impl, creationContext, isolate);
180 } 180 }
181 181
182 } // namespace blink 182 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698