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

Unified Diff: Source/bindings/v8/V8Binding.h

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ScriptFunctionCall.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8Binding.h
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
index 919f6b63d72571de0af4958a83dcd3009ed5168c..83bbbf52600c10490fd2b8cabe83e7d5004805a8 100644
--- a/Source/bindings/v8/V8Binding.h
+++ b/Source/bindings/v8/V8Binding.h
@@ -77,9 +77,9 @@ namespace WebCore {
v8::Handle<v8::Value> toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, bool& notASequence, v8::Isolate*);
- inline v8::Handle<v8::Value> argumentOrNull(const v8::FunctionCallbackInfo<v8::Value>& args, int index)
+ inline v8::Handle<v8::Value> argumentOrNull(const v8::FunctionCallbackInfo<v8::Value>& info, int index)
{
- return index >= args.Length() ? v8::Local<v8::Value>() : args[index];
+ return index >= info.Length() ? v8::Local<v8::Value>() : info[index];
}
// Since v8::Null(isolate) crashes if we pass a null isolate,
@@ -92,45 +92,45 @@ namespace WebCore {
}
template<typename CallbackInfo, typename V>
- inline void v8SetReturnValue(const CallbackInfo& args, V v)
+ inline void v8SetReturnValue(const CallbackInfo& info, V v)
{
- args.GetReturnValue().Set(v);
+ info.GetReturnValue().Set(v);
}
template<typename CallbackInfo>
- inline void v8SetReturnValueBool(const CallbackInfo& args, bool v)
+ inline void v8SetReturnValueBool(const CallbackInfo& info, bool v)
{
- args.GetReturnValue().Set(v);
+ info.GetReturnValue().Set(v);
}
template<typename CallbackInfo>
- inline void v8SetReturnValueInt(const CallbackInfo& args, int v)
+ inline void v8SetReturnValueInt(const CallbackInfo& info, int v)
{
- args.GetReturnValue().Set(v);
+ info.GetReturnValue().Set(v);
}
template<typename CallbackInfo>
- inline void v8SetReturnValueUnsigned(const CallbackInfo& args, unsigned v)
+ inline void v8SetReturnValueUnsigned(const CallbackInfo& info, unsigned v)
{
- args.GetReturnValue().Set(v);
+ info.GetReturnValue().Set(v);
}
template<typename CallbackInfo>
- inline void v8SetReturnValueNull(const CallbackInfo& args)
+ inline void v8SetReturnValueNull(const CallbackInfo& info)
{
- args.GetReturnValue().SetNull();
+ info.GetReturnValue().SetNull();
}
template<typename CallbackInfo>
- inline void v8SetReturnValueUndefined(const CallbackInfo& args)
+ inline void v8SetReturnValueUndefined(const CallbackInfo& info)
{
- args.GetReturnValue().SetUndefined();
+ info.GetReturnValue().SetUndefined();
}
template<typename CallbackInfo>
- inline void v8SetReturnValueEmptyString(const CallbackInfo& args)
+ inline void v8SetReturnValueEmptyString(const CallbackInfo& info)
{
- args.GetReturnValue().SetEmptyString();
+ info.GetReturnValue().SetEmptyString();
}
template <class CallbackInfo>
@@ -528,19 +528,19 @@ namespace WebCore {
}
template <class T>
- Vector<T> toNativeArguments(const v8::FunctionCallbackInfo<v8::Value>& args, int startIndex)
+ Vector<T> toNativeArguments(const v8::FunctionCallbackInfo<v8::Value>& info, int startIndex)
{
- ASSERT(startIndex <= args.Length());
+ ASSERT(startIndex <= info.Length());
Vector<T> result;
typedef NativeValueTraits<T> TraitsType;
- int length = args.Length();
+ int length = info.Length();
result.reserveInitialCapacity(length);
for (int i = startIndex; i < length; ++i)
- result.uncheckedAppend(TraitsType::nativeValue(args[i]));
+ result.uncheckedAppend(TraitsType::nativeValue(info[i]));
return result;
}
- Vector<v8::Handle<v8::Value> > toVectorOfArguments(const v8::FunctionCallbackInfo<v8::Value>& args);
+ Vector<v8::Handle<v8::Value> > toVectorOfArguments(const v8::FunctionCallbackInfo<v8::Value>&);
// Validates that the passed object is a sequence type per WebIDL spec
// http://www.w3.org/TR/2012/CR-WebIDL-20120419/#es-sequence
« no previous file with comments | « Source/bindings/v8/ScriptFunctionCall.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698