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

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

Issue 19582005: Rebaseline bindings tests results after r154648 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 namespace WebCore { 59 namespace WebCore {
60 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr ototype }; 60 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr ototype };
61 61
62 namespace RealClassV8Internal { 62 namespace RealClassV8Internal {
63 63
64 template <typename T> void V8_USE(T) { } 64 template <typename T> void V8_USE(T) { }
65 65
66 static void aAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackIn fo<v8::Value>& info) 66 static void aAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackIn fo<v8::Value>& info)
67 { 67 {
68 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); 68 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder());
69 v8SetReturnValueString(info, imp->a(), info.GetIsolate(), NullStringAsEmpty) ; 69 v8SetReturnValueString(info, imp->a(), info.GetIsolate());
70 return; 70 return;
71 } 71 }
72 72
73 static void aAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info) 73 static void aAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info)
74 { 74 {
75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
76 RealClassV8Internal::aAttrGetter(name, info); 76 RealClassV8Internal::aAttrGetter(name, info);
77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
78 } 78 }
79 79
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) 124 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args)
125 { 125 {
126 if (args.Length() < 1) { 126 if (args.Length() < 1) {
127 throwNotEnoughArgumentsError(args.GetIsolate()); 127 throwNotEnoughArgumentsError(args.GetIsolate());
128 return; 128 return;
129 } 129 }
130 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); 130 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder());
131 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]); 131 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]);
132 v8SetReturnValueString(args, imp->func1(a), args.GetIsolate(), NullStringAsE mpty); 132 v8SetReturnValueString(args, imp->func1(a), args.GetIsolate());
133 return; 133 return;
134 } 134 }
135 135
136 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 136 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args)
137 { 137 {
138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
139 RealClassV8Internal::func1Method(args); 139 RealClassV8Internal::func1Method(args);
140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
141 } 141 }
142 142
143 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback Info<v8::Value>& args) 143 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback Info<v8::Value>& args)
144 { 144 {
145 if (args.Length() < 1) { 145 if (args.Length() < 1) {
146 throwNotEnoughArgumentsError(args.GetIsolate()); 146 throwNotEnoughArgumentsError(args.GetIsolate());
147 return; 147 return;
148 } 148 }
149 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); 149 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder());
150 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); 150 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);
151 v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange ), args.GetIsolate(), NullStringAsEmpty); 151 v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange ), args.GetIsolate());
152 return; 152 return;
153 } 153 }
154 154
155 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function CallbackInfo<v8::Value>& args) 155 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function CallbackInfo<v8::Value>& args)
156 { 156 {
157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
158 RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(args); 158 RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(args);
159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
160 } 160 }
161 161
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 installPerContextProperties(wrapper, impl.get(), isolate); 243 installPerContextProperties(wrapper, impl.get(), isolate);
244 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 244 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
245 return wrapper; 245 return wrapper;
246 } 246 }
247 void V8TestInterfaceImplementedAs::derefObject(void* object) 247 void V8TestInterfaceImplementedAs::derefObject(void* object)
248 { 248 {
249 fromInternalPointer(object)->deref(); 249 fromInternalPointer(object)->deref();
250 } 250 }
251 251
252 } // namespace WebCore 252 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698