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

Side by Side Diff: Source/bindings/tests/results/V8SupportTestInterface.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 29 matching lines...) Expand all
40 #include "bindings/v8/ExceptionMessages.h" 40 #include "bindings/v8/ExceptionMessages.h"
41 #include "bindings/v8/ExceptionState.h" 41 #include "bindings/v8/ExceptionState.h"
42 #include "bindings/v8/V8Binding.h" 42 #include "bindings/v8/V8Binding.h"
43 #include "bindings/v8/V8DOMConfiguration.h" 43 #include "bindings/v8/V8DOMConfiguration.h"
44 #include "bindings/v8/V8DOMWrapper.h" 44 #include "bindings/v8/V8DOMWrapper.h"
45 #include "core/dom/ContextFeatures.h" 45 #include "core/dom/ContextFeatures.h"
46 #include "core/dom/Document.h" 46 #include "core/dom/Document.h"
47 #include "platform/TraceEvent.h" 47 #include "platform/TraceEvent.h"
48 #include "wtf/GetPtr.h" 48 #include "wtf/GetPtr.h"
49 #include "wtf/RefPtr.h" 49 #include "wtf/RefPtr.h"
50 #include "wtf/UnusedParam.h"
51 50
52 namespace WebCore { 51 namespace WebCore {
53 52
54 static void initializeScriptWrappableForInterface(SupportTestInterface* object) 53 static void initializeScriptWrappableForInterface(SupportTestInterface* object)
55 { 54 {
56 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 55 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
57 ScriptWrappable::setTypeInfoInObject(object, &V8SupportTestInterface::wr apperTypeInfo); 56 ScriptWrappable::setTypeInfoInObject(object, &V8SupportTestInterface::wr apperTypeInfo);
58 else 57 else
59 ASSERT_NOT_REACHED(); 58 ASSERT_NOT_REACHED();
60 } 59 }
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 static v8::Handle<v8::FunctionTemplate> ConfigureV8SupportTestInterfaceTemplate( v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper WorldType currentWorldType) 399 static v8::Handle<v8::FunctionTemplate> ConfigureV8SupportTestInterfaceTemplate( v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper WorldType currentWorldType)
401 { 400 {
402 functionTemplate->ReadOnlyPrototype(); 401 functionTemplate->ReadOnlyPrototype();
403 402
404 v8::Local<v8::Signature> defaultSignature; 403 v8::Local<v8::Signature> defaultSignature;
405 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "SupportTestInterface", v8::Local<v8::FunctionTemplate>(), V8SupportTestInt erface::internalFieldCount, 404 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "SupportTestInterface", v8::Local<v8::FunctionTemplate>(), V8SupportTestInt erface::internalFieldCount,
406 V8SupportTestInterfaceAttributes, WTF_ARRAY_LENGTH(V8SupportTestInterfac eAttributes), 405 V8SupportTestInterfaceAttributes, WTF_ARRAY_LENGTH(V8SupportTestInterfac eAttributes),
407 0, 0, 406 0, 0,
408 V8SupportTestInterfaceMethods, WTF_ARRAY_LENGTH(V8SupportTestInterfaceMe thods), 407 V8SupportTestInterfaceMethods, WTF_ARRAY_LENGTH(V8SupportTestInterfaceMe thods),
409 isolate, currentWorldType); 408 isolate, currentWorldType);
410 UNUSED_PARAM(defaultSignature); 409 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
411 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 410 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
412 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
413 UNUSED_PARAM(instanceTemplate);
414 UNUSED_PARAM(prototypeTemplate);
415 #if ENABLE(Condition11) || ENABLE(Condition12) 411 #if ENABLE(Condition11) || ENABLE(Condition12)
416 if (RuntimeEnabledFeatures::featureName13Enabled()) { 412 if (RuntimeEnabledFeatures::featureName13Enabled()) {
417 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 413 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
418 {"Node13", SupportTestInterfaceV8Internal::Node13AttributeGetterCallback , SupportTestInterfaceV8Internal::Node13AttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */}; 414 {"Node13", SupportTestInterfaceV8Internal::Node13AttributeGetterCallback , SupportTestInterfaceV8Internal::Node13AttributeSetterCallback, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */};
419 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate, currentWorldType); 415 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate, currentWorldType);
420 } 416 }
421 #endif // ENABLE(Condition11) || ENABLE(Condition12) 417 #endif // ENABLE(Condition11) || ENABLE(Condition12)
422 static const V8DOMConfiguration::ConstantConfiguration V8SupportTestInterfac eConstants[] = { 418 static const V8DOMConfiguration::ConstantConfiguration V8SupportTestInterfac eConstants[] = {
423 {"SUPPLEMENTALCONSTANT1", 1}, 419 {"SUPPLEMENTALCONSTANT1", 1},
424 {"SUPPLEMENTALCONSTANT2", 2}, 420 {"SUPPLEMENTALCONSTANT2", 2},
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 fromInternalPointer(object)->deref(); 507 fromInternalPointer(object)->deref();
512 } 508 }
513 509
514 template<> 510 template<>
515 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 511 v8::Handle<v8::Value> toV8NoInline(SupportTestInterface* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
516 { 512 {
517 return toV8(impl, creationContext, isolate); 513 return toV8(impl, creationContext, isolate);
518 } 514 }
519 515
520 } // namespace WebCore 516 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698