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

Side by Side Diff: Source/WebCore/bindings/scripts/test/V8/V8TestTypedefs.cpp

Issue 12389023: Revert 144194 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1425/
Patch Set: Created 7 years, 9 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 | « Source/WebCore/bindings/scripts/test/V8/V8TestObj.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 /* 1 /*
2 This file is part of the WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 245 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
246 if (!perContextData) 246 if (!perContextData)
247 return v8Undefined(); 247 return v8Undefined();
248 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data)); 248 return perContextData->constructorForType(WrapperTypeInfo::unwrap(data));
249 } 249 }
250 static void TestTypedefsReplaceableAttrSetter(v8::Local<v8::String> name, v8::Lo cal<v8::Value> value, const v8::AccessorInfo& info) 250 static void TestTypedefsReplaceableAttrSetter(v8::Local<v8::String> name, v8::Lo cal<v8::Value> value, const v8::AccessorInfo& info)
251 { 251 {
252 info.This()->ForceSet(name, value); 252 info.This()->ForceSet(name, value);
253 } 253 }
254 254
255 static void TestTypedefsReplaceableAttrSetterCallback(v8::Local<v8::String> name , v8::Local<v8::Value> value, const v8::AccessorInfo& info)
256 {
257 return TestTypedefsV8Internal::TestTypedefsReplaceableAttrSetter(name, value , info);
258 }
259
260 static v8::Handle<v8::Value> funcMethod(const v8::Arguments& args) 255 static v8::Handle<v8::Value> funcMethod(const v8::Arguments& args)
261 { 256 {
262 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder()); 257 TestTypedefs* imp = V8TestTypedefs::toNative(args.Holder());
263 if (args.Length() <= 0) { 258 if (args.Length() <= 0) {
264 imp->func(); 259 imp->func();
265 return v8Undefined(); 260 return v8Undefined();
266 } 261 }
267 if (args.Length() > 0 && !isUndefinedOrNull(args[0]) && !V8long[]::HasInstan ce(args[0], args.GetIsolate())) 262 if (args.Length() > 0 && !isUndefinedOrNull(args[0]) && !V8long[]::HasInstan ce(args[0], args.GetIsolate()))
268 return throwTypeError(0, args.GetIsolate()); 263 return throwTypeError(0, args.GetIsolate());
269 V8TRYCATCH(Vector<int>, x, toNativeArray<int>(args[0])); 264 V8TRYCATCH(Vector<int>, x, toNativeArray<int>(args[0]));
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 installPerContextProperties(wrapper, impl.get(), isolate); 622 installPerContextProperties(wrapper, impl.get(), isolate);
628 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); 623 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent);
629 return wrapper; 624 return wrapper;
630 } 625 }
631 void V8TestTypedefs::derefObject(void* object) 626 void V8TestTypedefs::derefObject(void* object)
632 { 627 {
633 static_cast<TestTypedefs*>(object)->deref(); 628 static_cast<TestTypedefs*>(object)->deref();
634 } 629 }
635 630
636 } // namespace WebCore 631 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698