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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestCallbackFunctions.cpp

Issue 2733763003: Reimplement [PutForwards] per spec (Closed)
Patch Set: avoid using v8::Maybe Created 3 years, 7 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
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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // This file has been generated from the Jinja2 template in 8 // This file has been generated from the Jinja2 template in
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder); 63 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder);
64 64
65 V8SetReturnValueFast(info, impl->voidCallbackFunctionAttribute(), impl); 65 V8SetReturnValueFast(info, impl->voidCallbackFunctionAttribute(), impl);
66 } 66 }
67 67
68 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 68 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
69 v8::Isolate* isolate = info.GetIsolate(); 69 v8::Isolate* isolate = info.GetIsolate();
70 ALLOW_UNUSED_LOCAL(isolate); 70 ALLOW_UNUSED_LOCAL(isolate);
71 71
72 v8::Local<v8::Object> holder = info.Holder(); 72 v8::Local<v8::Object> holder = info.Holder();
73 ALLOW_UNUSED_LOCAL(holder);
74
73 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder); 75 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder);
74 76
75 // Prepare the value to be set. 77 // Prepare the value to be set.
76 VoidCallbackFunction* cppValue = VoidCallbackFunction::Create(ScriptState::Cur rent(info.GetIsolate()), v8Value); 78 VoidCallbackFunction* cppValue = VoidCallbackFunction::Create(ScriptState::Cur rent(info.GetIsolate()), v8Value);
77 79
78 impl->setVoidCallbackFunctionAttribute(cppValue); 80 impl->setVoidCallbackFunctionAttribute(cppValue);
79 } 81 }
80 82
81 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) { 83 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: FunctionCallbackInfo<v8::Value>& info) {
82 v8::Local<v8::Object> holder = info.Holder(); 84 v8::Local<v8::Object> holder = info.Holder();
83 85
84 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder); 86 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder);
85 87
86 V8SetReturnValueFast(info, impl->anyCallbackFunctionOptionalAnyArgAttribute(), impl); 88 V8SetReturnValueFast(info, impl->anyCallbackFunctionOptionalAnyArgAttribute(), impl);
87 } 89 }
88 90
89 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) { 91 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) {
90 v8::Isolate* isolate = info.GetIsolate(); 92 v8::Isolate* isolate = info.GetIsolate();
91 ALLOW_UNUSED_LOCAL(isolate); 93 ALLOW_UNUSED_LOCAL(isolate);
92 94
93 v8::Local<v8::Object> holder = info.Holder(); 95 v8::Local<v8::Object> holder = info.Holder();
96 ALLOW_UNUSED_LOCAL(holder);
97
94 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder); 98 TestCallbackFunctions* impl = V8TestCallbackFunctions::toImpl(holder);
95 99
96 // Prepare the value to be set. 100 // Prepare the value to be set.
97 AnyCallbackFunctionOptionalAnyArg* cppValue = AnyCallbackFunctionOptionalAnyAr g::Create(ScriptState::Current(info.GetIsolate()), v8Value); 101 AnyCallbackFunctionOptionalAnyArg* cppValue = AnyCallbackFunctionOptionalAnyAr g::Create(ScriptState::Current(info.GetIsolate()), v8Value);
98 102
99 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 103 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
100 } 104 }
101 105
102 static void customElementsCallbacksReadonlyAttributeAttributeGetter(const v8::Fu nctionCallbackInfo<v8::Value>& info) { 106 static void customElementsCallbacksReadonlyAttributeAttributeGetter(const v8::Fu nctionCallbackInfo<v8::Value>& info) {
103 v8::Local<v8::Object> holder = info.Holder(); 107 v8::Local<v8::Object> holder = info.Holder();
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 TestCallbackFunctions* NativeValueTraits<TestCallbackFunctions>::NativeValue(v8: :Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { 341 TestCallbackFunctions* NativeValueTraits<TestCallbackFunctions>::NativeValue(v8: :Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
338 TestCallbackFunctions* nativeValue = V8TestCallbackFunctions::toImplWithTypeCh eck(isolate, value); 342 TestCallbackFunctions* nativeValue = V8TestCallbackFunctions::toImplWithTypeCh eck(isolate, value);
339 if (!nativeValue) { 343 if (!nativeValue) {
340 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue( 344 exceptionState.ThrowTypeError(ExceptionMessages::FailedToConvertJSValue(
341 "TestCallbackFunctions")); 345 "TestCallbackFunctions"));
342 } 346 }
343 return nativeValue; 347 return nativeValue;
344 } 348 }
345 349
346 } // namespace blink 350 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698