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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEventTarget.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 "V8TestInterfaceEventTarget.h" 8 #include "V8TestInterfaceEventTarget.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 return; 43 return;
44 } 44 }
45 45
46 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 46 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
47 v8SetReturnValue(info, info.Holder()); 47 v8SetReturnValue(info, info.Holder());
48 return; 48 return;
49 } 49 }
50 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ; 50 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ;
51 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget ::createForJSConstructor(document); 51 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget ::createForJSConstructor(document);
52 v8::Handle<v8::Object> wrapper = info.Holder(); 52 v8::Handle<v8::Object> wrapper = info.Holder();
53 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventTarget>(impl.re lease(), &V8TestInterfaceEventTargetConstructor::wrapperTypeInfo, wrapper, info. GetIsolate()); 53 impl->associateWithWrapper(&V8TestInterfaceEventTargetConstructor::wrapperTy peInfo, wrapper, info.GetIsolate());
54 v8SetReturnValue(info, wrapper); 54 v8SetReturnValue(info, wrapper);
55 } 55 }
56 56
57 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl ate(v8::Isolate* isolate) 57 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl ate(v8::Isolate* isolate)
58 { 58 {
59 static int domTemplateKey; // This address is used for a key to look up the dom template. 59 static int domTemplateKey; // This address is used for a key to look up the dom template.
60 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 60 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
61 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 61 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
62 if (!result.IsEmpty()) 62 if (!result.IsEmpty())
63 return result; 63 return result;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #endif 139 #endif
140 } 140 }
141 141
142 template<> 142 template<>
143 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 143 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
144 { 144 {
145 return toV8(impl, creationContext, isolate); 145 return toV8(impl, creationContext, isolate);
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698