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

Side by Side Diff: Source/bindings/v8/V8DOMConfiguration.h

Issue 14244017: Make length property return useful values for DOM bindings functions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replace [Optional] by optional Created 7 years, 8 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 int value; 95 int value;
96 }; 96 };
97 97
98 static void batchConfigureConstants(v8::Handle<v8::FunctionTemplate>, v8::Ha ndle<v8::ObjectTemplate>, const BatchedConstant*, size_t constantCount, v8::Isol ate*); 98 static void batchConfigureConstants(v8::Handle<v8::FunctionTemplate>, v8::Ha ndle<v8::ObjectTemplate>, const BatchedConstant*, size_t constantCount, v8::Isol ate*);
99 99
100 // BatchedMethod translates into calls to Set() on the prototype ObjectTempl ate. 100 // BatchedMethod translates into calls to Set() on the prototype ObjectTempl ate.
101 struct BatchedMethod { 101 struct BatchedMethod {
102 const char* const name; 102 const char* const name;
103 v8::InvocationCallback callback; 103 v8::InvocationCallback callback;
104 v8::InvocationCallback callbackForMainWorld; 104 v8::InvocationCallback callbackForMainWorld;
105 int length;
105 }; 106 };
106 107
107 static void batchConfigureCallbacks(v8::Handle<v8::ObjectTemplate>, v8::Hand le<v8::Signature>, v8::PropertyAttribute, const BatchedMethod*, size_t callbackC ount, v8::Isolate*, WrapperWorldType); 108 static void batchConfigureCallbacks(v8::Handle<v8::ObjectTemplate>, v8::Hand le<v8::Signature>, v8::PropertyAttribute, const BatchedMethod*, size_t callbackC ount, v8::Isolate*, WrapperWorldType);
108 109
109 static v8::Local<v8::Signature> configureTemplate(v8::Persistent<v8::Functio nTemplate>, const char* interfaceName, v8::Persistent<v8::FunctionTemplate> pare ntClass, size_t fieldCount, const BatchedAttribute*, size_t attributeCount, cons t BatchedMethod*, size_t callbackCount, v8::Isolate*, WrapperWorldType); 110 static v8::Local<v8::Signature> configureTemplate(v8::Persistent<v8::Functio nTemplate>, const char* interfaceName, v8::Persistent<v8::FunctionTemplate> pare ntClass, size_t fieldCount, const BatchedAttribute*, size_t attributeCount, cons t BatchedMethod*, size_t callbackCount, v8::Isolate*, WrapperWorldType);
110 }; 111 };
111 112
112 } // namespace WebCore 113 } // namespace WebCore
113 114
114 #endif // V8DOMConfiguration_h 115 #endif // V8DOMConfiguration_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestOverloadedConstructors.cpp ('k') | Source/bindings/v8/V8DOMConfiguration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698