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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfacePython2.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 23 matching lines...) Expand all
34 #include "V8TestInterfacePython2.h" 34 #include "V8TestInterfacePython2.h"
35 35
36 #include "RuntimeEnabledFeatures.h" 36 #include "RuntimeEnabledFeatures.h"
37 #include "V8Interface1.h" 37 #include "V8Interface1.h"
38 #include "V8Interface2.h" 38 #include "V8Interface2.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 "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(TestInterfacePython2* object) 47 static void initializeScriptWrappableForInterface(TestInterfacePython2* object)
49 { 48 {
50 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) 49 if (ScriptWrappable::wrapperCanBeStoredInObject(object))
51 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython2::wr apperTypeInfo); 50 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfacePython2::wr apperTypeInfo);
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> ConfigureV8TestInterfacePython2Template( v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper WorldType currentWorldType) 75 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfacePython2Template( v8::Handle<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate, Wrapper WorldType 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, "TestInterfacePython2", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP ython2::internalFieldCount, 80 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterfacePython2", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceP ython2::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> V8TestInterfacePython2::domTemplate(v8::Isolate * isolate, WrapperWorldType currentWorldType) 93 v8::Handle<v8::FunctionTemplate> V8TestInterfacePython2::domTemplate(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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 fromInternalPointer(object)->deref(); 153 fromInternalPointer(object)->deref();
158 } 154 }
159 155
160 template<> 156 template<>
161 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 157 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
162 { 158 {
163 return toV8(impl, creationContext, isolate); 159 return toV8(impl, creationContext, isolate);
164 } 160 }
165 161
166 } // namespace WebCore 162 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfacePython.cpp ('k') | Source/bindings/tests/results/V8TestNamedConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698