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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceWillBeGarbageCollected.cpp

Issue 1322533002: bindings: Supports to change the method location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 3 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceWillBeGarbageCollected.h" 8 #include "V8TestInterfaceWillBeGarbageCollected.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 V8TestInterfaceWillBeGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestI nterfaceWillBeGarbageCollectedAccessors), 196 V8TestInterfaceWillBeGarbageCollectedAccessors, WTF_ARRAY_LENGTH(V8TestI nterfaceWillBeGarbageCollectedAccessors),
197 0, 0); 197 0, 0);
198 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons tructorCallback); 198 functionTemplate->SetCallHandler(V8TestInterfaceWillBeGarbageCollected::cons tructorCallback);
199 functionTemplate->SetLength(1); 199 functionTemplate->SetLength(1);
200 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 200 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
201 ALLOW_UNUSED_LOCAL(instanceTemplate); 201 ALLOW_UNUSED_LOCAL(instanceTemplate);
202 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 202 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
203 ALLOW_UNUSED_LOCAL(prototypeTemplate); 203 ALLOW_UNUSED_LOCAL(prototypeTemplate);
204 ExecutionContext* context = currentExecutionContext(isolate); 204 ExecutionContext* context = currentExecutionContext(isolate);
205 ALLOW_UNUSED_LOCAL(context); 205 ALLOW_UNUSED_LOCAL(context);
206 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = { 206 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = {"fu nc", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
207 "func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallbac k, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 207 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D ontDelete | v8::ReadOnly), funcMethodConfiguration);
208 };
209 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), funcMethod Configuration);
210 208
211 // Custom toString template 209 // Custom toString template
212 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 210 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
213 } 211 }
214 212
215 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate) 213 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate)
216 { 214 {
217 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate); 215 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate);
218 } 216 }
219 217
(...skipping 20 matching lines...) Expand all
240 } 238 }
241 239
242 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 240 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
243 { 241 {
244 #if !ENABLE(OILPAN) 242 #if !ENABLE(OILPAN)
245 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 243 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
246 #endif 244 #endif
247 } 245 }
248 246
249 } // namespace blink 247 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceNode.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698