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

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

Issue 1318293002: Only expose Notification.requestPermission() on the Window global. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: handle detached contexts 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceWillBeGarbageCollected", V8EventTarget::domTemplate( isolate), V8TestInterfaceWillBeGarbageCollected::internalFieldCount, 194 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestInterfaceWillBeGarbageCollected", V8EventTarget::domTemplate( isolate), V8TestInterfaceWillBeGarbageCollected::internalFieldCount,
195 0, 0, 195 0, 0,
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);
205 ALLOW_UNUSED_LOCAL(context);
204 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = { 206 const V8DOMConfiguration::MethodConfiguration funcMethodConfiguration = {
205 "func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallbac k, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 207 "func", TestInterfaceWillBeGarbageCollectedV8Internal::funcMethodCallbac k, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
206 }; 208 };
207 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), funcMethod Configuration); 209 V8DOMConfiguration::installMethod(isolate, instanceTemplate, defaultSignatur e, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::ReadOnly), funcMethod Configuration);
208 210
209 // Custom toString template 211 // Custom toString template
210 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 212 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
211 } 213 }
212 214
213 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate) 215 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollected::domTempla te(v8::Isolate* isolate)
(...skipping 24 matching lines...) Expand all
238 } 240 }
239 241
240 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable) 242 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW rappable)
241 { 243 {
242 #if !ENABLE(OILPAN) 244 #if !ENABLE(OILPAN)
243 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); 245 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref();
244 #endif 246 #endif
245 } 247 }
246 248
247 } // namespace blink 249 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698