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

Side by Side Diff: Source/bindings/tests/results/core/V8TestTypedefs.cpp

Issue 563703002: Oilpan: Enable oilpan for callback classes (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 "V8TestTypedefs.h" 8 #include "V8TestTypedefs.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 133 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
134 } 134 }
135 135
136 static void voidMethodTestCallbackInterfaceTypeArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 136 static void voidMethodTestCallbackInterfaceTypeArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
137 { 137 {
138 if (UNLIKELY(info.Length() < 1)) { 138 if (UNLIKELY(info.Length() < 1)) {
139 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", 1, info.Length(), info.G etIsolate()), info.GetIsolate()); 139 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", 1, info.Length(), info.G etIsolate()), info.GetIsolate());
140 return; 140 return;
141 } 141 }
142 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder()); 142 TestTypedefs* impl = V8TestTypedefs::toImpl(info.Holder());
143 OwnPtrWillBeRawPtr<TestCallbackInterface> testCallbackInterfaceTypeArg = nul lptr;; 143 TestCallbackInterface* testCallbackInterfaceTypeArg;
144 { 144 {
145 if (info.Length() <= 0 || !info[0]->IsFunction()) { 145 if (info.Length() <= 0 || !info[0]->IsFunction()) {
146 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 146 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceTypeArg", "TestTypedefs", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
147 return; 147 return;
148 } 148 }
149 testCallbackInterfaceTypeArg = V8TestCallbackInterface::create(v8::Handl e<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 149 testCallbackInterfaceTypeArg = V8TestCallbackInterface::create(v8::Handl e<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
150 } 150 }
151 impl->voidMethodTestCallbackInterfaceTypeArg(testCallbackInterfaceTypeArg.re lease()); 151 impl->voidMethodTestCallbackInterfaceTypeArg(testCallbackInterfaceTypeArg);
152 } 152 }
153 153
154 static void voidMethodTestCallbackInterfaceTypeArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 154 static void voidMethodTestCallbackInterfaceTypeArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
155 { 155 {
156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
157 TestTypedefsV8Internal::voidMethodTestCallbackInterfaceTypeArgMethod(info); 157 TestTypedefsV8Internal::voidMethodTestCallbackInterfaceTypeArgMethod(info);
158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
159 } 159 }
160 160
161 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info) 161 static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return 0; 381 return 0;
382 } 382 }
383 383
384 template<> 384 template<>
385 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 385 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
386 { 386 {
387 return toV8(impl, creationContext, isolate); 387 return toV8(impl, creationContext, isolate);
388 } 388 }
389 389
390 } // namespace blink 390 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestObject.cpp ('k') | Source/core/clipboard/DataTransferItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698