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

Side by Side Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 140663012: IDL compiler: Window-specific code + Window-only features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No headers for named constructor attributes Created 6 years, 10 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 (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006 Apple Computer, Inc. 5 # Copyright (C) 2006 Apple Computer, Inc.
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc.
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 4585 matching lines...) Expand 10 before | Expand all | Expand 10 after
4596 if ($interfaceName eq "Window") { 4596 if ($interfaceName eq "Window") {
4597 $implementation{nameSpaceWebCore}->add(<<END); 4597 $implementation{nameSpaceWebCore}->add(<<END);
4598 static void configureShadowObjectTemplate(v8::Handle<v8::ObjectTemplate> templ, v8::Isolate* isolate, WrapperWorldType currentWorldType) 4598 static void configureShadowObjectTemplate(v8::Handle<v8::ObjectTemplate> templ, v8::Isolate* isolate, WrapperWorldType currentWorldType)
4599 { 4599 {
4600 V8DOMConfiguration::installAttributes(templ, v8::Handle<v8::ObjectTemplate>( ), shadowAttributes, WTF_ARRAY_LENGTH(shadowAttributes), isolate, currentWorldTy pe); 4600 V8DOMConfiguration::installAttributes(templ, v8::Handle<v8::ObjectTemplate>( ), shadowAttributes, WTF_ARRAY_LENGTH(shadowAttributes), isolate, currentWorldTy pe);
4601 4601
4602 // Install a security handler with V8. 4602 // Install a security handler with V8.
4603 templ->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Window: :indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<WrapperTypeIn fo*>(&V8Window::wrapperTypeInfo))); 4603 templ->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom, V8Window: :indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<WrapperTypeIn fo*>(&V8Window::wrapperTypeInfo)));
4604 templ->SetInternalFieldCount(V8Window::internalFieldCount); 4604 templ->SetInternalFieldCount(V8Window::internalFieldCount);
4605 } 4605 }
4606
4606 END 4607 END
4607 } 4608 }
4608 4609
4609 if (!$parentClassTemplate) { 4610 if (!$parentClassTemplate) {
4610 $parentClassTemplate = "v8::Local<v8::FunctionTemplate>()"; 4611 $parentClassTemplate = "v8::Local<v8::FunctionTemplate>()";
4611 } 4612 }
4612 4613
4613 # Generate the template configuration method 4614 # Generate the template configuration method
4614 $code = <<END; 4615 $code = <<END;
4615 static void configure${v8ClassName}Template(v8::Handle<v8::FunctionTemplate> fun ctionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) 4616 static void configure${v8ClassName}Template(v8::Handle<v8::FunctionTemplate> fun ctionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
6466 if ($parameter->type eq "SerializedScriptValue") { 6467 if ($parameter->type eq "SerializedScriptValue") {
6467 return 1; 6468 return 1;
6468 } elsif (IsIntegerType($parameter->type)) { 6469 } elsif (IsIntegerType($parameter->type)) {
6469 return 1; 6470 return 1;
6470 } 6471 }
6471 } 6472 }
6472 return 0; 6473 return 0;
6473 } 6474 }
6474 6475
6475 1; 6476 1;
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_attributes.py » ('j') | Source/bindings/scripts/unstable/v8_attributes.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698