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

Side by Side Diff: Source/bindings/tests/results/V8TestExtendedEvent.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 36
37 #include "RuntimeEnabledFeatures.h" 37 #include "RuntimeEnabledFeatures.h"
38 #include "bindings/v8/Dictionary.h" 38 #include "bindings/v8/Dictionary.h"
39 #include "bindings/v8/ExceptionMessages.h" 39 #include "bindings/v8/ExceptionMessages.h"
40 #include "bindings/v8/V8DOMConfiguration.h" 40 #include "bindings/v8/V8DOMConfiguration.h"
41 #include "bindings/v8/V8ObjectConstructor.h" 41 #include "bindings/v8/V8ObjectConstructor.h"
42 #include "core/dom/ContextFeatures.h" 42 #include "core/dom/ContextFeatures.h"
43 #include "core/dom/Document.h" 43 #include "core/dom/Document.h"
44 #include "core/frame/UseCounter.h" 44 #include "core/frame/UseCounter.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(Event* object) 49 static void initializeScriptWrappableForInterface(Event* object)
51 { 50 {
52 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 51 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
53 ScriptWrappable::setTypeInfoInObject(object, &V8TestExtendedEvent::wrapp erTypeInfo); 52 ScriptWrappable::setTypeInfoInObject(object, &V8TestExtendedEvent::wrapp erTypeInfo);
54 else 53 else
55 ASSERT_NOT_REACHED(); 54 ASSERT_NOT_REACHED();
56 } 55 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 v8::Local<v8::Signature> defaultSignature; 169 v8::Local<v8::Signature> defaultSignature;
171 if (!RuntimeEnabledFeatures::testEnabled()) 170 if (!RuntimeEnabledFeatures::testEnabled())
172 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "", V8TestEvent::domTemplate(isolate, currentWorldType), V8TestExtended Event::internalFieldCount, 0, 0, 0, 0, 0, 0, isolate, currentWorldType); 171 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "", V8TestEvent::domTemplate(isolate, currentWorldType), V8TestExtended Event::internalFieldCount, 0, 0, 0, 0, 0, 0, isolate, currentWorldType);
173 else 172 else
174 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "TestExtendedEvent", V8TestEvent::domTemplate(isolate, currentWorldType ), V8TestExtendedEvent::internalFieldCount, 173 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionT emplate, "TestExtendedEvent", V8TestEvent::domTemplate(isolate, currentWorldType ), V8TestExtendedEvent::internalFieldCount,
175 V8TestExtendedEventAttributes, WTF_ARRAY_LENGTH(V8TestExtendedEventA ttributes), 174 V8TestExtendedEventAttributes, WTF_ARRAY_LENGTH(V8TestExtendedEventA ttributes),
176 0, 0, 175 0, 0,
177 0, 0, 176 0, 0,
178 isolate, currentWorldType); 177 isolate, currentWorldType);
179 UNUSED_PARAM(defaultSignature);
180 functionTemplate->SetCallHandler(V8TestExtendedEvent::constructorCallback); 178 functionTemplate->SetCallHandler(V8TestExtendedEvent::constructorCallback);
181 functionTemplate->SetLength(1); 179 functionTemplate->SetLength(1);
182 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 180 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
183 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 181 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
184 UNUSED_PARAM(instanceTemplate);
185 UNUSED_PARAM(prototypeTemplate);
186 182
187 // Custom toString template 183 // Custom toString template
188 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); 184 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
189 return functionTemplate; 185 return functionTemplate;
190 } 186 }
191 187
192 v8::Handle<v8::FunctionTemplate> V8TestExtendedEvent::domTemplate(v8::Isolate* i solate, WrapperWorldType currentWorldType) 188 v8::Handle<v8::FunctionTemplate> V8TestExtendedEvent::domTemplate(v8::Isolate* i solate, WrapperWorldType currentWorldType)
193 { 189 {
194 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 190 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
195 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 191 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 238 }
243 239
244 template<> 240 template<>
245 v8::Handle<v8::Value> toV8NoInline(Event* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate* isolate) 241 v8::Handle<v8::Value> toV8NoInline(Event* impl, v8::Handle<v8::Object> creationC ontext, v8::Isolate* isolate)
246 { 242 {
247 return toV8(impl, creationContext, isolate); 243 return toV8(impl, creationContext, isolate);
248 } 244 }
249 245
250 } // namespace WebCore 246 } // namespace WebCore
251 #endif // ENABLE(TEST) 247 #endif // ENABLE(TEST)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.cpp ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698