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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceNamedConstructor.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 "V8TestInterfaceNamedConstructor.h" 8 #include "V8TestInterfaceNamedConstructor.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 defaultNullStringOptionalstringArg = nullptr; 97 defaultNullStringOptionalstringArg = nullptr;
98 } 98 }
99 if (UNLIKELY(info.Length() <= 5)) { 99 if (UNLIKELY(info.Length() <= 5)) {
100 Document& document = *toDocument(currentExecutionContext(info.GetIso late())); 100 Document& document = *toDocument(currentExecutionContext(info.GetIso late()));
101 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa ultNullStringOptionalstringArg, exceptionState); 101 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa ultNullStringOptionalstringArg, exceptionState);
102 if (exceptionState.hadException()) { 102 if (exceptionState.hadException()) {
103 exceptionState.throwIfNeeded(); 103 exceptionState.throwIfNeeded();
104 return; 104 return;
105 } 105 }
106 v8::Handle<v8::Object> wrapper = info.Holder(); 106 v8::Handle<v8::Object> wrapper = info.Holder();
107 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn fo, wrapper, info.GetIsolate()); 107 impl->associateWithWrapper(&V8TestInterfaceNamedConstructorConstruct or::wrapperTypeInfo, wrapper, info.GetIsolate());
108 v8SetReturnValue(info, wrapper); 108 v8SetReturnValue(info, wrapper);
109 return; 109 return;
110 } 110 }
111 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); 111 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]);
112 } 112 }
113 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ; 113 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ;
114 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS tringOptionalstringArg, optionalStringArg, exceptionState); 114 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS tringOptionalstringArg, optionalStringArg, exceptionState);
115 if (exceptionState.hadException()) { 115 if (exceptionState.hadException()) {
116 exceptionState.throwIfNeeded(); 116 exceptionState.throwIfNeeded();
117 return; 117 return;
118 } 118 }
119 v8::Handle<v8::Object> wrapper = info.Holder(); 119 v8::Handle<v8::Object> wrapper = info.Holder();
120 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im pl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo, wrap per, info.GetIsolate()); 120 impl->associateWithWrapper(&V8TestInterfaceNamedConstructorConstructor::wrap perTypeInfo, wrapper, info.GetIsolate());
121 v8SetReturnValue(info, wrapper); 121 v8SetReturnValue(info, wrapper);
122 } 122 }
123 123
124 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom Template(v8::Isolate* isolate) 124 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom Template(v8::Isolate* isolate)
125 { 125 {
126 static int domTemplateKey; // This address is used for a key to look up the dom template. 126 static int domTemplateKey; // This address is used for a key to look up the dom template.
127 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 127 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
128 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 128 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
129 if (!result.IsEmpty()) 129 if (!result.IsEmpty())
130 return result; 130 return result;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 return 0; 198 return 0;
199 } 199 }
200 200
201 template<> 201 template<>
202 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 202 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
203 { 203 {
204 return toV8(impl, creationContext, isolate); 204 return toV8(impl, creationContext, isolate);
205 } 205 }
206 206
207 } // namespace blink 207 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698