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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceConstructor3.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 "V8TestInterfaceConstructor3.h" 8 #include "V8TestInterfaceConstructor3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 if (UNLIKELY(info.Length() < 1)) { 51 if (UNLIKELY(info.Length() < 1)) {
52 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceConstructor3", 1, info.Length(), info.GetIsolate()), info.GetIs olate()); 52 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceConstructor3", 1, info.Length(), info.GetIsolate()), info.GetIs olate());
53 return; 53 return;
54 } 54 }
55 V8StringResource<> stringArg; 55 V8StringResource<> stringArg;
56 { 56 {
57 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 57 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
58 } 58 }
59 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg); 59 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg);
60 v8::Handle<v8::Object> wrapper = info.Holder(); 60 v8::Handle<v8::Object> wrapper = info.Holder();
61 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor3>(impl.r elease(), &V8TestInterfaceConstructor3::wrapperTypeInfo, wrapper, info.GetIsolat e()); 61 impl.get()->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeIn fo, wrapper, info.GetIsolate());
62 v8SetReturnValue(info, wrapper); 62 v8SetReturnValue(info, wrapper);
63 } 63 }
64 64
65 } // namespace TestInterfaceConstructor3V8Internal 65 } // namespace TestInterfaceConstructor3V8Internal
66 66
67 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info) 67 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info)
68 { 68 {
69 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 69 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
70 if (!info.IsConstructCall()) { 70 if (!info.IsConstructCall()) {
71 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("TestInterfaceConstructor3"), info.GetIsolate()); 71 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("TestInterfaceConstructor3"), info.GetIsolate());
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return 0; 136 return 0;
137 } 137 }
138 138
139 template<> 139 template<>
140 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 140 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
141 { 141 {
142 return toV8(impl, creationContext, isolate); 142 return toV8(impl, creationContext, isolate);
143 } 143 }
144 144
145 } // namespace blink 145 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698