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

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

Issue 2449043007: [Bindings] Reformat attributes.cpp.tmpl (3/4) (Closed)
Patch Set: Rebase Created 4 years, 1 month 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 // clang-format off 7 // clang-format off
8 #include "V8TestInterfacePartial.h" 8 #include "V8TestInterfacePartial.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 13 matching lines...) Expand all
24 #include "core/origin_trials/OriginTrials.h" 24 #include "core/origin_trials/OriginTrials.h"
25 #include "platform/RuntimeEnabledFeatures.h" 25 #include "platform/RuntimeEnabledFeatures.h"
26 #include "platform/ScriptForbiddenScope.h" 26 #include "platform/ScriptForbiddenScope.h"
27 #include "wtf/GetPtr.h" 27 #include "wtf/GetPtr.h"
28 #include "wtf/RefPtr.h" 28 #include "wtf/RefPtr.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 namespace TestInterfaceImplementationPartialV8Internal { 32 namespace TestInterfaceImplementationPartialV8Internal {
33 33
34 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 34 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) {
35 { 35 v8::Local<v8::Object> holder = info.Holder();
36 v8::Local<v8::Object> holder = info.Holder();
37 36
38 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 37 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
39 38
40 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl )); 39 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ;
41 } 40 }
42 41
43 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 42 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
44 { 43 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeGe tter(info);
45 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Getter(info);
46 } 44 }
47 45
48 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) 46 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) {
49 { 47 v8::Local<v8::Object> holder = info.Holder();
50 v8::Local<v8::Object> holder = info.Holder(); 48 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
51 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
52 49
53 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterConte xt, "TestInterface", "partial4LongAttribute"); 50 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4LongAttribute");
54 51
55 // Prepare the value to be set. 52 // Prepare the value to be set.
56 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 53 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State);
57 if (exceptionState.hadException()) 54 if (exceptionState.hadException())
58 return; 55 return;
59 56
60 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 57 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
61 } 58 }
62 59
63 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 60 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info) {
64 { 61 v8::Local<v8::Value> v8Value = info[0];
65 v8::Local<v8::Value> v8Value = info[0];
66 62
67 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info); 63 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttributeSe tter(v8Value, info);
68 } 64 }
69 65
70 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 66 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) {
71 { 67 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() );
72 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ());
73 } 68 }
74 69
75 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 70 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) {
76 { 71 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteGetter(info);
77 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info);
78 } 72 }
79 73
80 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 74 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) {
81 { 75 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4StaticLongAttribute");
82 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterConte xt, "TestInterface", "partial4StaticLongAttribute");
83 76
84 // Prepare the value to be set. 77 // Prepare the value to be set.
85 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 78 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State);
86 if (exceptionState.hadException()) 79 if (exceptionState.hadException())
87 return; 80 return;
88 81
89 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 82 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
90 } 83 }
91 84
92 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 85 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) {
93 { 86 v8::Local<v8::Value> v8Value = info[0];
94 v8::Local<v8::Value> v8Value = info[0];
95 87
96 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info); 88 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttri buteSetter(v8Value, info);
97 } 89 }
98 90
99 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) { 91 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) {
100 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 92 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
101 93
102 V8StringResource<> value; 94 V8StringResource<> value;
103 value = info[0]; 95 value = info[0];
104 if (!value.prepare()) 96 if (!value.prepare())
105 return; 97 return;
106 98
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 440 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
449 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 441 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
450 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 442 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
451 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 443 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
452 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 444 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
453 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 445 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
454 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 446 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
455 } 447 }
456 448
457 } // namespace blink 449 } // 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