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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 imp->setB(WTF::getPtr(cppValue)); 110 imp->setB(WTF::getPtr(cppValue));
111 } 111 }
112 112
113 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 113 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
114 { 114 {
115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
116 RealClassV8Internal::bAttributeSetter(name, jsValue, info); 116 RealClassV8Internal::bAttributeSetter(name, jsValue, info);
117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
118 } 118 }
119 119
120 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) 120 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
121 { 121 {
122 if (UNLIKELY(args.Length() < 1)) { 122 if (UNLIKELY(info.Length() < 1)) {
123 throwTypeError(ExceptionMessages::failedToExecute("func1", "TestInterfac eImplementedAs", ExceptionMessages::notEnoughArguments(1, args.Length())), args. GetIsolate()); 123 throwTypeError(ExceptionMessages::failedToExecute("func1", "TestInterfac eImplementedAs", ExceptionMessages::notEnoughArguments(1, info.Length())), info. GetIsolate());
124 return; 124 return;
125 } 125 }
126 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); 126 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder());
127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]); 127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, info[0]);
128 v8SetReturnValueString(args, imp->func1(a), args.GetIsolate()); 128 v8SetReturnValueString(info, imp->func1(a), info.GetIsolate());
129 } 129 }
130 130
131 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 131 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
132 { 132 {
133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
134 RealClassV8Internal::func1Method(args); 134 RealClassV8Internal::func1Method(info);
135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
136 } 136 }
137 137
138 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback Info<v8::Value>& args) 138 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback Info<v8::Value>& info)
139 { 139 {
140 if (UNLIKELY(args.Length() < 1)) { 140 if (UNLIKELY(info.Length() < 1)) {
141 throwTypeError(ExceptionMessages::failedToExecute("funcTestInterfaceImpl ementedAsParam", "TestInterfaceImplementedAs", ExceptionMessages::notEnoughArgum ents(1, args.Length())), args.GetIsolate()); 141 throwTypeError(ExceptionMessages::failedToExecute("funcTestInterfaceImpl ementedAsParam", "TestInterfaceImplementedAs", ExceptionMessages::notEnoughArgum ents(1, info.Length())), info.GetIsolate());
142 return; 142 return;
143 } 143 }
144 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); 144 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder());
145 V8TRYCATCH_VOID(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstanc e(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImp lementedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); 145 V8TRYCATCH_VOID(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstanc e(info[0], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceImp lementedAs::toNative(v8::Handle<v8::Object>::Cast(info[0])) : 0);
146 v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange ), args.GetIsolate()); 146 v8SetReturnValueString(info, imp->funcTestInterfaceImplementedAsParam(orange ), info.GetIsolate());
147 } 147 }
148 148
149 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function CallbackInfo<v8::Value>& args) 149 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
150 { 150 {
151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
152 RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(args); 152 RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(info);
153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
154 } 154 }
155 155
156 } // namespace RealClassV8Internal 156 } // namespace RealClassV8Internal
157 157
158 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceImplement edAsAttributes[] = { 158 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceImplement edAsAttributes[] = {
159 {"a", RealClassV8Internal::aAttributeGetterCallback, RealClassV8Internal::aA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 159 {"a", RealClassV8Internal::aAttributeGetterCallback, RealClassV8Internal::aA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
160 {"b", RealClassV8Internal::bAttributeGetterCallback, RealClassV8Internal::bA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 160 {"b", RealClassV8Internal::bAttributeGetterCallback, RealClassV8Internal::bA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
161 }; 161 };
162 162
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 236 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
237 return wrapper; 237 return wrapper;
238 } 238 }
239 239
240 void V8TestInterfaceImplementedAs::derefObject(void* object) 240 void V8TestInterfaceImplementedAs::derefObject(void* object)
241 { 241 {
242 fromInternalPointer(object)->deref(); 242 fromInternalPointer(object)->deref();
243 } 243 }
244 244
245 } // namespace WebCore 245 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestMediaQueryListListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698