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

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

Issue 34273002: Remove UnusedParam.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unnecessary ALLOW_UNUSED from the binding generator Created 7 years 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 25 matching lines...) Expand all
36 #include "RuntimeEnabledFeatures.h" 36 #include "RuntimeEnabledFeatures.h"
37 #include "bindings/v8/Dictionary.h" 37 #include "bindings/v8/Dictionary.h"
38 #include "bindings/v8/ExceptionMessages.h" 38 #include "bindings/v8/ExceptionMessages.h"
39 #include "bindings/v8/V8Binding.h" 39 #include "bindings/v8/V8Binding.h"
40 #include "bindings/v8/V8DOMConfiguration.h" 40 #include "bindings/v8/V8DOMConfiguration.h"
41 #include "bindings/v8/V8DOMWrapper.h" 41 #include "bindings/v8/V8DOMWrapper.h"
42 #include "bindings/v8/V8ObjectConstructor.h" 42 #include "bindings/v8/V8ObjectConstructor.h"
43 #include "core/dom/ContextFeatures.h" 43 #include "core/dom/ContextFeatures.h"
44 #include "core/dom/Document.h" 44 #include "core/dom/Document.h"
45 #include "platform/TraceEvent.h" 45 #include "platform/TraceEvent.h"
46 #include "wtf/UnusedParam.h"
47 46
48 namespace WebCore { 47 namespace WebCore {
49 48
50 static void initializeScriptWrappableForInterface(TestInterfaceEventConstructor* object) 49 static void initializeScriptWrappableForInterface(TestInterfaceEventConstructor* object)
51 { 50 {
52 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 51 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
53 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceEventConstr uctor::wrapperTypeInfo); 52 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceEventConstr uctor::wrapperTypeInfo);
54 else 53 else
55 ASSERT_NOT_REACHED(); 54 ASSERT_NOT_REACHED();
56 } 55 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEventConstructor Template(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate , WrapperWorldType currentWorldType) 154 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEventConstructor Template(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate , WrapperWorldType currentWorldType)
156 { 155 {
157 functionTemplate->ReadOnlyPrototype(); 156 functionTemplate->ReadOnlyPrototype();
158 157
159 v8::Local<v8::Signature> defaultSignature; 158 v8::Local<v8::Signature> defaultSignature;
160 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEventConstructor", v8::Local<v8::FunctionTemplate>(), V8TestI nterfaceEventConstructor::internalFieldCount, 159 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEventConstructor", v8::Local<v8::FunctionTemplate>(), V8TestI nterfaceEventConstructor::internalFieldCount,
161 V8TestInterfaceEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceEventConstructorAttributes), 160 V8TestInterfaceEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceEventConstructorAttributes),
162 0, 0, 161 0, 0,
163 0, 0, 162 0, 0,
164 isolate, currentWorldType); 163 isolate, currentWorldType);
165 UNUSED_PARAM(defaultSignature);
166 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo rCallback); 164 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo rCallback);
167 functionTemplate->SetLength(1); 165 functionTemplate->SetLength(1);
168 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 166 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
169 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 167 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
170 UNUSED_PARAM(instanceTemplate);
171 UNUSED_PARAM(prototypeTemplate);
172 168
173 // Custom toString template 169 // Custom toString template
174 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); 170 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
175 return functionTemplate; 171 return functionTemplate;
176 } 172 }
177 173
178 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::GetTemplate(v8 ::Isolate* isolate, WrapperWorldType currentWorldType) 174 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::GetTemplate(v8 ::Isolate* isolate, WrapperWorldType currentWorldType)
179 { 175 {
180 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 176 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
181 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 177 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 fromInternalPointer(object)->deref(); 223 fromInternalPointer(object)->deref();
228 } 224 }
229 225
230 template<> 226 template<>
231 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
232 { 228 {
233 return toV8(impl, creationContext, isolate); 229 return toV8(impl, creationContext, isolate);
234 } 230 }
235 231
236 } // namespace WebCore 232 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698