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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/partial_interface.cpp.tmpl 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl
10 10
(...skipping 29 matching lines...) Expand all
40 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 40 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
41 41
42 V8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ; 42 V8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ;
43 } 43 }
44 44
45 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) { 45 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) {
46 v8::Isolate* isolate = info.GetIsolate(); 46 v8::Isolate* isolate = info.GetIsolate();
47 ALLOW_UNUSED_LOCAL(isolate); 47 ALLOW_UNUSED_LOCAL(isolate);
48 48
49 v8::Local<v8::Object> holder = info.Holder(); 49 v8::Local<v8::Object> holder = info.Holder();
50 ALLOW_UNUSED_LOCAL(holder);
51
50 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 52 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
51 53
52 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn terface", "partial4LongAttribute"); 54 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn terface", "partial4LongAttribute");
53 55
54 // Prepare the value to be set. 56 // Prepare the value to be set.
55 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8Value, exceptionState, kNormalConversion); 57 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8Value, exceptionState, kNormalConversion);
56 if (exceptionState.HadException()) 58 if (exceptionState.HadException())
57 return; 59 return;
58 60
59 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 61 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
60 } 62 }
61 63
62 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) { 64 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) {
63 V8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() ); 65 V8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() );
64 } 66 }
65 67
66 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) { 68 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) {
67 v8::Isolate* isolate = info.GetIsolate(); 69 v8::Isolate* isolate = info.GetIsolate();
68 ALLOW_UNUSED_LOCAL(isolate); 70 ALLOW_UNUSED_LOCAL(isolate);
69 71
72 v8::Local<v8::Object> holder = info.Holder();
73 ALLOW_UNUSED_LOCAL(holder);
74
70 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn terface", "partial4StaticLongAttribute"); 75 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn terface", "partial4StaticLongAttribute");
71 76
72 // Prepare the value to be set. 77 // Prepare the value to be set.
73 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8Value, exceptionState, kNormalConversion); 78 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(), v8Value, exceptionState, kNormalConversion);
74 if (exceptionState.HadException()) 79 if (exceptionState.HadException())
75 return; 80 return;
76 81
77 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 82 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
78 } 83 }
79 84
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 515 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
511 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 516 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
512 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 517 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
513 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 518 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
514 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 519 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
515 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 520 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
516 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 521 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
517 } 522 }
518 523
519 } // namespace blink 524 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698