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

Side by Side Diff: dart/tools/dom/scripts/systemnative.py

Issue 328663002: Version 1.5.0-dev.4.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 6 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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This module provides shared functionality for the systems to generate 6 """This module provides shared functionality for the systems to generate
7 native binding from the IDL database.""" 7 native binding from the IDL database."""
8 8
9 import emitter 9 import emitter
10 import os 10 import os
(...skipping 15 matching lines...) Expand all
26 'FormData_constructorCallback_RESOLVER_STRING_1_HTMLFormElement', 26 'FormData_constructorCallback_RESOLVER_STRING_1_HTMLFormElement',
27 'XMLHttpRequest_constructorCallback_RESOLVER_STRING_0_': 27 'XMLHttpRequest_constructorCallback_RESOLVER_STRING_0_':
28 'XMLHttpRequest_constructorCallback_RESOLVER_STRING_1_XMLHttpRequestOpti ons', 28 'XMLHttpRequest_constructorCallback_RESOLVER_STRING_1_XMLHttpRequestOpti ons',
29 # This callback name just gets generated sligtly different and we don't 29 # This callback name just gets generated sligtly different and we don't
30 # want to bother fixing it. 30 # want to bother fixing it.
31 'ScriptProcessorNode__setEventListener_Callback': 31 'ScriptProcessorNode__setEventListener_Callback':
32 'ScriptProcessorNode_setEventListener_Callback', 32 'ScriptProcessorNode_setEventListener_Callback',
33 # We don't know how to get GLenum to show up as the correct type in this 33 # We don't know how to get GLenum to show up as the correct type in this
34 # script and don't want to bother fixing it the right way. 34 # script and don't want to bother fixing it the right way.
35 'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<GLenu m>' : 35 'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<GLenu m>' :
36 'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<u nsigned long>' 36 'WebGLDrawBuffers_drawBuffersWEBGL_Callback_RESOLVER_STRING_1_sequence<u nsigned long>',
37 # Blink 36 fixes.
38 'CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequence<fl oat>' :
39 'CanvasRenderingContext2D_setLineDash_Callback_RESOLVER_STRING_1_sequenc e<unrestricted float>',
40
41 # SVGGraphicsElement is base class.
42 'SVGUseElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString' :
43 'SVGGraphicsElement_hasExtension_Callback_RESOLVER_STRING_1_DOMString',
44 'SVGUseElement_systemLanguage_Getter' :
45 'SVGGraphicsElement_systemLanguage_Getter',
46 'SVGUseElement_requiredFeatures_Getter' :
47 'SVGGraphicsElement_requiredFeatures_Getter',
48 'SVGUseElement_requiredExtensions_Getter' :
49 'SVGGraphicsElement_requiredExtensions_Getter',
50
51 'Gamepad_buttons_Getter' : 'WebKitGamepad_buttons_Getter',
37 } 52 }
38 53
39 # TODO(vsm): This logic needs to pulled from the source IDL. These tables are 54 # TODO(vsm): This logic needs to pulled from the source IDL. These tables are
40 # an ugly workaround. 55 # an ugly workaround.
41 _cpp_callback_map = { 56 _cpp_callback_map = {
42 ('DataTransferItem', 'webkitGetAsEntry'): 'DataTransferItemFileSystem', 57 ('DataTransferItem', 'webkitGetAsEntry'): 'DataTransferItemFileSystem',
43 ('Document', 'fonts'): 'DocumentFontFaceSet', 58 ('Document', 'fonts'): 'DocumentFontFaceSet',
44 ('Document', 'webkitIsFullScreen'): 'DocumentFullscreen', 59 ('Document', 'webkitIsFullScreen'): 'DocumentFullscreen',
45 ('Document', 'webkitFullScreenKeyboardInputAllowed'): 'DocumentFullscreen', 60 ('Document', 'webkitFullScreenKeyboardInputAllowed'): 'DocumentFullscreen',
46 ('Document', 'webkitCurrentFullScreenElement'): 'DocumentFullscreen', 61 ('Document', 'webkitCurrentFullScreenElement'): 'DocumentFullscreen',
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 e.Emit("};\n"); 2010 e.Emit("};\n");
1996 e.Emit('\n'); 2011 e.Emit('\n');
1997 e.Emit('} // namespace WebCore\n'); 2012 e.Emit('} // namespace WebCore\n');
1998 2013
1999 def _IsOptionalStringArgumentInInitEventMethod(interface, operation, argument): 2014 def _IsOptionalStringArgumentInInitEventMethod(interface, operation, argument):
2000 return ( 2015 return (
2001 interface.id.endswith('Event') and 2016 interface.id.endswith('Event') and
2002 operation.id.startswith('init') and 2017 operation.id.startswith('init') and
2003 argument.ext_attrs.get('Default') == 'Undefined' and 2018 argument.ext_attrs.get('Default') == 'Undefined' and
2004 argument.type.id == 'DOMString') 2019 argument.type.id == 'DOMString')
OLDNEW
« no previous file with comments | « dart/tools/dom/idl/dart/dart.idl ('k') | dart/tools/dom/templates/html/impl/impl_ShadowRoot.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698