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

Side by Side Diff: Source/bindings/v8/custom/V8HTMLPlugInElementCustom.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 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void V8HTMLEmbedElement::namedPropertySetterCustom(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) 96 void V8HTMLEmbedElement::namedPropertySetterCustom(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info)
97 { 97 {
98 npObjectNamedSetter<V8HTMLEmbedElement>(name, value, info); 98 npObjectNamedSetter<V8HTMLEmbedElement>(name, value, info);
99 } 99 }
100 100
101 void V8HTMLObjectElement::namedPropertySetterCustom(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) 101 void V8HTMLObjectElement::namedPropertySetterCustom(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info)
102 { 102 {
103 return npObjectNamedSetter<V8HTMLObjectElement>(name, value, info); 103 return npObjectNamedSetter<V8HTMLObjectElement>(name, value, info);
104 } 104 }
105 105
106 void V8HTMLAppletElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va lue>& args) 106 void V8HTMLAppletElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va lue>& info)
107 { 107 {
108 HTMLPlugInElement* imp = V8HTMLAppletElement::toNative(args.Holder()); 108 HTMLPlugInElement* imp = V8HTMLAppletElement::toNative(info.Holder());
109 UseCounter::count(imp->document(), UseCounter::HTMLAppletElementLegacyCall); 109 UseCounter::count(imp->document(), UseCounter::HTMLAppletElementLegacyCall);
110 npObjectInvokeDefaultHandler(args); 110 npObjectInvokeDefaultHandler(info);
111 } 111 }
112 112
113 void V8HTMLEmbedElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Val ue>& args) 113 void V8HTMLEmbedElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Val ue>& info)
114 { 114 {
115 HTMLPlugInElement* imp = V8HTMLEmbedElement::toNative(args.Holder()); 115 HTMLPlugInElement* imp = V8HTMLEmbedElement::toNative(info.Holder());
116 UseCounter::count(imp->document(), UseCounter::HTMLEmbedElementLegacyCall); 116 UseCounter::count(imp->document(), UseCounter::HTMLEmbedElementLegacyCall);
117 npObjectInvokeDefaultHandler(args); 117 npObjectInvokeDefaultHandler(info);
118 } 118 }
119 119
120 void V8HTMLObjectElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va lue>& args) 120 void V8HTMLObjectElement::legacyCallCustom(const v8::FunctionCallbackInfo<v8::Va lue>& info)
121 { 121 {
122 HTMLPlugInElement* imp = V8HTMLObjectElement::toNative(args.Holder()); 122 HTMLPlugInElement* imp = V8HTMLObjectElement::toNative(info.Holder());
123 UseCounter::count(imp->document(), UseCounter::HTMLObjectElementLegacyCall); 123 UseCounter::count(imp->document(), UseCounter::HTMLObjectElementLegacyCall);
124 npObjectInvokeDefaultHandler(args); 124 npObjectInvokeDefaultHandler(info);
125 } 125 }
126 126
127 template <class C> 127 template <class C>
128 void npObjectIndexedGetter(uint32_t index, const v8::PropertyCallbackInfo<v8::Va lue>& info) 128 void npObjectIndexedGetter(uint32_t index, const v8::PropertyCallbackInfo<v8::Va lue>& info)
129 { 129 {
130 HTMLPlugInElement* imp = C::toNative(info.Holder()); 130 HTMLPlugInElement* imp = C::toNative(info.Holder());
131 RefPtr<SharedPersistent<v8::Object> > wrapper = imp->pluginWrapper(); 131 RefPtr<SharedPersistent<v8::Object> > wrapper = imp->pluginWrapper();
132 if (!wrapper) 132 if (!wrapper)
133 return; 133 return;
134 134
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 { 178 {
179 npObjectIndexedSetter<V8HTMLEmbedElement>(index, value, info); 179 npObjectIndexedSetter<V8HTMLEmbedElement>(index, value, info);
180 } 180 }
181 181
182 void V8HTMLObjectElement::indexedPropertySetterCustom(uint32_t index, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info) 182 void V8HTMLObjectElement::indexedPropertySetterCustom(uint32_t index, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<v8::Value>& info)
183 { 183 {
184 npObjectIndexedSetter<V8HTMLObjectElement>(index, value, info); 184 npObjectIndexedSetter<V8HTMLObjectElement>(index, value, info);
185 } 185 }
186 186
187 } // namespace WebCore 187 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp ('k') | Source/bindings/v8/custom/V8HistoryCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698