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

Side by Side Diff: Source/bindings/tests/results/V8TestSerializedScriptValueInterface.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 29 matching lines...) Expand all
40 #include "bindings/v8/ScriptController.h" 40 #include "bindings/v8/ScriptController.h"
41 #include "bindings/v8/ScriptState.h" 41 #include "bindings/v8/ScriptState.h"
42 #include "bindings/v8/ScriptValue.h" 42 #include "bindings/v8/ScriptValue.h"
43 #include "bindings/v8/SerializedScriptValue.h" 43 #include "bindings/v8/SerializedScriptValue.h"
44 #include "bindings/v8/V8Binding.h" 44 #include "bindings/v8/V8Binding.h"
45 #include "bindings/v8/V8DOMConfiguration.h" 45 #include "bindings/v8/V8DOMConfiguration.h"
46 #include "bindings/v8/V8DOMWrapper.h" 46 #include "bindings/v8/V8DOMWrapper.h"
47 #include "core/dom/ContextFeatures.h" 47 #include "core/dom/ContextFeatures.h"
48 #include "core/dom/Document.h" 48 #include "core/dom/Document.h"
49 #include "platform/TraceEvent.h" 49 #include "platform/TraceEvent.h"
50 #include "wtf/UnusedParam.h"
51 50
52 namespace WebCore { 51 namespace WebCore {
53 52
54 static void initializeScriptWrappableForInterface(TestSerializedScriptValueInter face* object) 53 static void initializeScriptWrappableForInterface(TestSerializedScriptValueInter face* object)
55 { 54 {
56 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 55 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
57 ScriptWrappable::setTypeInfoInObject(object, &V8TestSerializedScriptValu eInterface::wrapperTypeInfo); 56 ScriptWrappable::setTypeInfoInObject(object, &V8TestSerializedScriptValu eInterface::wrapperTypeInfo);
58 else 57 else
59 ASSERT_NOT_REACHED(); 58 ASSERT_NOT_REACHED();
60 } 59 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestSerializedScriptValueInte rfaceTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* is olate, WrapperWorldType currentWorldType) 259 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestSerializedScriptValueInte rfaceTemplate(v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* is olate, WrapperWorldType currentWorldType)
261 { 260 {
262 functionTemplate->ReadOnlyPrototype(); 261 functionTemplate->ReadOnlyPrototype();
263 262
264 v8::Local<v8::Signature> defaultSignature; 263 v8::Local<v8::Signature> defaultSignature;
265 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestSerializedScriptValueInterface", v8::Local<v8::FunctionTemplate>(), V8 TestSerializedScriptValueInterface::internalFieldCount, 264 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestSerializedScriptValueInterface", v8::Local<v8::FunctionTemplate>(), V8 TestSerializedScriptValueInterface::internalFieldCount,
266 V8TestSerializedScriptValueInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestS erializedScriptValueInterfaceAttributes), 265 V8TestSerializedScriptValueInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestS erializedScriptValueInterfaceAttributes),
267 0, 0, 266 0, 0,
268 0, 0, 267 0, 0,
269 isolate, currentWorldType); 268 isolate, currentWorldType);
270 UNUSED_PARAM(defaultSignature); 269 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
271 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 270 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
272 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
273 UNUSED_PARAM(instanceTemplate);
274 UNUSED_PARAM(prototypeTemplate);
275 271
276 // Custom toString template 272 // Custom toString template
277 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); 273 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
278 return functionTemplate; 274 return functionTemplate;
279 } 275 }
280 276
281 v8::Handle<v8::FunctionTemplate> V8TestSerializedScriptValueInterface::GetTempla te(v8::Isolate* isolate, WrapperWorldType currentWorldType) 277 v8::Handle<v8::FunctionTemplate> V8TestSerializedScriptValueInterface::GetTempla te(v8::Isolate* isolate, WrapperWorldType currentWorldType)
282 { 278 {
283 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 279 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
284 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 280 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 327 }
332 328
333 template<> 329 template<>
334 v8::Handle<v8::Value> toV8NoInline(TestSerializedScriptValueInterface* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate) 330 v8::Handle<v8::Value> toV8NoInline(TestSerializedScriptValueInterface* impl, v8: :Handle<v8::Object> creationContext, v8::Isolate* isolate)
335 { 331 {
336 return toV8(impl, creationContext, isolate); 332 return toV8(impl, creationContext, isolate);
337 } 333 }
338 334
339 } // namespace WebCore 335 } // namespace WebCore
340 #endif // ENABLE(Condition1) || ENABLE(Condition2) 336 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestOverloadedConstructors.cpp ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698