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

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

Issue 1333853002: bindings: Moves event handlers and methods of Window to the instance object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = {"fu nc", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 206 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = {"fu nc", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
207 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::D ontDelete | v8::ReadOnly), funcMethodConfiguration); 207 V8DOMConfiguration::installMethod(isolate, instanceTemplate, prototypeTempla te, functionTemplate, defaultSignature, static_cast<v8::PropertyAttribute>(v8::R eadOnly | v8::DontDelete), funcMethodConfiguration);
208 208
209 // Custom toString template 209 // Custom toString template
210 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 210 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
211 } 211 }
212 212
213 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate) 213 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate)
214 { 214 {
215 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate); 215 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterfaceWillBeGarbageCollectedTemplate);
216 } 216 }
217 217
(...skipping 20 matching lines...) Expand all
238 } 238 }
239 239
240 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 240 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
241 { 241 {
242 #if !ENABLE(OILPAN) 242 #if !ENABLE(OILPAN)
243 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 243 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
244 #endif 244 #endif
245 } 245 }
246 246
247 } // namespace blink 247 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698