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

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: Rebase 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/ScriptValue.h" 39 #include "bindings/v8/ScriptValue.h"
40 #include "bindings/v8/SerializedScriptValue.h" 40 #include "bindings/v8/SerializedScriptValue.h"
41 #include "bindings/v8/V8DOMConfiguration.h" 41 #include "bindings/v8/V8DOMConfiguration.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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEventConstructor Template(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate , WrapperWorldType currentWorldType) 181 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEventConstructor Template(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate , WrapperWorldType currentWorldType)
183 { 182 {
184 functionTemplate->ReadOnlyPrototype(); 183 functionTemplate->ReadOnlyPrototype();
185 184
186 v8::Local<v8::Signature> defaultSignature; 185 v8::Local<v8::Signature> defaultSignature;
187 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEventConstructor", V8Event::domTemplate(isolate, currentWorld Type), V8TestInterfaceEventConstructor::internalFieldCount, 186 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEventConstructor", V8Event::domTemplate(isolate, currentWorld Type), V8TestInterfaceEventConstructor::internalFieldCount,
188 V8TestInterfaceEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceEventConstructorAttributes), 187 V8TestInterfaceEventConstructorAttributes, WTF_ARRAY_LENGTH(V8TestInterf aceEventConstructorAttributes),
189 0, 0, 188 0, 0,
190 0, 0, 189 0, 0,
191 isolate, currentWorldType); 190 isolate, currentWorldType);
192 UNUSED_PARAM(defaultSignature);
193 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo rCallback); 191 functionTemplate->SetCallHandler(V8TestInterfaceEventConstructor::constructo rCallback);
194 functionTemplate->SetLength(1); 192 functionTemplate->SetLength(1);
195 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 193 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
196 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 194 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
197 UNUSED_PARAM(instanceTemplate);
198 UNUSED_PARAM(prototypeTemplate);
199 195
200 // Custom toString template 196 // Custom toString template
201 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); 197 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
202 return functionTemplate; 198 return functionTemplate;
203 } 199 }
204 200
205 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::domTemplate(v8 ::Isolate* isolate, WrapperWorldType currentWorldType) 201 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::domTemplate(v8 ::Isolate* isolate, WrapperWorldType currentWorldType)
206 { 202 {
207 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 203 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
208 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 204 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 fromInternalPointer(object)->deref(); 250 fromInternalPointer(object)->deref();
255 } 251 }
256 252
257 template<> 253 template<>
258 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 254 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
259 { 255 {
260 return toV8(impl, creationContext, isolate); 256 return toV8(impl, creationContext, isolate);
261 } 257 }
262 258
263 } // namespace WebCore 259 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEmpty.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698