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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEmpty.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 23 matching lines...) Expand all
34 #include "V8TestInterfaceEmpty.h" 34 #include "V8TestInterfaceEmpty.h"
35 35
36 #include "RuntimeEnabledFeatures.h" 36 #include "RuntimeEnabledFeatures.h"
37 #include "bindings/v8/ExceptionMessages.h" 37 #include "bindings/v8/ExceptionMessages.h"
38 #include "bindings/v8/V8Binding.h" 38 #include "bindings/v8/V8Binding.h"
39 #include "bindings/v8/V8DOMConfiguration.h" 39 #include "bindings/v8/V8DOMConfiguration.h"
40 #include "bindings/v8/V8DOMWrapper.h" 40 #include "bindings/v8/V8DOMWrapper.h"
41 #include "core/dom/ContextFeatures.h" 41 #include "core/dom/ContextFeatures.h"
42 #include "core/dom/Document.h" 42 #include "core/dom/Document.h"
43 #include "platform/TraceEvent.h" 43 #include "platform/TraceEvent.h"
44 #include "wtf/UnusedParam.h"
45 44
46 namespace WebCore { 45 namespace WebCore {
47 46
48 static void initializeScriptWrappableForInterface(TestInterfaceEmpty* object) 47 static void initializeScriptWrappableForInterface(TestInterfaceEmpty* object)
49 { 48 {
50 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 49 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
51 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceEmpty::wrap perTypeInfo); 50 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceEmpty::wrap perTypeInfo);
52 else 51 else
53 ASSERT_NOT_REACHED(); 52 ASSERT_NOT_REACHED();
54 } 53 }
(...skipping 21 matching lines...) Expand all
76 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEmptyTemplate(v8 ::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWo rldType currentWorldType) 75 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEmptyTemplate(v8 ::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, WrapperWo rldType currentWorldType)
77 { 76 {
78 functionTemplate->ReadOnlyPrototype(); 77 functionTemplate->ReadOnlyPrototype();
79 78
80 v8::Local<v8::Signature> defaultSignature; 79 v8::Local<v8::Signature> defaultSignature;
81 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEmpty", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceEmp ty::internalFieldCount, 80 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfaceEmpty", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceEmp ty::internalFieldCount,
82 0, 0, 81 0, 0,
83 0, 0, 82 0, 0,
84 0, 0, 83 0, 0,
85 isolate, currentWorldType); 84 isolate, currentWorldType);
86 UNUSED_PARAM(defaultSignature); 85 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED instanceTemplate = functionTempla te->InstanceTemplate();
87 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 86 v8::Local<v8::ObjectTemplate> ALLOW_UNUSED prototypeTemplate = functionTempl ate->PrototypeTemplate();
88 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
89 UNUSED_PARAM(instanceTemplate);
90 UNUSED_PARAM(prototypeTemplate);
91 87
92 // Custom toString template 88 // Custom toString template
93 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate()); 89 functionTemplate->Set(v8::String::NewFromUtf8(isolate, "toString", v8::Strin g::kInternalizedString), V8PerIsolateData::current()->toStringTemplate());
94 return functionTemplate; 90 return functionTemplate;
95 } 91 }
96 92
97 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEmpty::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 93 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEmpty::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
98 { 94 {
99 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 95 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
100 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo); 96 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&wrapperTypeInfo);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 fromInternalPointer(object)->deref(); 142 fromInternalPointer(object)->deref();
147 } 143 }
148 144
149 template<> 145 template<>
150 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEmpty* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 146 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEmpty* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
151 { 147 {
152 return toV8(impl, creationContext, isolate); 148 return toV8(impl, creationContext, isolate);
153 } 149 }
154 150
155 } // namespace WebCore 151 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698