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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2342053002: binding: Refactors bindings/templates/attributes.cpp. (Closed)
Patch Set: Reverted the replacement from hidden values to private properties. Created 4 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
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 "V8TestInterfacePartial.h" 7 #include "V8TestInterfacePartial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
(...skipping 15 matching lines...) Expand all
26 #include "wtf/GetPtr.h" 26 #include "wtf/GetPtr.h"
27 #include "wtf/RefPtr.h" 27 #include "wtf/RefPtr.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 namespace TestInterfaceImplementationPartialV8Internal { 31 namespace TestInterfaceImplementationPartialV8Internal {
32 32
33 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 33 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
34 { 34 {
35 v8::Local<v8::Object> holder = info.Holder(); 35 v8::Local<v8::Object> holder = info.Holder();
36
36 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 37 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
38
37 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl )); 39 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl ));
38 } 40 }
39 41
40 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 42 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
41 { 43 {
42 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Getter(info); 44 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Getter(info);
43 } 45 }
44 46
45 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 47 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info)
46 { 48 {
47 v8::Local<v8::Object> holder = info.Holder(); 49 v8::Local<v8::Object> holder = info.Holder();
48 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4LongAt tribute", "TestInterface", holder, info.GetIsolate());
49 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 50 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
51
52 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterConte xt, "TestInterface", "partial4LongAttribute");
53
54 // Prepare the value to be set.
50 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 55 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
51 if (exceptionState.hadException()) 56 if (exceptionState.hadException())
52 return; 57 return;
58
53 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 59 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
54 } 60 }
55 61
56 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 62 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
57 { 63 {
58 v8::Local<v8::Value> v8Value = info[0]; 64 v8::Local<v8::Value> v8Value = info[0];
65
59 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info); 66 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info);
60 } 67 }
61 68
62 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 69 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
63 { 70 {
64 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ()); 71 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ());
65 } 72 }
66 73
67 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 74 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
68 { 75 {
69 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info); 76 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info);
70 } 77 }
71 78
72 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 79 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
73 { 80 {
74 v8::Local<v8::Object> holder = info.Holder(); 81 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterConte xt, "TestInterface", "partial4StaticLongAttribute");
75 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4Static LongAttribute", "TestInterface", holder, info.GetIsolate()); 82
83 // Prepare the value to be set.
76 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 84 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
77 if (exceptionState.hadException()) 85 if (exceptionState.hadException())
78 return; 86 return;
87
79 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 88 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
80 } 89 }
81 90
82 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 91 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
83 { 92 {
84 v8::Local<v8::Value> v8Value = info[0]; 93 v8::Local<v8::Value> v8Value = info[0];
94
85 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info); 95 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info);
86 } 96 }
87 97
88 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 98 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
89 { 99 {
90 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 100 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
91 101
92 V8StringResource<> value; 102 V8StringResource<> value;
93 value = info[0]; 103 value = info[0];
94 if (!value.prepare()) 104 if (!value.prepare())
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 475 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
466 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 476 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
467 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 477 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
468 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 478 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
469 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 479 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
470 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 480 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
471 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 481 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
472 } 482 }
473 483
474 } // namespace blink 484 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698